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
Getting User Input provides boolean toggles for on/off states, color pickers, integer and float numeric controls, symbol choices, price levels, price sources, timestamp selections, timeframe resolutions, string options, and session filters. Inputs are organized into groups for clarity. The script compiles by plotting na with no data drawn on the chart or separate pane. It functions purely as an educational example to teach input syntax rather than any trading signals, calculations, or visual analysis.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
On/Off
bool
true
inputBoolean
On/Off
bool
true
inputBoolean1
On/Off
bool
true
inputBoolean2
On/Off
bool
true
inputBoolean3
On/Off
bool
true
inputBoolean4
On/Off
bool
true
inputBoolean5
On/Off
bool
true
inputBoolean6
On/Off
bool
true
inputBooleanConfirm
color
color
color.black
inputColor
Whole Number
int
5
inputInteger
Whole Number With Options
int
5
inputIntegerWithOptions
Decimal Number
float
-0.5
inputFloat
Show all 19 settings
Setting
Type
Default
Variable
(Market) Symbol
symbol
SPY
inputSymbol
Price
price
0.0
inputPrice
Price Source
source
close
inputSource
Time
time
timestamp("01 Jan 2000 13:30 +0000")
inputTime
Timeframe
timeframe
60
inputResolution
String
string
A
inputString
Time Filter Session
session
0300-1300
inputSession
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 indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
Range Volume Change compares volume inside a chosen session window with the same window on the previous day and plots that change as a percentage. It accumulates volume during the window and, when enabled, volume outside it, drawing growing columns in a separa
Donald SPX - Options Trading is an indicator designed to assist SPX index option traders by tracking session benchmarks and multi-timeframe moving average data. It calculates a 200-period weighted moving average (WMA) and requests multi-timeframe bar data from
This indicator plots each bar's opening time as a numeric series in a separate pane. It uses Pine Script's built-in time value and draws one plot, not an overlay on price. There are no inputs, so the line follows the chart's bar timestamps without filters or o
This indicator summarizes higher-timeframe candle range statistics by time of day and shows them in a table in a separate pane. It groups candles into slots for 5-minute, 15-minute, 1-hour, 4-hour, 8-hour, or 12-hour periods over a chosen lookback in days, and
This indicator plots the active hours of major global trading sessions including Tokyo, Berlin, London, Sydney, and New York. It dynamically adjusts session times based on whether the instrument is classified as a traditional market or crypto. The script uses