您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內容

換個瀏覽器,重新問 [金字塔]

  • 咨詢內容: 初學金字塔,請各位老師挑錯,日內,五分鐘線,當前價格與之前兩個不同周期的開盤價進行比較<!--EndFragment-->,否則賣出,并添加止損條件。 input:t(10,1,100,5),d(5); 一倍周期開盤價:=ref(open,t),noaxis,nodraw; 兩倍周期開盤價:=ref(open,2*t),noaxis,nodraw; //交易條件 開多條件:=close>ref(open,t) and close>ref(open,2*t) and time<185500; 平多條件:=time=185500 or l<enterprice-d*mindiff; 開空條件:=close<ref(open,t) and close<ref(open,2*t)and time<185500; 平空條件:=time=185500 or h>enterprice+d*mindiff;; //交易系統 sellshort(平空條件 and holding<0,holding,market); buy(開多條件 and holding=0,1,market); sell(平多條件 and holding>0,holding,market); buyshort(開空條件 and holding=0,1,market); 懇請各位好心人幫忙看看,不勝感激, 其中把止損離場和收盤前離場放在一起都用market,是不是可以?而且在圖表中發現有的K線上有兩個信號既平空又開多,看著很不舒服,該如何改進

     

  • 金字塔客服:

    除了前面的close改h,close改l的

    還要這樣改

     

    sellshort(平空條件 and holding<0,holding,market); buy(開多條件 and holding=0 and exitbars>0,1,market); sell(平多條件 and holding>0,holding,market); buyshort(開空條件 and holding=0 and exitbars>0,1,market);

     

  • 用戶回復: 改完了,信號全沒了,

     

  • 網友回復: input:t(10,1,100,5),d(5); variable:n=0; 一倍周期開盤價:=ref(open,t),noaxis,nodraw; 兩倍周期開盤價:=ref(open,2*t),noaxis,nodraw; //交易條件 開多條件:=close>ref(open,t) and close>ref(open,2*t) and time<185500; 平多條件:=time=185500 or l<enterprice-d*mindiff; 開空條件:=close<ref(open,t) and close<ref(open,2*t)and time<185500; 平空條件:=time=185500 or h>enterprice+d*mindiff;; //交易系統   if n=0 and 開多條件 and holding=0 then begin   buy(1,1,market);   n:=1; end if n=0 and 開空條件 and holding=0 then begin   buyshort(1,1,market);   n:=1; end sellshort(平空條件 and holding<0,holding,market); buy(開多條件 and holding=0 and exitbars>0 and n=1,1,market); sell(平多條件 and holding>0 ,holding,market); buyshort(開空條件 and holding=0 and exitbars>0 and n=1,1,market);

     

  • 網友回復: 謝謝啦,幫了大忙,贊哦~

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 1145508240  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 日韩av激情在线观看| 精品一区二区三区av天堂| 在线无码视频观看草草视频| 久久国产色av| 欧美精品hdvideosex| 啦啦啦中文高清在线观看6| 五月激情综合网| 天堂在线观看中文字幕| 主人丝袜脚下的绿帽王八奴 | 神尾舞高清无在码在线| 国产成人精品久久综合| 97精品人妻一区二区三区香蕉 | 伊人蕉久中文字幕无码专区| 被黑人侵犯若妻中文字幕| 国产精品永久久久久久久久久 | 日本成人在线免费| 亚洲日本一区二区一本一道| 精品久久亚洲中文无码| 国产偷人视频免费观看| 2018av男人天堂| 奇米影视四色中文字幕| 中文字幕理论电影理论片| 最新中文字幕在线资源| 亚洲欧美日韩中文综合v日本| 精品在线第一页| 国产偷自视频区视频| www.黄色在线| 国内精品卡1卡2卡区别| а√天堂资源8在线官网在线| 无码中文资源在线播放| 久久精品日韩Av无码| 欧美日韩亚洲国产精品| 免费看www视频| 老师开嫩苞在线观看| 国产啊v在线观看| 四虎在线最新永久免费| 国产肥熟女视频一区二区三区| jizzjizz成熟丰满舒服| 成人羞羞视频国产| 久久久综合久久| 日韩精品无码一区二区三区AV|