為何不能過(guò)濾掉無(wú)效數(shù)據(jù)?? [開(kāi)拓者 TB]
- 咨詢內(nèi)容:
Params
Vars
NumericSeries HighestAfterEntry; // 開(kāi)倉(cāng)后出現(xiàn)的最高價(jià)
NumericSeries LowestAfterEntry; // 開(kāi)倉(cāng)后出現(xiàn)的最低價(jià)
Begin
If(Data0.Close != InvalidNumeric)
{
HighestAfterEntry = Data0.Close - Data1.Close;
LowestAfterEntry = Data0.Close - Data1.Close;
HighestAfterEntry = Max(HighestAfterEntry,HighestAfterEntry[1]); // 開(kāi)倉(cāng)的Bar,將開(kāi)倉(cāng)價(jià)和當(dāng)時(shí)的收盤價(jià)的較大值保留到HighestAfterEntry
LowestAfterEntry = Min(LowestAfterEntry,LowestAfterEntry[1]); // 開(kāi)倉(cāng)的Bar,將開(kāi)倉(cāng)價(jià)和當(dāng)時(shí)的收盤價(jià)的較小值保留到LowestAfterEntry
PlotNumeric("HighestAfterEntry",HighestAfterEntry);
PlotNumeric("LowestAfterEntry" ,LowestAfterEntry);
}
End
為何不能過(guò)濾掉無(wú)效數(shù)據(jù)??
DATA0為橡膠1709,DATA1為橡膠1705
圖片1.jpg (35.19 KB, 下載次數(shù): 0) 2017-2-13 15:56:02 上傳 - TB技術(shù)人員:
自已頂起
- TB客服:
7想法:RU1709無(wú)數(shù)據(jù)時(shí),RU1705的數(shù)據(jù)就被過(guò)濾掉,也就是說(shuō)2017年2月16日以前,RU1705的數(shù)據(jù)應(yīng)該不會(huì)顯示
- 網(wǎng)友回復(fù):
:victory:
- 網(wǎng)友回復(fù):
7想法:RU1709無(wú)數(shù)據(jù)時(shí),RU1705的數(shù)據(jù)就被過(guò)濾掉,也就是說(shuō)2017年2月16日以前,RU1705的數(shù)據(jù)應(yīng)該不會(huì)顯示
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容