Nopain的跨周期算法在夜盤品種如何調(diào)整 [開拓者 TB]
- 咨詢內(nèi)容:
Nopain的跨周期算法在夜盤品種如何調(diào)整,哪位大神出來(lái)講講
- TB技術(shù)人員:
做個(gè)好人,改了一下,不懂對(duì)不!
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 // 其他時(shí)間周期
{
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;
}
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容