Indicator · Pine Script v6 · On the chart

Mac Buy/Sell Indicator

by acquillemac

A SuperTrend-style indicator built on ATR and RMA bands that prints buy and sell signals when the direction flips, optionally filtered by a 9 and 21 EMA cross.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code832
Settings32inputs
LicenceNone stated
Last update6 weeks ago12 Sep 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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

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

Mac Buy/Sell Indicator draws two ATR-based take profit levels, background colour and a stats table that scores past signals. A smart money layer adds support and resistance zones, break of structure and change of character labels, market structure labels, fair value gaps, a premium and discount midline, order blocks and liquidity sweeps, with a legend. All drawing is on the price chart.

Details

Published by

acquillemac on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, SMC / ICT / price action, Support & resistance, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

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
Max Labels to Keepint500max_labels_count
ATR Lengthint14atrLen
ATR Multiplierfloat1.5atrMult
MA Length (Teal)int24maLen
TP1 x ATRfloat1.5tpMult1
TP2 x ATRfloat3.0tpMult2
Show TP LevelsbooltrueshowTPs
Show Background ColorbooltrueshowBG
Use EMA Cross FilterbooltrueuseFilter
EMA Fast Lengthint9emaFastLen
EMA Slow Lengthint21emaSlowLen
Commission %float0.0commPct
Show all 32 settings
SettingTypeDefaultVariable
Slippage (ticks)int0slipTicks
Show Win-Rate StatsbooltrueshowStats
Show On-Chart LegendbooltrueshowLegend
Show Support / Resistance ZonesbooltrueshowSR
Show BOS / CHoCHbooltrueshowBOS
Show Market Structure (HH/HL/LH/LL)booltrueshowMS
Show Fair Value GapsbooltrueshowFVG
Show Premium / Discount midlinebooltrueshowPD
Pivot Lookbackint5pivotLen
Max S/R Zonesint5maxZones
Zone Width (ATR mult)float0.5zoneWidthA
Min FVG Size (ATR mult)float0.5fvgMinA
Max FVG Zonesint3maxFVGs
BOS Lookback Barsint10bosLookback
Show Order BlocksbooltrueshowOB
Max Order Blocks (per side)int3maxOBs
OB Extend Bars (right)int50obExtend
Delete OB on Mitigation (close-through)booltrueobMitigate
Show Liquidity SweepsbooltrueshowSweeps
Sweep Lookback Barsint10sweepLookback
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

This indicator detects market accumulation phases and bottom formations over time rather than generating single-point buy signals. It evaluates five scoring components: trend loss, range formation, volatility compression, liquidity behavior, and early bullish

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Vein: Accumulation Phase 4H [WavesUnchained]

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of Imagegpt Test 1
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans

Dynamic Linear Regression

by TradersPost
218 stars

Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers