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

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

后臺交易問題 [金字塔]

  • 咨詢內(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? //開多單 ?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 //開空單 ?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圖表改后臺交易的,出現(xiàn)平空就開空???

    ?

  • 金字塔客服: 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? //開多單 ?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 //開空單 ?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 //重新定位離場實(shí)現(xiàn)浮動止損止盈 ?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ù): 按阿火改的,但后面后臺交易,限價(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ù): 首先,這段代碼你要干什么?

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 涩涩视频在线观看 | 99在线国产视频 | 图片专区亚洲 欧美 另类 | 97人人澡人人爽人人爱 | 国产成人一区二区三区高清 | 日韩精品一区二区三区国语自制 | 99高清免费国产自产拍 | 一区二区三区亚洲 | 亚洲综合色婷婷中文字幕 | 国产色婷婷精品综合在线观看 | 青草青在线免费视频 | 久久91亚洲精品久久91综合 | 欧美日韩乱码毛片免费观看 | 免费黄色毛片 | 香蕉视频在线观看免费 | 亚洲韩精品欧美一区二区三区 | 国产精品98视频全部国产 | 久久九九青青国产精品 | 91精品一区二区 | 高清视频 一区二区三区四区 | 日本久久综合视频 | 香蕉网在线播放 | 女人寂寞偷人视频a级 | 人人骚| 97国产在线视频 | 国产午夜成人无码免费看 | 欧美成人三级一区二区在线观看 | 好吊妞在线成人免费 | 国产三级日产三级日本三级 | 99国产精品热久久久久久夜夜嗨 | 人成午夜欧美大片免费视频 | 天天插天天射 | 国产在线91 | 俄罗斯毛片视频 | 91福利在线免费观看 | 久久这里只精品 | 久久亚洲成人 | 思思久久99热这里只有精品66 | 亚洲精品一区二区三区四区 | 日韩欧美亚洲国产高清在线 | 97在线观看免费观看高清 |