Indicator · Pine Script v6 · On the chart

Symmetric Attraction

by morindok

Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code412
Settings15inputs
LicenceNone stated
Last update7 weeks ago6 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

The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It also draws a regression channel, pivot symmetry lines, a connector between them, and an attraction prediction line. Inputs allow adjusting the regression length from 10 to 2000, the source type, logarithmic symmetry toggle, channel multiplier, and toggling visibility of each component. The indicator draws all elements directly on the price chart and does not provide trading signals or exit rules.

Details

Published by

morindok on GitHub

Draws

On the price chart

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
Regression Lengthint100length
Regression Sourcesourcehlc3source
Logarithmic SymmetrybooltrueuseLog
Channel Multiplierfloat2.0channelMultiplier
Show Mirrored CandlesbooltrueshowMirror
Show Regression ChannelbooltrueshowChannel
Show Pivot Symmetry LinesbooltrueshowEventLines
Connect Two Event LinesbooltrueshowConnector
Mirror Bull Colorcolorcolor.new(color.aqua, 20)bullColor
Mirror Bear Colorcolorcolor.new(color.fuchsia, 20)bearColor
Optimal Line Colorcolorcolor.orangebasisColor
Original Price Event Linecolorcolor.blueoriginalLineColor
Show all 15 settings
SettingTypeDefaultVariable
Mirrored Price Event Linecolorcolor.fuchsiamirrorLineColor
Connector Colorcolorcolor.whiteconnectorColor
Prediction Line Colorcolorcolor.limeattractionColor
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

Candlestick Patterns

by harryguiacorn
220 stars

This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use

Indicator v5 Candlestick patternsVolatility & bands
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns

Signal Quality Engine [WavesUnchained] is a range-fade indicator that identifies exhaustion at range extremes and signals potential reversals. It applies an ADX and EMA slope regime gate to stand down during strong trends. Using distance, structure, and moment

Indicator v6 Mean reversionSupport & resistance
Updated 3 days ago · MIT GitHub repository of Signal Quality Engine [WavesUnchained]

Candle Filters

by Web3Degenerate
2 stars

Candle Filters is an overlay indicator that marks bullish and bearish engulfing candles on the price chart. A bullish signal requires a prior down candle whose body is engulfed by the current candle near a swing low, while a bearish signal does the reverse nea

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Candle Filters

Despite the name, an indicator that combines many studies on the price chart: RSI overbought and oversold signals, MACD, Bollinger Bands, ATR, Stochastic, ADX trend strength, VWAP with bands, pivot-based support and resistance levels, simple candlestick patter

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Advanced Multi-Indicator Strategy
1 stars

This indicator overlays rolling cost anchors, volatility-derived GetDelta bands, and liquidity provider ranges onto the price chart alongside pinbar candlestick detection. It calculates market valuation zones, shading discount and premium areas while tracking

Indicator v6 Candlestick patternsVolatility & bands
Updated 2 days ago · AGPL-3.0 GitHub repository of BL-ESW Pinbar Market Lab Pro

More Candlestick patterns scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers