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

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

后臺(tái)交易問(wèn)題 [金字塔]

  • 咨詢內(nèi)容: /平多空單 ?if ?Tholding>0 and tenterbars>1 and L<=zs then? ? BEGIN ? ?MyTPrice :=IF(OPEN<zs,OPEN,zs)-MINDIFF; ? ?TSELL(1,ss,LMT,MyTPrice,0);? ? END ? ?if Tholding<0 and tenterbars>1 and H>=zs THEN? ? BEGIN ? ?MyTPrice :=IF(OPEN>zs,OPEN,zs)+MINDIFF; ? ?TSELLSHORT(1,ss,LMT,MyTPrice,0); ? END? //開(kāi)多單 ?IF H>=UpperBand and BLIQCON and THOLDING=0 THEN? ?BEGIN ? MyPrice :=IF(OPEN>UpperBand,OPEN,UpperBand)+MINDIFF; ? TBUY(1,ss,LMT,MyPrice,0); ? zs:=Mdg; ? maxhl:=h; ?END //開(kāi)空單 ?IF L<=LowerBand and SOPCON and THOLDING=0 THEN ? BEGIN ? MyPrice :=IF(OPEN<LowerBand,OPEN,LowerBand)-MINDIFF; ? TBUYSHORT(1,ss,LMT,MyPrice,0); ? zs:=Mdd; ? maxhl:=l; ?END圖表改后臺(tái)交易的,出現(xiàn)平空就開(kāi)空???

    ?

  • 金字塔客服: Globalvariable:hold=drawnull; //平多空單 ?if ?holding>0 and enterbars>1 and L<=zs then? ? BEGIN ? ?MyTPrice :=IF(OPEN<zs,OPEN,zs); ? ?sell(1,ss,LIMIT,MyTPrice-MINDIFF);? ? END ? ?if holding<0 and enterbars>1 and H>=zs THEN? ? BEGIN ? ?MyTPrice :=IF(OPEN>zs,OPEN,zs); ? ?sellshort(1,ss,LIMIT,MyTPrice+MINDIFF); ? END? //開(kāi)多單 ?IF H>=UpperBand and BLIQCON and THOLDING=0 THEN? ?BEGIN ? MyPrice :=IF(OPEN>UpperBand,OPEN,UpperBand); ? buy(1,ss,LIMIT,MyPrice+MINDIFF); ? zs:=Mdg; ? maxhl:=h; ?END //開(kāi)空單 ?IF L<=LowerBand and SOPCON and THOLDING=0 THEN ? BEGIN ? MyPrice :=IF(OPEN<LowerBand,OPEN,LowerBand); ? buyshort(1,ss,LIMIT,MyPrice-MINDIFF); ? zs:=Mdd; ? maxhl:=l; ?END
    if Tholding<0 and l<maxhl then begin //重新定位離場(chǎng)實(shí)現(xiàn)浮動(dòng)止損止盈 ?zs:=Mdd; end if Tholding>0 and h>maxhl then begin? ?zs:=Mdg; end
    cc809008322:=holding; if not(islastbar) or workmode<>1 then exit; xiadan809008322:=cc809008322-hold; if xiadan809008322>0.5 then begin ?cang:=min(xiadan809008322,abs(hold)); ?if hold<0 then begin ? tsellshort(1,cang,LMT,0,0,'809008322'); ?end ?cang:=xiadan809008322+min(hold,0); ?if cang>0 then begin ? tbuy(1,cang,LMT,0,0,'809008322'); ?end end if xiadan809008322<-0.5 then begin ?cang:=min(abs(xiadan809008322),abs(hold)); ?if hold>0 then begin ? tsell(1,cang,LMT,0,0,'809008322'); ?end ?cang:=abs(xiadan809008322)-max(hold,0); ?if cang>0 then begin ? tbuyshort(1,cang,LMT,0,0,'809008322'); ?end end hold:=cc809008322; WARNING_DISABLE:9;

    ?

  • 用戶回復(fù): 按阿火改的,但后面后臺(tái)交易,限價(jià)應(yīng)該使用前面的限價(jià)瑟幫改改。

    ?

  • 網(wǎng)友回復(fù): cc809008322:=holding; if not(islastbar) or workmode<>1 then exit; xiadan809008322:=cc809008322-hold; if xiadan809008322>0.5 then begin ?cang:=min(xiadan809008322,abs(hold)); ?if hold<0 then begin ? tsellshort(1,cang,LMT,MyTPrice+MINDIFF,0,'809008322'); ?end ?cang:=xiadan809008322+min(hold,0); ?if cang>0 then begin ? tbuy(1,cang,LMT,MyPrice+MINDIFF,0,'809008322'); ?end end if xiadan809008322<-0.5 then begin ?cang:=min(abs(xiadan809008322),abs(hold)); ?if hold>0 then begin ? tsell(1,cang,LMT,MyTPrice-MINDIFF,0,'809008322'); ?end ?cang:=abs(xiadan809008322)-max(hold,0); ?if cang>0 then begin ? tbuyshort(1,cang,LMT,MyPrice-MINDIFF,0,'809008322'); ?end end hold:=cc809008322;
    WARNING_DISABLE:9;

    ?

  • 網(wǎng)友回復(fù): 首先,這段代碼你要干什么?

 

有思路,想編寫(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)容
主站蜘蛛池模板: 日本三级一区 | 久久这里只有精品8 | 欧美激情精品久久久久久不卡 | 欧美专区在线播放 | 国产日韩片 | 亚洲国产成人九九综合 | 三中文乱码视频 | 久久这里只有精品99 | japanese乱子另类 | 999在线免费视频 | 欧美一级毛片在线一看 | 欧美性理论片在线观看片免费 | 亚洲伊人久久综合一区二区 | 久久精品国产亚洲欧美 | 国产精品美女流白浆视频 | 日本人一级毛片免费完整视频 | 久草丁香 | 亚洲午夜久久久精品影院视色 | 国产大学生一级毛片绿象 | 性短视频在线观看免费不卡流畅 | 国产成人精品高清在线观看99 | 亚洲日韩欧美一区二区在线 | 天天碰夜夜 | 成人小视频免费观看 | 尤物视频国产 | 色婷婷久久久swag精品 | 免费观看精品视频999 | 成人午夜影视全部免费看 | 精品久久久一二三区 | 神马老子午夜 | 国产小姨子 | 香蕉视频一级 | 一区二区三区毛片免费 | 精品一区二区三区在线视频 | 亚洲国产成人久久综合碰 | 国产美女做爰免费视 | 久久久免费 | 纯欧美一级毛片_免费 | 四虎免费播放观看在线视频 | 五月色婷婷综合激情免费视频 | 国产精品一级视频 |