Parameter: Price(Close), Length(20), UpMultiplier(2.0), DnMultiplier(-2.0)
Variables: BBTop(0), BBBot(0), BandWidth(0), BBMid(0)
1.系統平台僅供參考,投資人仍需自行判斷負責,本人不負任何法律責任。
2.任何參數請客戶自行設定,本人僅提供介面語法操作說明
3.實際可交易商品相關資訊請以主管機關公告為限。
Value1 = MAFC(Price, Length)
Value2 = StdDev(Price, Length)
BBTop = Value1 + UpMultiplier * Value2
BBBot = Value1 + DnMultiplier * Value2
BBMid = Value1
BandWidth = (BBTop-BBBot) / BBMid * 100
if marketposition = 0 and BandWidth < 25 then
Buy("買進")next bar at BBTop stop
Sell("賣出")next bar at BBBot stop
end if
if BandWidth > 25 then
exitlong("多單平倉")next bar at market
exitshort("空單平倉")next bar at market
end if
Variables: BBTop(0), BBBot(0), BandWidth(0), BBMid(0)
1.系統平台僅供參考,投資人仍需自行判斷負責,本人不負任何法律責任。
2.任何參數請客戶自行設定,本人僅提供介面語法操作說明
3.實際可交易商品相關資訊請以主管機關公告為限。
Value1 = MAFC(Price, Length)
Value2 = StdDev(Price, Length)
BBTop = Value1 + UpMultiplier * Value2
BBBot = Value1 + DnMultiplier * Value2
BBMid = Value1
BandWidth = (BBTop-BBBot) / BBMid * 100
if marketposition = 0 and BandWidth < 25 then
Buy("買進")next bar at BBTop stop
Sell("賣出")next bar at BBBot stop
end if
if BandWidth > 25 then
exitlong("多單平倉")next bar at market
exitshort("空單平倉")next bar at market
end if
沒有留言:
張貼留言