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 user sets an entry time, entry price and stop loss on the chart, plus account balance and risk percentage. The script draws the stop and two take-profit levels, from reward-to-risk ratios or manual prices, and shades the zones. It also works out a lot size from the risk amount and shows a partial close at the first target. Interface text is in Spanish. It calculates and displays only and does not place orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
🕒 Tiempo de Entrada
time
0
entryTime
📍 Entry Price
price
0
entryPrice
🛑 Stop Loss
price
0
stopPrice
Balance de Cuenta (USD)
float
10000.0
i_account
Riesgo (% del balance)
float
1.0
i_risk_pct
Ratio TP1 (R:R)
float
2.0
i_rr_tp1
Ratio TP2 (R:R)
float
3.0
i_rr_tp2
🏁 TP1 precio manual (0 = usa ratio)
price
0
tp1_override
🏁 TP2 precio manual (0 = usa ratio)
price
0
tp2_override
% a cerrar en TP1
float
80.0
i_partial_pct
Mostrar zonas coloreadas
bool
true
i_show_zones
Ancho de zonas (barras)
int
15
i_zone_bars
Show all 16 settings
Setting
Type
Default
Variable
Tamaño texto labels
string
Normal
i_label_size
Color SL
color
#FF1744
i_sl_color
Color TP1
color
#00E676
i_tp1_color
Color TP2
color
#00B0FF
i_tp2_color
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.
The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
This indicator classifies each bar as bull, bear, or sideways from a rolling log return compared with adjustable percentage thresholds. It paints a regime ribbon on the price chart, shows a current-regime banner, and labels state changes after a minimum hold.
This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab
This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos
1833 Tracker is an overlay indicator that visualizes historical buy and sell transactions executed by ARK Invest ETFs for the stock on the main price chart. It displays trade dates using green buy and red sell labels positioned relative to price bars, indicati