この戦略は”ブリン5分突破日内取引戦略”と呼ばれ,ブリン帯指数に基づく短線取引戦略で,5分時間枠の日内取引を専用に設計されている.この戦略は,ブリンがもたらす市場の短期突破の機会を利用して,価格が軌道上を突破するときに多額のポジションを開き,軌道下を突破するときに平仓を打つ.同時に,この戦略は,日内取引の原則を厳密に遵守し,毎日の取引日の午後3時までに清算し,夜間ポジションのリスクを回避する.
戦略の基本は以下の通りです.
この戦略の原理は,ブリンを活用して,市場の短期的な傾向と波動を捕捉することである.ブリン帯は,3つの線で構成される:中軌,上軌,下軌.中軌は価格の移動平均であり,上軌と下軌はそれぞれ中軌の基礎に標準差を減算する.価格が上軌を突破すると,上昇傾向が形成されていることを意味し,購入することができる.価格が下軌を突破すると,上昇傾向が終了する可能性があることを意味し,平仓するべきである.同時に,この戦略は,毎日の取引日の午後3時までに平仓し,夜間ポジションがもたらす大きな損失を避けるために,リスクを厳しく制御する.
この戦略の利点は
この戦略のリスクは,
この戦略のリスクに合わせて,以下の最適化方向を考慮することができます.
全体として”,ブリン5分突破日内取引戦略”は,簡潔で使いやすい,短線取引に適した戦略である.それは,ブリン帯の指標を使用して,市場の短期的な傾向と波動を捉え,同時に,リスクを厳格に制御し,夜間ポジションを避ける.この戦略には,頻繁な取引,偽信号などのいくつかのリスクがあるが,パラメータを最適化し,他の指標を導入し,ストップ・ロスを設定し,基本面分析方法と組み合わせることで,戦略の安定性と収益性をさらに向上させることができる.
/*backtest
start: 2023-03-22 00:00:00
end: 2024-03-27 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Bollinger Breakout Strategy 5m", shorttitle="BB Strategy 5m", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, margin_long=100)
// Define the strategy parameters
length = 100
multUpper = 3.0
multLower = 1.0
src = close
// Calculate Bollinger Bands
basis = ta.sma(src, length)
upperDev = multUpper * ta.stdev(src, length)
lowerDev = multLower * ta.stdev(src, length)
upperBand = basis + upperDev
lowerBand = basis - lowerDev
// Plot Bollinger Bands
plot(basis, "Basis", color=color.blue)
plot(upperBand, "Upper Band", color=color.green)
plot(lowerBand, "Lower Band", color=color.red)
// Entry and exit conditions
enterLong = ta.crossover(src, upperBand)
exitLong = ta.crossunder(src, lowerBand)
// Visual signals for entries and exits
bgcolor(enterLong ? color.new(color.green, 90) : na, title="Entry Background")
bgcolor(exitLong ? color.new(color.red, 90) : na, title="Exit Background")
plotshape(enterLong, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Enter Long")
plotshape(exitLong, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Exit Long")
// Adjusting for timezone - Ensure the time is converted to the exchange's timezone
session_close_hour = 15 // 3 PM in EST, adjust if your trading platform uses a different timezone
is_time_to_exit = (hour >= session_close_hour and minute > 0) or (hour > session_close_hour)
// Trading logic
if (enterLong)
strategy.entry("Long", strategy.long)
if (exitLong or is_time_to_exit)
strategy.close("Long")
// Note: Adjust 'session_close_hour' to match your exchange's closing hour if it differs from EST.