This trend-following strategy overlays fast and slow Hull Moving Averages, Parabolic SAR, Chaikin Money Flow, a Volume Oscillator, and Heikin Ashi candle confirmation on the main price chart.
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
Long entries occur when price and fast HMA are above the slow HMA, SAR is below price, and volume indicators are positive. Short entries require inverse conditions. Positions exit when an opposite entry condition triggers. Users can adjust indicator lengths, SAR parameters, and toggle long or short trades. Note that the script lacks an active automated stop loss in code.
Dual Hull Moving Average trend filter
Parabolic SAR trend trailing
Chaikin Money Flow and Volume Oscillator integration
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Allow Long entries?
bool
true
longEntry
Allow Short entries
bool
false
shortEntry
Short Length Volume Oscillator
int
5
shortlen
Long Length Volume Oscillator
int
10
longlen
Length CMF
int
2
length
SAR Start
float
0.05
start
SAR Increment
float
0.15
increment
SAR Max Value
float
0.2
maximum
LONG Stop Loss %
float
100.0
stopPerS
LONG Take Profit %
float
100.0
takePerS
SHORT Stop Loss %
float
100.0
stopPerShort
SHORT Take Profit %
float
100.0
takePerShort
Show all 17 settings
Setting
Type
Default
Variable
stop loss %%
int
5
stop loss %%
take profit 1 %%
int
5
take profit 1 %%
take profit 2 %%
int
10
take profit 2 %%
take profit 3 %%
int
15
take profit 3 %%
activate trailing on third stage (tp3 is amount, tp2 is offset level)
bool
false
activateTrailingOnThirdStep
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 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 enters long or short when eight conditions align over the last two bars. It requires EMA 10 and EMA 55 alignment on the one-hour, four-hour and daily charts, a positive ADX slope, matching monitor direction, and price relative to a 400-bar point
This strategy enters long when a fast EMA crosses above a slow EMA and RSI, ADX, and volume all clear their thresholds. It sizes the order from a percentage of equity and an ATR stop distance, then sets a partial profit target at a multiple of that risk. After
This overlay strategy combines three distinct SuperTrend levels with multiple moving averages and volume profile analytics on the main price chart. It calculates trend directions using three configurable ATR periods and multipliers alongside SMA, EMA, and HMA
This strategy calculates trade signals by evaluating a daily session Volume Weighted Average Price relative to 90-period Exponential Moving Averages requested from 1-day and 4-hour higher timeframes. Long and short entries occur when VWAP crosses over or under