Nopain的跨周期算法在夜盤品種如何調整 [開拓者 TB]
- 咨詢內容:
Nopain的跨周期算法在夜盤品種如何調整,哪位大神出來講講
- TB技術人員:
做個好人,改了一下,不懂對不!
If (TimeFrame == 40320) // 月線
{
CurTime = Month;
PreTime = Month[1];
}
Else If (TimeFrame == 10080) // 周線
{
CurTime = IntPart(DateDiff(19700105,Date)/7);
PreTime = IntPart(DateDiff(19700105,Date[1])/7);
}
Else // 其他時間周期
{
CurTime = IntPart((DateDiff(19700105,date)*1440 + Hour*60 + Minute)/TimeFrame);
PreTime = IntPart((DateDiff(19700105,date[1])*1440 + Hour[1]*60 + Minute[1])/TimeFrame);
}
If(TimeFrame == 1440) //日線
{
if(TrueDate(0)!=TrueDate(1))
{
condition=True;
}
}
Else
{
condition = CurTime != PreTime;
}
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容