關于Dual Thrust策略,怎么改周期 [開拓者 TB]
- 咨詢內容:
Params
Numeric Lots(1);
Numeric TimesMaxToday(1); //限制當天開倉最多次數;
Numeric K1(0.5);
Numeric K2(0.5);
Numeric Mday(1);
Numeric Nday(1);
Numeric offset(0);
Vars
Numeric BuyRange(0);
Numeric SellRange(0);
Numeric BuyTrig(0);
Numeric SellTrig(0);
Numeric HH;
Numeric LL;
Numeric HC;
Numeric LC;
Numeric i_offset;
Numeric BuyPosition;
Numeric SellPosition;
NumericSeries TimesToday(0); //記錄當天開倉次數;
Begin
If(Barstatus==2 )
{
If( Time==0.090000 And CurrentTime<=0.090001) Return;
If( Time==0.101500 And CurrentTime<=0.103001) Return;
If( Time==0.133000 And CurrentTime<=0.133001) Return;
}
If(CurrentBar > 44*Max(Mday,Nday))//使用的是5分鐘周期,其它的周期自己做相應修改
這里怎么改成其他周期,比如日線,1小時線
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容