This strategy overlays a smoothed moving average on price and combines it with Aroon, Chaikin Money Flow and a Chaikin oscillator to define long and short conditions.
1Copy the scriptPress Copy script above, or the copy button on the code below.
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
281 lines of Pine Script v5 from Tradingview/parabolic-sar.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Relative Vigor Index and Parabolic SAR values are calculated for exits. Entries can be limited to a 0930-1600 session, and position size defaults to five percent of equity. Stops, a profit target and a trailing stop are expressed in ATR multiples and can each be turned off. The SAR plot is hidden by default.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Length
int
20
smma_len
Source
source
close
smma_src
cond_must_be
bool
true
cond_must_be
Conditions Must Be Met Within Bars
int
7
condition_met_bars
Length
int
10
aroon_length
Length
int
20
cmf_length
Fast Length
int
3
co_short
Slow Length
int
10
co_long
Length
int
10
rvi_len
Start
float
0.02
sar_start
Increment
float
0.02
sar_increment
Maximum
float
0.2
sar_maximum
Show all 26 settings
Setting
Type
Default
Variable
Length
int
6
sma_length
Length
int
14
atr_length
bool
false
useTradingHours
Trading Time
session
0930-1600
trading_time
Long Trades
bool
true
long_trades
Short Trades
bool
true
short_trades
bool
true
use_profit_target
Profit Target ATRx
float
1.00
pt_amount
float
5.00
pt_amount2
bool
true
use__stop
Stop ATRx
float
1.50
stop_amount
bool
true
use__trailstop
Activate TS Stop ATRx
float
2.50
trailstop_act_amount
TS ATRx
float
2.00
trailstop_amount
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.
Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse
This strategy executes trades on gold based on a confluence of Supertrend, RSI, MACD, Bollinger Bands, and volume spikes. It enters long or short positions when trend direction aligns with momentum and price positioning relative to volatility bands, filtered b
This strategy backtests short entry setups by evaluating multiple confluence factors directly on the price chart. It combines price surge detection, RSI overbought conditions with rollover confirmation, Bollinger Band exhaustion, and optional volume spikes alo
This strategy calculates MACD, ADX trend strength, ATR, and a rolling VWAP resetting at fixed bar intervals. It plots the VWAP line, stop loss levels, and profit targets directly on the price chart. Long positions enter when MACD crosses above its signal line
This strategy generates trade entries by combining up to five normalized 0-100 technical indicators: Relative Strength Index (RSI with divergence detection), Stochastic RSI, Money Flow Index (MFI), Relative Volatility Index (RVI), and Average Directional Index
This overlay strategy combines a Bollinger-style band with separate ATR upper and lower envelopes and optional ADX, Volume Flow Indicator, and RSI filters. It sizes positions as a percentage of equity. Settings change band length and multiplier, ATR periods an