章节 9 附錄:海龜通道系統完整程式碼
//@version=5
//@itradesoeasy.com
strategy("海龜通道策略(多)_TradeSoEasy", overlay=true)
// 輸入參數
channelLength = input(20, "通道長度")
EXITLENGTH = input(10, "出場通道長度")
// 計算進場價格
lentryPrice = ta.highest(high, channelLength)
sentryPrice = ta.lowest(low, channelLength)
sexitPrice = ta.highest(high, EXITLENGTH)
lexitPrice = ta.lowest(low, EXITLENGTH
举报
举报原因
感谢您的反馈!
分享给好友
分享