您現(xiàn)在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內(nèi)容

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

  • 咨詢內(nèi)容: 這樣編寫程序順序合理,正確?? 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;? //交易系統(tǒng) ?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; //交易系統(tǒng) 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);

    ?

    ?來源:程序化久久網(wǎng)( www.tumamayizhan.com )

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

    ?

  • 網(wǎng)友回復: 在線等

    ?

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

    客戶

 

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

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


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

相關文章

    沒有相關內(nèi)容
主站蜘蛛池模板: 国产99热在线观看| 夜夜爽77777妓女免费看| 亚洲伊人色欲综合网| 精品视频麻豆入口| 国产精品2019| jizz大全欧美| 日本动漫h在线| 亚洲成年人影院| 精品69久久久久久99| 国产做无码视频在线观看浪潮| 67194线路1(点击进入)手机版| 成人免费一区二区三区| 久久精品小视频| 欧美激欧美啪啪片sm| 午夜亚洲av永久无码精品| 香蕉视频一区二区三区| 国产青青在线视频| 一本精品99久久精品77| 日本欧美在线观看| 亚洲人成在线精品| 澳门皇冠8x8华人永久免费| 四虎国产精品免费久久影院| 日韩精品一区二区三区老鸭窝 | 成人在线观看国产| 久热青青青在线视频精品| 欧美激情亚洲色图| 免费国产午夜高清在线视频| 色综合色综合久久综合频道 | 狠狠色狠狠色综合网| 国产69久久精品成人看| 91精品成人福利在线播放| 国产精品黄页在线播放免费| h肉3d动漫在线观看网站| 成年女人a毛片免费视频| 久久国产精品网| 最近高清中文字幕在线国语5| 亚洲欧美日韩综合久久| 玩肥熟老妇BBW视频| 动漫无遮挡在线观看| 色婷婷亚洲十月十月色天| 国产大尺度吃奶无遮无挡网|