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

您現在的位置:程序化交易>> 期貨公式>> 交易開拓者(TB)>> 開拓者知識>>正文內容

求助,小米老師 [開拓者 TB]

high;low;high = Highest(h[1],BackNumber);low = Lowest(l[1],BackNumber);high and Q_Last>h[BackNumber])low and Q_Last<l[BackNumber])
{conshortopen = True;MyShortEntryPrice = l[BackNumber];shortstoplossline = h;}
//進倉條件

//空進倉------------------------------------------------------------------------------------------------
if(conshortopen AND A_TotalPosition ==0 and A_GetOpenOrderCount ==0 and o>=MyShortEntryPrice)
{
A_SendOrder(Enum_Sell,Enum_Entry,lots,MyShortEntryPrice - sp * MinMove * PriceScale);
Commentary("空進倉:"+Text(MyShortEntryPrice - sp * MinMove * PriceScale));
SetGlobalVar(11,1);
SetGlobalVar(21,CurrentBar);
}

//空止損1111111111111111111111111111111111111111111111111111111111111111111111111111
if(GetGlobalVar(11)==1 and A_SellPosition >0 and A_GetOpenOrderCount ==0 and CurrentBar-GetGlobalVar(21)>=1
and Q_Last > shortstoplossline[1])
{
A_SendOrder(Enum_buy,Enum_Exit,lots,shortstoplossline[1] + sp * MinMove * PriceScale);
Commentary("空止損:"+Text(shortstoplossline[1] + sp * MinMove * PriceScale));
SetGlobalVar(11,0);
SetGlobalVar(31,CurrentBar);
}

//距離平空倉2222222222222222222222222222222222222222222222222222222222222222222222222
IF(GetGlobalVar(11)==1 and A_SellPosition >0 and A_GetOpenOrderCount ==0 and CurrentBar-GetGlobalVar(21)>=1
AND Q_Last<=ma5 - DistanceFromMA5 * MinMove * PriceScale)
{
A_SendOrder(Enum_buy,Enum_Exit,lots,ma5 - DistanceFromMA5 * MinMove * PriceScale);
Commentary("距離平空倉:"+Text(ma5 - DistanceFromMA5 * MinMove * PriceScale));
SetGlobalVar(11,0);
SetGlobalVar(31,CurrentBar);
}

//空平倉3333333333333333333333333333333333333333333333333333333333333333333333333333
if(GetGlobalVar(11)==1 and A_SellPosition >0 and A_GetOpenOrderCount ==0 and CurrentBar-GetGlobalVar(21)>=1
and Q_Last > MA5
??and CurrentTime*1000000 == Hour*10000 +(Minute+BarInterval-1)*100 + 58)
{
A_SendOrder(Enum_buy,Enum_Exit,lots,Q_Last + sp * MinMove * PriceScale);
Commentary("空平倉MA5:"+Text(Q_Last + sp * MinMove * PriceScale));
SetGlobalVar(11,0);
SetGlobalVar(31,CurrentBar);
}


//平倉BAR不進空倉
if(GetGlobalVar(21)==GetGlobalVar(31))
{conshortopen = FALSE;}


}

end

?

?來源:CXH99.COM

  • TB技術人員: A函數下單 的調試,使用fileappend會比commentary更有效。。
    自己先使用fileappend記錄一下相關的信息,然后看一下日志內容能否找到原因 。

    ?

  • TB客服: 哦,好的,謝謝小米;老師,請問下上邊公式你看出什么錯誤沒有?

    ?

  • 網友回復:
    jove99 發表于 2018-7-9 18:12
    哦,好的,謝謝小米;老師,請問下上邊公式你看出什么錯誤沒有?

    沒看呢。。一段A函數的指令,連barstatus==2以及判斷帳戶信息有效這樣的限制條件都沒有的,我覺得沒有什么必要性去看啊。。
    而且寫日志是最快捷有效的調試方式,先試試吧。
  •  

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

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


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

    相關文章

      沒有相關內容
    主站蜘蛛池模板: 男人爱看的网站 | 亚洲成人aaa | 欧美破处在线 | 国产一区二区三区视频在线观看 | 亚洲精品久久久久久久网站 | 久久精品美女视频 | 国产一区二区播放 | 橘子视频在线观看 | 欧美一级毛片免费播放aa | 久久99精品久久久久久久野外 | 色综合成人丁香 | 天天做天天爱夜夜爽毛片毛片 | 九九这里只精品视在线99 | 精品国产91乱码一区二区三区 | 欧美大成色www永久网站 | 欧美洲精品亚洲精品中文字幕 | 日本护士一级毛片在线播放 | 国产精品合集一区二区 | 99久久99久久 | 欧美香蕉视频在线观看 | 97se亚洲综合在线天天 | 国产四区 | 久草精品免费 | 99精品国产一区二区青青牛奶 | a在线观看免费 | 中文一级片 | 99这里只有精品在线 | 全高清特级毛片 | aⅴ免费在线观看 | 欧美一级毛片欧美一级 | 人人干天天干 | 天天射综合网站 | 久草日韩 | 日韩在线播放中文字幕 | 中文字幕在线激情日韩一区 | 精品国产乱码一区二区三区麻豆 | 欧美亚洲中日韩中文字幕在线 | 天天综合天天干 | 日日噜噜夜夜狠狠视频buoke | 欧美区一区二区三 | 国产精品嫩草研究所永久网址 |