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
A long begins on a green non-doji candle whose high reaches the inner upper band, and a short on a red one reaching the inner lower band. Inputs set percentage stops and take profits, double entries, a doji precision filter and an optional massive-reversal check. A days-back window limits the test. Everything draws on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Max Days Back to Test
int
60
daysBackMax
Min Days Back to Test
int
0
daysBackMin
Long Stop Loss %
float
8
longStopPerc
Short Stop Loss %
float
8
shortStopPerc
Long Take Profit %
float
1
longTakePerc
Short Take Profit %
float
1
shortTakePerc
Allow double longs?
bool
true
allowDoubleLongs
Allow double shorts?
bool
true
allowDoubleShorts
Check for massive reversals?
bool
false
useMassive
Precision
float
0.01
Precision
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 combines Smart Money Concepts (BOS and CHoCH) with moving average trend filtering and volume spikes to generate trade signals. It checks for 20 EMA and 50 EMA alignment, along with volume 20% above its 20-period SMA. Long entries require a bullis
Calculates volume profile levels over a lookback window to identify support, resistance, and Point of Control (POC) lines on the price chart. It executes trades based on price interaction with these low-volume zones, featuring customizable signal inversion and
This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh
An open-source momentum scalping strategy for intraday charts of fast-moving stocks. It trades fast and slow EMA lines with a volume surge, a minimum momentum over a lookback, an optional VWAP condition and optional pullback re-entries, capped at a set number
An intraday strategy for MNQ futures built around volume delta and cumulative volume delta. Delta comes from either simple bar polarity or lower-timeframe volume. It adds delta z-scores, relative volume, close location, EMA and VWAP alignment filters, plus div
A long-only strategy for fast-moving small-cap crypto charts. It enters when volume is a set multiple of its recent average, the bar gains more than a minimum percentage, the candle is green and the move over the last twelve bars is not above a too-late limit.