日盤,09點開盤到當前bar,的最低價和最高價。如何得到? [開拓者 TB]
- 咨詢內(nèi)容:
本帖最后由 zhongchendi 于 2016-2-14 16:48 編輯
日盤,09點開盤到當前bar,的最低價和最高價。如何得到?
夜盤,21點開盤到當前bar,的最低價和最高價。如何得到? - TB技術(shù)人員:
本帖最后由 zhongchendi 于 2016-2-14 16:48 編輯
日盤,09點開盤到當前bar,的最低價和最高價。如何得到?
夜盤,21點開盤到當前bar,的最低價和最高價。如何得到? - TB客服:
- vars
- numericseries myhigh;
- numericseries mylow;
- begin
- if(time == 0.09 or time == 0.21)
- {
- myhigh = high;
- mylow = low;
- }else
- {
- myhigh = max(myhigh,high);
- mylow = min (mylow,low);
- }
- plotnumeric("myhigh",myhigh);
- plotnumeric("mylow",mylow);
- end
- vars
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容