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
320 lines of Pine Script v5 from Tradingview/scaralgo-v1.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
ScarAlgo v1 triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum oscillator to identify early profit-taking opportunities. The script also plots market structure features including pivot highs and lows, break-of-structure markers, support and resistance lines, and reversal zone clusters. Trades are managed with configurable percentage stop loss, take profit targets, and break-even stops.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Long Trades
bool
true
use_long_trades
Short Trades
bool
true
use_short_trades
Buy/Sell Signals
bool
true
showsignals
Default Take Profit
bool
true
showtp
int
6
Periods
MA Filter
bool
true
show_ma
int
50
ma_length
string
EMA
ma_type
timeframe
ma_tf
If Using Default TP create SL at B/E
bool
true
use_be
Target
bool
false
use_tp
tp_amount
float
1.00
tp_amount
Show all 29 settings
Setting
Type
Default
Variable
tp_type
string
Percent
tp_type
Stop Loss
bool
true
use_sl
sl_amount
float
1.00
sl_amount
sl_type
string
Percent
sl_type
Reversal Zone
bool
true
showrz
Reversal Zone Cluster
bool
true
showrzc
Reversal Zone Width
int
42
length
Show Market Structure Markers
bool
true
ShowHHLL
Show Martet Structure Price
bool
true
ShowPrice
Show S/R Level Extensions
bool
true
ShowSRLevels
Show Break of Structure
bool
true
ShowFB
High's
source
high
srcH
L
int
20
leftLenH
R
int
20
rightLenH
Low's
source
low
srcL
L
int
20
leftLenL
R
int
20
rightLenL
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 identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt
Donald - AI Futures 5M 15M Timeframe is an overlay trading strategy designed for intraday futures trading. It utilizes rational quadratic kernel regression to construct dynamic momentum zones and smoothed price boundaries on the main price chart. The strategy
This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
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
This strategy enters trades in the opposite direction of filled value gaps, operating under the assumption that price action will resume the primary trend after filling a recent gap. It plots directly on the main price chart and supports MA-based trend filters