OPEN-SOURCE SCRIPT

Bitcoin 1H-15M Breakout Strategy

Key Features

1H and 15M Timeframes:
The script uses the 1-hour timeframe for the range and 15-minute timeframe for breakout conditions.
request.security is used to fetch the higher timeframe data.

Risk Management:
Variables entry_price, sl_price, and tp_price are declared explicitly as float with na initialization to handle dynamic assignment.
Stop-loss and take-profit levels are calculated based on the specified Risk-Reward Ratio (RRR) and buffer (in pips).

Trade Logic:
Long trade triggered when the 15-minute candle closes above the 1-hour high.
Short trade triggered when the 15-minute candle closes below the 1-hour low.

Visualization:
The range_high and range_low (previous 1-hour high and low) are plotted on the chart using dashed lines.

Debugging:
Enabling the show_debug input displays labels showing stop-loss and take-profit values for easier troubleshooting.
Chart patternsforecasting

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité