請問版主怎樣求開盤后9:00到9:30之間的最高價? [開拓者 TB]
- 咨詢內容:
我想取任意周期開盤后9:00到9:30之間的最高價?怎么弄?
- TB技術人員:
可以參考這個 我在高手里面寫的
Parameter: Length(30), Qty(1)
Var: BarNum(0), MBO_High(0)
If RealTime And LastBaronchart Then
print("-- Caution --")
print("This Indicator is designed only for purpose of simulation MBO Strategy.")
print("It doesn't work properly on realtime because 'SetExitOnClose' Function is used.")
End if
If DataCompression = 2 Then
If D<>D[1] Then
BarNum = 0
MBO_High = C
MBO_Low = C
End IF
If opend(0) < 0 or BarIndex = 0 Then BarNum = -1
BarNum = BarNum + 1
If BarNum >= 1 And BarNum <= Length Then
If H >= MBO_High Then MBO_High = H
If L <= MBO_Low Then MBO_Low = L
End IF
If opend(0) >=0 And BarIndex <> 0 And BarNum > 1 Then
plot1(MBO_High)
plot2(MBO_Low)
End If
If C > MBO_High And MarketPosition = 0 And BarNum > Length And ExitsToday(D) = 0 Then Buy Qty Contract next bar at market
If C < MBO_Low And MarketPosition = 0 And BarNum > Length And ExitsToday(D) = 0 Then Sell Qty Contract next bar at market
SetExitOnClose
Else
If Lastbaronchart Then print("This Indicator only works on minute bar data")
End If
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容