この戦略は,波動帯の指標に基づいて,潜在的なトレンドブレイクポイントを探すために移動回転の輪郭を導入する.それは,前進する波動帯を計算し,価格が前進する波動帯を突破したときに取引シグナルを発信する.この戦略は,波動帯の強力なトレンド認識能力と移動回転の輪郭が提供する早期警告能力を組み合わせて,より効果的なエントリーポイントの位置を発見することを目的としています.
この戦略は波動帯そのものの優位性を十分に利用し,移動型転換形状によって入場のタイム効率を向上させる.この戦略は,最適化パラメータの組み合わせ,フィルタ条件の追加,およびトレンド状況をさらに考慮する基盤で,より強力な突破システムとなる.全体的に,この戦略はシンプルで実用的で,よりよい反測と実盤結果を得るためにさらなるテストと最適化の価値があります.
/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-18 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy("LAGging span leaves Bollinger Bands strategy" , shorttitle="LagBB" , overlay=true)
source = input( hl2 )
length = input(20, minval=1)
mult = input( 1.0, minval=0.0, maxval=50)
x_offset = input( 26 ,minval=0 , maxval=244 )
basis = sma(source, length)
dev = mult * stdev(source, length)
upper = basis + dev
lower = basis - dev
buyEntry = crossover(source, upper[x_offset] )
sellEntry = crossunder(source, lower[x_offset] )
if (crossover(source, upper[x_offset] ))
strategy.entry("LE", strategy.long, stop=lower, oca_name="BollingerBands", comment="LE")
else
strategy.cancel(id="LE")
if (crossunder(source, lower[x_offset] ))
strategy.entry("SE", strategy.short, stop=upper, oca_name="BollingerBands", comment="SE")
else
strategy.cancel(id="SE")
//plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)
plot( upper , color=#cccc00 , transp=50 , offset=x_offset )
plot( basis , color=#cccc00 , offset=x_offset )
plot( lower , color=#cccc00 , transp=50 , offset=x_offset )