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
VWAP EMA Trend Continuation (clean trend + spacing) generates long signals on fast EMA crossover with VWAP or price crossover with both when in uptrend with volume filter and slope confirmation. Short signals mirror for downtrends. Entries use fixed percent of equity with spacing between trades. Exits trigger on trend EMA cross for early close or slow EMA cross for final exit. Settings adjust EMA lengths, VWAP and slope thresholds, volume filter, early exit option, and minimum bars between entries. It draws on the price chart only and lacks stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Enable long trades
bool
true
useLong
Enable short trades (mirror)
bool
false
useShort
Fast EMA length (entry)
int
9
emaFastLen
Trend EMA length (early exit)
int
21
emaTrendLen
Slow EMA length (final exit)
int
200
emaSlowLen
VWAP slope lookback bars
int
10
vwapSlopeLookback
Min VWAP slope (vwap - vwap[lookback])
float
0.0
vwapSlopeMin
Use volume filter
bool
true
useVolFilter
Volume SMA length
int
20
volSmaLen
Exit on EMA(trend) cross before EMA(slow)
bool
true
useEarlyExit
Slow EMA slope lookback
int
20
emaSlowSlopeLookback
Min slow EMA slope
float
0.0
emaSlowSlopeMin
Show all 13 settings
Setting
Type
Default
Variable
Min bars between entries
int
15
minBarsBetweenEntries
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 combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a
Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma
This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross
This strategy enters long when a faster moving average crosses above a slower one and short when it crosses below, unless long-only mode is on. An optional volume filter requires volume above a 20-bar average times a multiplier. Exits use a percentage stop los
This strategy plots four exponential moving averages on the price chart and filters trades with a smoothed Ease of Movement oscillator. In the default mode it opens a long when price and the four averages are stacked upward and Ease of Movement is positive, th
This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra