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
These are not a true volume profile: the code builds approximate levels from the previous session's high, low and close, taken from a daily, weekly or monthly timeframe and scaled by a value area percentage. It draws POC, VAH and VAL lines, can trade long only, short only or both with an entry offset, and uses ATR stop and target. Size is 10 percent of equity.
Approximate POC, VAH and VAL levels from the prior session
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
VP Session Timeframe
timeframe
D
vp_session_tf
Value Area Percentage
float
70.0
vp_vah_val_percent
Number of Price Bins
int
100
vp_bins
ATR Length
int
14
atr_length
ATR Stop Loss Multiplier
float
2.0
atr_multiplier_sl
ATR Take Profit Multiplier
float
3.0
atr_multiplier_tp
Enable Trading
bool
true
trade_enabled
Entry Offset (Pips/Ticks)
float
0.0
entry_offset_pips
Trade Direction
string
Both
trade_direction
Show VP Levels
bool
true
show_levels
POC Color
color
color.new(color.blue, 0)
poc_color
VAH Color
color
color.new(color.green, 0)
vah_color
Show all 14 settings
Setting
Type
Default
Variable
VAL Color
color
color.new(color.red, 0)
val_color
Signal Shape Size
string
size.small
signal_shape_size
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.
Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C
This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re
This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail
This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad
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 trading strategy detects key support and resistance zones on the price chart by identifying candle rejection wicks over a customizable lookback period. It filters potential trades using an Exponential Moving Average (EMA), Change in Status/Direction (CISD