關(guān)于Dual Thrust策略,怎么改周期
作者:開拓者 TB 來源:cxh99.com 發(fā)布時(shí)間:2017年04月19日
- 咨詢內(nèi)容:
Params
Numeric Lots(1);
Numeric TimesMaxToday(1); //限制當(dāng)天開倉最多次數(shù);
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); //記錄當(dāng)天開倉次數(shù);
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分鐘周期,其它的周期自己做相應(yīng)修改
這里怎么改成其他周期,比如日線,1小時(shí)線