Strategy · Pine Script v6 · On the chart

Hari Sweep Scalper

by godlesscherry

This overlay strategy looks for Bollinger Band and optional fractal sweeps only in the Supertrend direction, with an optional MACD filter.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code234
Settings21inputs
LicenceNone stated
Last update7 months ago8 Mar 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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 and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters with a fixed percent of equity, places percent stop loss and take profit, and can exit on a Supertrend flip or after a maximum hold. It draws bands, fractal levels, and setup labels on the price chart. The notes point to a 15-second chart.

Details

Published by

godlesscherry on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Volatility & bands, Oscillators & momentum, Scalping

Markets

Any symbol

Timeframes

M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Supertrend ATR Lengthint10stAtrLen
Supertrend Factorfloat2.0stFactor
BB Lengthint20bbLen
BB StdDevfloat2.0bbMult
Allow Midline SweepbooltrueuseBBMid
Allow Outer Band SweepbooltrueuseBBOuter
Fractal Strengthint2frLen
Require Fractal SweepbooltrueuseFrSweep
Use MACD FilterbooltrueuseMACD
MACD Fastint12macdFast
MACD Slowint26macdSlow
MACD Signalint9macdSignal
Show all 21 settings
SettingTypeDefaultVariable
Stop Loss %float0.35slPct
Take Profit %float0.60tpPct
Max Hold Bars (15s chart: 4 bars = 1 min)int4maxHoldBars
Setup Expires After N Barsint2setupExpires
Enable ShortsbooltrueuseShorts
Exit on Trend Flip (Supertrend)booltrueuseTrendFlipExit
Show Setup / Entry LabelsbooltrueshowLabels
Show Last Fractal LevelsbooltrueshowFractals
Show Bollinger BandsbooltrueshowBB
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.

Similar Pine Scripts

27 stars

LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of LuxAlgo Hybrid Gold Scalper

This trend-following scalping strategy combines a moving average trend filter with the Absolute Strength Histogram indicator. It opens long positions when price is above a selectable baseline moving average and the histogram signals bullish momentum, and short

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone Absolute Strength Histogram ATR

Box Scalper

by wynnforthework
2 stars

This strategy draws on the price chart and combines a momentum zigzag, a custom QQE built from RSI, ADX directional strength, an SSL filter, and a coefficient-of-variation weighted average. Box period, deviation, and threshold inputs set the box filter, while

Strategy v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Box Scalper
106 stars

This trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3 x EMA + Stochastic RSI + ATR

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers