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
Short moving averages with an ATR buffer detect a bearish stack, which raises the required score and tints the chart background. It opens one long position on the price chart and closes it if price drops more than two ATRs from the highest high since entry. There is no protective stop by default, and the signal can change on the live bar. Lookback length, amplitude percentile, and the two score thresholds are the main settings.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
基础周期 (CCI/ATR/HL)
int
20
lookback_period
波动率百分位追溯周期
int
200
vol_pr_lookback
波动率准入百分位
int
50
vol_pr_threshold
形态振幅准入百分位
int
66
min_amp_pr
标准信号触发分值
int
3
score_threshold
空头排列时触发分值
int
5
strict_score
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 enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b
This strategy executes long positions based on Bollinger Band midline interactions and candlestick price action. It confirms an entry when the bar's low touches or breaches the 20-period moving average midline while fulfilling one of four candlestick criteria,
This strategy detects bullish and bearish engulfing candles, hammers, shooting stars, and morning stars from current and prior bar bodies. It enters long when a bullish pattern occurs while price is below a simple moving average, and short when a bearish patte
The Volume Spike Reversal strategy identifies potential price reversals driven by high volume activity. It triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish
This strategy plots Bollinger Bands on the price chart with adjustable length, standard deviation, and offset. It defines buy and sell zones using candle size percentage and body size thresholds. Long positions enter when the lower zone is breached without con
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish