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
Statistical OHLC Projections can show one or two selected timeframes, with an optional New York midnight session start, and uses a lookback window to draw average and median levels. Plotted lines include the open, maximum range, user-set percentiles, and manipulation and distribution highs and lows. Display mode, line style, and an optional statistics table are configurable, and older drawings can be removed. It does not generate trade entries or exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show first timeframe
bool
true
show1
First timeframe
timeframe
480
tf1
Use NY midnight for TF1
bool
false
nyMidnight
Show second timeframe
bool
false
show2
Second timeframe
timeframe
60
tf2
Use NY midnight for TF2
bool
false
nyMidnight2
Lookback Period
int
60
datalookback
Display Mode
string
Both
displayMode
Line Style
string
Dotted (┈)
styleOption
Remove previous drawings
bool
true
deletePrev
Show max range levels
bool
true
showMaxRange
Max range (Average)
color
color.new(color.purple, 0)
maxRangeColor
Show all 40 settings
Setting
Type
Default
Variable
Max range (Median)
color
color.new(color.teal, 0)
maxRangeMedianColor
Show percentile levels
bool
true
showPercentiles
Upper percentile
float
75.0
percentile75
Lower percentile
float
25.0
percentile25
Percentile lines color
color
color.new(color.blue, 0)
percentileColor
Percentile line style
string
Dashed (╌)
percentileStyle
Open line
color
color.red
openColor
Text color
color
color.black
txtColor
Manipulation high (Average)
color
color.new(#2a2e39, 0)
mhColor
Manipulation low (Average)
color
color.new(#2a2e39, 0)
mlColor
Distribution high (Average)
color
color.new(#2a2e39, 0)
dhColor
Distribution low (Average)
color
color.new(#2a2e39, 0)
dlColor
Manipulation high (Median)
color
color.new(#2a2e39, 50)
mhMedianColor
Manipulation low (Median)
color
color.new(#2a2e39, 50)
mlMedianColor
Distribution high (Median)
color
color.new(#2a2e39, 50)
dhMedianColor
Distribution low (Median)
color
color.new(#2a2e39, 50)
dlMedianColor
Show statistics table
bool
false
showTable
Table cell color
color
color.new(color.white, 100)
bgColor1
Table Position
string
Top Right
tablePosition
Table Text Size
string
Small
tableTextSize
Enable premium/discount zones
bool
false
premdisc
Premium zone color
color
color.new(#ff1c1c, 90)
premcolor
Discount zone color
color
color.new(#1cff2f, 90)
disccolor
Alert on + manipulation hits (Average)
bool
false
enAlertsMB
Alert on - manipulation hits (Average)
bool
false
enAlertsMS
Alert on + distribution hits (Average)
bool
false
enAlertsDB
Alert on - distribution hits (Average)
bool
false
enAlertsDS
Alert on + manipulation hits (Median)
bool
false
enAlertsMBMedian
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 builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-
This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds
This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in
The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh
Indicatorv6SMC / ICT / price actionSessions & time
This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow
This indicator plots reference levels and session markers directly on the price chart. It calculates and draws lines for the daily open, weekly open, monthly open, previous day OHLC, and previous week extremes, along with a selectable day-of-week range and ini