《HTS程式交易教學》[教學信號]布林/包寧傑通道買賣訊號範例[免費訊號教學]

Parameter: Price(Close), Length(20), UpMultiplier(2.0), DnMultiplier(-2.0), HoriMove(0)
1.系統平台僅供參考,投資人仍需自行判斷負責,本人不負任何法律責任。
2.任何參數請客戶自行設定,本人僅提供介面語法操作說明
3.實際可交易商品相關資訊請以主管機關公告為限。
Value11 = MAFC(Price, Length)
Value12 = StdDev(Price, Length)
Value1 = Value11 + UpMultiplier * Value12
Value2 = Value11 + DnMultiplier * Value12

Condition1 = Close Cross Over Value1
Condition2 = Close Cross Under value2
condition3 = close cross under value1
condition4 = close cross over value2

if condition1   then buy next bar at market
end if
if condition2  then sell next bar at market
end if

if currentcontracts=1 and condition3 then exitlong next bar at market
end if

if currentcontracts=-1 and condition4 then exitshort next bar at market
end if

沒有留言:

張貼留言

《HTS程式交易教學》[教學信號]KD買賣訊號範例[免費訊號教學]

Parameters : HighLowTerm(9), kLength(3), dLength(3), OverSold(20), OverBought(80) variables:value(0),value2(0); 1.系統平台僅供參考,投資人仍需自行判斷負責,本人...