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

先止損后開(kāi)倉(cāng),一一對(duì)應(yīng) [金字塔]

  • 咨詢內(nèi)容: 這樣編寫(xiě)程序順序合理,正確?? 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);//止損止盈,實(shí)時(shí)出場(chǎng) ? if h>valuewhen(TYPE(2),hhv(fh,10)) and holding=0 and 倉(cāng)差>0 then buy(1,ss,marketr);//止損后,再次入場(chǎng) ?if enterbars>1 and h>bstop +2*MINDIFF and holding<0 then sellshort(1,0,marketr);//止損止盈,實(shí)時(shí)出場(chǎng) ? if l<valuewhen(TYPE(4),llv(fl,10)) and holding=0 and 倉(cāng)差<0 then buyshort(1,ss,marketr);//止損后,再次入場(chǎng) ?//開(kāi)多? temp_ll:=llv(l,2); if pdd then begin ? ?sellshort(1,0,marketr); ? ?buy(holding=0 and 倉(cāng)差>0,ss,marketr); ? ?ll:=temp_ll; end astop:=ll; //開(kāi)空 temp_hh:=hhv(h,2); if pkk then begin ? ?sell(1,0,marketr); ? ?buyshort(holding=0 and 倉(cāng)差<0,ss,marketr); ? ?hh:=temp_hh; end bstop:=hh;

    ?

  • 金字塔客服: 另外這樣編寫(xiě)法: 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 倉(cāng)差>0,ss,marketr); ? ?ll:=temp_ll; end ?if enterbars>1 and l<ll-2*MINDIFF and holding>0 then sell(1,0,marketr);//止損止盈,實(shí)時(shí)出場(chǎng) ?if h>valuewhen(TYPE(2),hhv(fh,10)) and holding=0 and 倉(cāng)差>0 then buy(1,ss,marketr);
    temp_hh:=hhv(h,2); if pkk then begin ? ?sell(1,0,marketr); ? ?buyshort(holding=0 and 倉(cāng)差<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 倉(cāng)差<0 then buyshort(1,ss,marketr);

    ?

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

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

    ?

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

    ?

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

    客戶

 

有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 511411198  點(diǎn)擊這里給我發(fā)消息進(jìn)行 有償 編寫(xiě)!不貴!點(diǎn)擊查看價(jià)格!


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
主站蜘蛛池模板: 无码人妻精品一区二| 精品亚洲成a人片在线观看| 天天躁日日躁狠狠躁日日躁| 亚洲AV无码专区国产不乱码 | 亚洲国产精品久久久久婷婷软件| 色中文字幕在线| 国产精品99久久久| 亚洲午夜久久久影院| 91成年人免费视频| 成人在线播放av| 久久精品综合一区二区三区| 毛片免费观看网站| 午夜福利啪啪片| 香蕉久久久久久AV成人| 国产精品第八页| 别揉我胸啊嗯动漫网站| 日本免费色网站| 夜夜揉揉日日人人视频| 丰满少妇高潮惨叫久久久| 欧美交a欧美精品喷水| 伊人色综合久久| 老司机在线精品视频| 国产成年无码久久久免费| 91草莓视频在线观看| 尹人香蕉久久99天天| 久久亚洲国产精品五月天| 欧美卡一卡2卡三卡4卡在线| 做受视频60秒试看| 美女精品永久福利在线| 国产成人免费全部网站| 91福利免费视频| 女人让男人直接桶| 中文字幕韩国电影| 狂野欧美性猛xxxx乱大交| 国产xx在线观看| 国产麻豆91网在线看| 国产色无码精品视频国产| xvdeviosbbc黑人| 扒开双腿爽爽爽视频www| 久久精品国产一区二区三区 | 欧美寡妇XXXX黑人猛交|