關(guān)于Dual Thrust策略,怎么改周期 [開(kāi)拓者 TB]
- 咨詢內(nèi)容:
Params
Numeric Lots(1);
Numeric TimesMaxToday(1); //限制當(dāng)天開(kāi)倉(cā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)天開(kāi)倉(cā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í)線
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容