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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
The signal can come from a predefined moving average cross, from two external series crossing, or from an external plotted signal. For each signal it tracks three take profit and three stop loss levels set in ATR, ticks or points, with an optional ATR choppiness filter and direction setting. A dashboard shows hit statistics, a heatmap by period and suggested targets, and candles can be coloured.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source Mode
string
Predefined Crosses
sourceMode
Predefined Cross
string
9/21 EMA Cross
predefCross
External Fast Source
source
close
fastSource
External Slow Source
source
open
slowSource
External Long Signal
source
close
extLongSignal
External Short Signal
source
close
extShortSignal
External Signal Logic
string
Not NA (Plotshape/Markers)
signalLogic
Trade Direction
string
Both
tradeDirection
Use ATR Choppiness Filter
bool
false
useAtrFilter
ATR Smoothing Length
int
50
atrFilterLen
Distance Type
string
ATR
distType
ATR Length
int
14
atrLen
Show all 34 settings
Setting
Type
Default
Variable
Take Profit 1
bool
true
useTp1
tp1Val
float
1.0
tp1Val
Take Profit 2
bool
true
useTp2
tp2Val
float
2.0
tp2Val
Take Profit 3
bool
true
useTp3
tp3Val
float
3.0
tp3Val
Stop Loss 1
bool
true
useSl1
sl1Val
float
1.5
sl1Val
Stop Loss 2
bool
true
useSl2
sl2Val
float
2.5
sl2Val
Stop Loss 3
bool
true
useSl3
sl3Val
float
3.5
sl3Val
Show Dashboard
bool
true
showDash
Dashboard Position
string
Top Right
dashPos
Dashboard Size
string
Small
dashSize
Heatmap Period
string
Days of Week
heatmapPeriod
Suggested TP Metric
string
Hit Rate
suggestMetric
Gradient Candle Coloring
bool
true
useCandleColor
Simulate Spread & Commission
bool
false
useCosts
Cost Profile
string
Manual
costProfile
Manual Spread (Ticks)
float
1.0
manualSpread
Manual Commission (%)
float
0.01
manualComm
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 overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi
This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria
TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi
The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab
This indicator colors the chart background using a full-screen single-cell table based on the 20-period Relative Strength Index (RSI). When the RSI is above 50, the table applies a bullish background color, and when below 50, a bearish color. The background up
This indicator analyzes historical candle direction and price range over a configurable lookback window to gauge market trend. It categorizes trend direction using candle count, price range sum, or both. Signals are filtered using a Simple Moving Average to en