大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

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

先止損后開倉,一一對應 [金字塔]

  • 咨詢內容: 這樣編寫程序順序合理,正確?? pdd:=aq1>=1 and l>fl; pkk:=aq1>=1 and h<fh;
    VARIABLE: ll=0, hh=0, astop=0, bstop=0, temp_ll[]=0, temp_hh[]=0;? //交易系統 ?if enterbars>1 and l<astop -2*MINDIFF and holding>0 then sell(1,0,marketr);//止損止盈,實時出場 ? if h>valuewhen(TYPE(2),hhv(fh,10)) and holding=0 and 倉差>0 then buy(1,ss,marketr);//止損后,再次入場 ?if enterbars>1 and h>bstop +2*MINDIFF and holding<0 then sellshort(1,0,marketr);//止損止盈,實時出場 ? if l<valuewhen(TYPE(4),llv(fl,10)) and holding=0 and 倉差<0 then buyshort(1,ss,marketr);//止損后,再次入場 ?//開多? temp_ll:=llv(l,2); if pdd then begin ? ?sellshort(1,0,marketr); ? ?buy(holding=0 and 倉差>0,ss,marketr); ? ?ll:=temp_ll; end astop:=ll; //開空 temp_hh:=hhv(h,2); if pkk then begin ? ?sell(1,0,marketr); ? ?buyshort(holding=0 and 倉差<0,ss,marketr); ? ?hh:=temp_hh; end bstop:=hh;

    ?

  • 金字塔客服: 另外這樣編寫法: pdd:=aq1>=1 and l>fl; pkk:=aq1>=1 and h<fh; //交易系統 temp_ll:=llv(l,2); if pdd then begin ? ?sellshort(1,0,marketr); ? ?buy(holding=0 and 倉差>0,ss,marketr); ? ?ll:=temp_ll; end ?if enterbars>1 and l<ll-2*MINDIFF and holding>0 then sell(1,0,marketr);//止損止盈,實時出場 ?if h>valuewhen(TYPE(2),hhv(fh,10)) and holding=0 and 倉差>0 then buy(1,ss,marketr);
    temp_hh:=hhv(h,2); if pkk then begin ? ?sell(1,0,marketr); ? ?buyshort(holding=0 and 倉差<0,ss,marketr); ? ?hh:=temp_hh; end ?if enterbars>1 and h>hh+2*MINDIFF and holding<0 then sellshort(1,0,marketr); ?if l<valuewhen(TYPE(4),llv(fl,10)) and holding=0 and 倉差<0 then buyshort(1,ss,marketr);

    ?

    ?來源:程序化久久網( m.weiqiv.net.cn )

  • 用戶回復: 關鍵要保證止損一定要執行。

    ?

  • 網友回復: 在線等

    ?

  • 網友回復: 在線等。VIP
    此主題相關圖片如下:qq圖片20170520151708.png

    客戶

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 欧美中文字幕在线播放 | 亚洲精品午夜级久久久久 | 99久久久无码国产精品 | 色婷婷网 | 欧美日韩免费在线 | 中文字幕一区二区三 | 久久99久久精品久久久久久 | 午夜视频在线观看网站 | 国产成人91高清精品免费 | 91久久精品国产亚洲 | 91高清免费国产自产拍2021 | 日本一区毛片免费观看 | 日本久久综合视频 | 久爱www成人网免费视频 | 国产 麻豆 欧美亚洲综合久久 | 一级黄色α片 | 一级啊片 | 天天怕夜夜怕狠狠怕 | 91久久香蕉国产线看 | 国产91精品一区二区麻豆网站 | 美女在线看永久免费网址 | 国产精品情侣久久婷婷文字 | 五月月色开心婷婷久久合 | 国产欧美精品国产国产专区 | 日韩成人免费在线视频 | 久久99国产精品成人 | 精品日韩在线视频一区二区三区 | 久久天天躁狠狠躁狠狠躁 | 奇米影音 | 奇米影视777色 | 中文字幕日韩国产 | 呦女www | 日日摸日日添夜夜爽97 | 国产中文字幕视频 | 亚洲色啦啦狠狠网站 | 老司机午夜在线视频免费 | 欧美精品专区第1页 | 成人在线精品视频 | 亚洲精品欧美精品中文字幕 | 99精品视频在线 | 国产成人a一区二区 |