
この戦略は、15分足ローソク足チャートに基づいた画期的な取引システムです。基本的な考え方は、各取引日の最初の15分足ローソク足の高値と安値を使用して価格チャネルを構築し、市場トレンドを捉えて突破することです。チャンネル。この戦略は、開始時の価格変動範囲を分析することにより、日中取引の明確なエントリー シグナルを提供します。
この戦略は、次の基本原則に基づいて実行されます。
この戦略は、取引開始時間中に価格のブレイクアウトを監視することにより、シンプルだが効果的な取引方法を提供します。その主な利点は、シンプルなロジックと明確な実行にありますが、トレーダーは誤ったブレイクスルーのリスクと市場環境への適応性にも注意を払う必要があります。リスク管理の継続的な最適化と改善を通じて、この戦略は実際の戦闘でより良いパフォーマンスを達成することが期待されます。戦略をうまく適用するには、トレーダーが市場特性を深く理解し、自身のリスク許容度に基づいて適切な調整を行う必要があります。
/*backtest
start: 2024-01-17 00:00:00
end: 2024-07-25 00:00:00
period: 15m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT","balance":49999}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © OLYANGO
//@version=5
strategy("15 Min Breakout Strategy by https://x.com/iamgod43 (Yallappa) ", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Define the start of backtest period
startDate = timestamp(2023, 1, 1, 0, 0)
// Ensure the script is run on a 15-minute chart
// if (timeframe.period != "15")
// alert("Switch to a 15-minute chart for this strategy.", alert.freq_once_per_bar_close)
// Variables to store the first 15-minute candle's high and low
var float firstCandleHigh = na
var float firstCandleLow = na
var bool isFirstCandleCaptured = false
// Detect the first candle of the session
isFirstCandle = (hour == 9 and minute == 15)
// Reset first candle values for the new session
if isFirstCandle
firstCandleHigh := high
firstCandleLow := low
isFirstCandleCaptured := true
// Check for breakout conditions
longCondition = isFirstCandleCaptured and close > firstCandleHigh
shortCondition = isFirstCandleCaptured and close < firstCandleLow
// Entry signals
if longCondition
strategy.entry("Buy Signal", strategy.long)
if shortCondition
strategy.entry("Sell Signal", strategy.short)
// Plot the first 15-minute candle high and low
plot(isFirstCandleCaptured ? firstCandleHigh : na, color=color.green, linewidth=2, title="First Candle High")
plot(isFirstCandleCaptured ? firstCandleLow : na, color=color.red, linewidth=2, title="First Candle Low")
// Backtesting start date logic
if time < startDate
strategy.close_all("Pre-Backtest Period")