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
A symbol profile preset selects gates and a higher timeframe. Entries depend on a volume profile value area, a swing VWAP, MACD Heikin-Ashi and a squeeze reading, plus a gate for FOMC days combined with an elevated VIX. Size is scaled by a Kelly fraction and a risk percentage, and trades can be force-closed after a number of bars. The tester does not model real option profit and loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
① Symbol profile
string
IONQ
profile
Value area fill
bool
true
showVA
POC + VWAP lines
bool
true
showLevels
Stop / trail while in trade
bool
true
showStops
BUY / EXIT markers
bool
true
showSignals
Trade labels
bool
true
showLabels
Dashboard
bool
true
showDash
Gate traffic lights
bool
true
showGates
Soft position background
bool
true
cleanBg
Target DTE (days)
int
21
dteDays
OTM % (0 = ATM)
float
0.0
otmPct
Min size (skip weak)
float
0.35
minSizeFrac
Show all 40 settings
Setting
Type
Default
Variable
Risk % equity / trade
float
10.0
riskPct
Kelly fraction
float
0.5
kellyFrac
Force exit at ~DTE bars
bool
true
exitOnDte
Enable FOMC ∧ VIX gate
bool
true
useSurgical
FOMC day NOW (manual)
bool
false
fomcDay
VIX symbol
symbol
TVC:VIX
vixTicker
VIX elevated if above
float
20.0
vixElevated
VA %
float
70.0
vaPct
VP rows
int
25
rows
VP lookback
int
20
lookback
MACD fast
int
12
fastL
MACD slow
int
26
slowL
HTF if Custom
timeframe
D
htfCustom
Swing period
int
50
prd
VWAP APT
float
20
baseAPT
Vol SMA
int
20
volLen
Vol look
int
5
volLook
SQZ length
int
20
bbLen
BB mult
float
2.0
bbMult
KC mult
float
1.5
kcMult
Min confidence
float
0.55
minConf
Soft confidence
bool
true
softConf
Hard stop ATR
float
1.5
stopAtr
Trail ATR
float
2.5
trailAtr
Arm trail ATR
float
1.0
armTrailAtr
Need HTF green
bool
true
c_reqHtf
Need above VWAP
bool
true
c_reqAboveVwap
Need vol expand
bool
false
c_reqVolExpand
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 strategy calculates multiple technical indicators including EMAs, SuperTrend, ADX, RSI, MACD, Stochastic, and volume MA to generate entry signals for Indonesian stocks. It supports three entry trigger modes: Composite Score, Pullback, and Breakout, with f
This overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
This strategy plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a
This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad
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 strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price