param: 短MA參數(5),長MA參數(10)
1.系統平台僅供參考,投資人仍需自行判斷負責,本人不負任何法律責任。
2.任何參數請客戶自行設定,本人僅提供介面語法操作說明
3.實際可交易商品相關資訊請以主管機關公告為限。
condition1=average(close,短MA參數) > average(close,長MA參數)
condition2=average(close,短MA參數) < average(close,長MA參數)
if condition1 and high<high[1]then buy("多")
next bar at market
end if
if condition2 and low>low[1] then sell("空")
next bar at market
end if
1.系統平台僅供參考,投資人仍需自行判斷負責,本人不負任何法律責任。
2.任何參數請客戶自行設定,本人僅提供介面語法操作說明
3.實際可交易商品相關資訊請以主管機關公告為限。
condition1=average(close,短MA參數) > average(close,長MA參數)
condition2=average(close,短MA參數) < average(close,長MA參數)
if condition1 and high<high[1]then buy("多")
next bar at market
end if
if condition2 and low>low[1] then sell("空")
next bar at market
end if
沒有留言:
張貼留言