1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
XAUUSD Momentum Breakout Strategy restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based initial fixed stop loss and a ratcheting ATR trailing stop. Key settings allow adjustment of Bollinger Band parameters, fast and slow EMA lengths, ATR multipliers, and session trading windows. The strategy plots overlay signals directly on the price chart.
Bollinger Bands breakout detection
Dual EMA trend direction confirmation
Session time filtering for European and US market hours
ATR-based fixed stop loss and trailing stop management
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
布林带周期
int
20
bb_period
布林带标准差
float
2.0
bb_std
EMA快线周期
int
20
ema_fast_len
EMA慢线周期
int
50
ema_slow_len
ATR周期
int
14
atr_period
止损ATR倍数
float
1.2
stop_loss_atr_mult
追踪止损ATR倍数
float
2.5
trailing_stop_atr_mult
欧美盘开始(北京时间)
int
15
european_start
欧美盘结束(北京时间)
int
2
european_end
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes. Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger up
TnSovereignPineFlowOrbV6 is an intraday strategy that identifies breakout entries using the opening range session combined with HTF EMA trend confirmation and DMI/ADX strength filters. It calculates position size based on equity risk percentage and ATR volatil
This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
This strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim