人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 交易開拓者(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函數(shù)下單 的調試,使用fileappend會比commentary更有效。。
    自己先使用fileappend記錄一下相關的信息,然后看一下日志內容能否找到原因 。

    ?

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

    ?

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

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

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

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


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

    相關文章

      沒有相關內容
    主站蜘蛛池模板: 一区二区三区影院 | 成人在线免费看片 | 日本三级在线观看免费 | 天天干天天拍 | 高清国产美女一级a毛片在线 | 天天摸天天爽视频69视频 | 在线观看免费黄视频 | 久在草视频 | xxx日本免费 | 日韩精品福利片午夜免费 | 欧美精品videosex另类 | 亚洲综合区小说区激情区噜噜 | 欧美精品亚洲网站 | 天天射天天爱天天干 | 亚洲国产欧美久久香综合 | 欧美久久综合九色综合 | 欧美视频在线播放 | 久久永久免费视频 | 日韩亚洲一区中文字幕在线 | 九九精品在线 | 性大特级毛片视频 | 亚洲人体在线 | 中文字幕亚洲无线码在线一区 | 中文在线日韩 | 色欧美色图| 亚洲成人高清在线观看 | 九九99九九精彩 | 一级一片免费播放 | 欧美精品一区二区久久 | 免费妞干网 | 国产成人成人一区二区 | 中文字幕在线观看 | 日韩精品欧美精品中文精品 | 久久精品欧美日韩精品 | 99精品视频免费在线观看 | 男女羞羞视频网站免费 | 无毛片 | 一个人免费观看日本www视频 | 岛国免费v片在线播放 | 最近中文字幕经典版在线 | 黄色男女网站 |