Indicator · Pine Script v6 · On the chart

USE Optimizer Export

by xopromo

An indicator on the price chart exported from an optimiser, with a long list of switchable entry patterns, all off by default in the visible settings.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code334
Settings40inputs
LicenceNone stated
Last updateyesterday28 Oct 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

Options include pivot points, engulfing and pin bar candles, Bollinger, Donchian and ATR channel breakouts, moving average touches, a Bollinger and Keltner squeeze, trend line touches or breaks, flags and triangles. Each has its own length or threshold inputs. Labels are in Russian, and the header contains optimiser result figures that are not repeated here.

Details

Published by

xopromo 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
Pivot Pointsboolfalseuse_pivot
Pivot — баров слеваint5pivot_left
Pivot — баров справаint2pivot_right
Engulfingboolfalseuse_engulf
Pin Barboolfalseuse_pinbar
Pin Bar тень/телоfloat2.0pin_ratio
Пробой Боллинджераboolfalseuse_boll
Боллинджер периодint5boll_len
Боллинджер σfloat1.5boll_mult
Пробой Дончианаboolfalseuse_donch
Дончиан периодint5donch_len
Пробой ATR-каналаboolfalseuse_atr_bo
Show all 40 settings
SettingTypeDefaultVariable
ATR-канал EMAint5atr_bo_len
ATR-канал множительfloat2.0atr_bo_mult
Касание MAboolfalseuse_ma_touch
Тип MA касанияstringWMAmat_type
Период MA касанияint20mat_len
Зона %float0.2mat_zone_pct
Squeeze (BB+Keltner)boolfalseuse_squeeze
Squeeze BB периодint20sqz_bb_len
KC множительfloat1.5sqz_kc_mult
Мин баров в сжатииint1sqz_min_bars
Касание TL (линия)boolfalseuse_tl_touch
Пробой TL (линия)boolfalseuse_tl_break
Флагboolfalseuse_flag
Треугольникboolfalseuse_tri
TL Pivot Leftint5tl_pv_l
TL Pivot Rightint3tl_pv_r
TL Зона ±%float0.3tl_zone_pct
Флаг Импульс ×ATRfloat2.0flag_imp_atr
Флаг Макс баровint20flag_max_b
Флаг Откатfloat0.618flag_ret
RSI выход из зоныboolfalseuse_rsi_exit
RSI периодint14rsi_exit_per
RSI OS уровеньint30rsi_exit_os
RSI OB уровеньint70rsi_exit_ob
МА кросс-оверboolfalseuse_ma_cross
МА типstringEMAma_cross_type
МА периодint20ma_cross_p
Supertrend смена трендаboolfalseuse_supertrend
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

Raschke Patterns

by TradersPost
228 stars

This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c

Indicator v6 Candlestick patternsBreakout Repaints
Updated 3 months ago · None stated GitHub repository of Raschke Patterns

Five-in-one Strategy

by capissimo
114 stars

Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Five-in-one Strategy

Zen Z Bars V1

by Zen-Tim
29 stars

Zen Z Bars V1 analyzes bar-by-bar price action, candle range expansion, and internal bar strength (IBS). It identifies breakouts, inside and outside bars, climax candles based on range expansion factors, and tiered range multiple bars. The indicator draws brea

Indicator v5 Candlestick patternsBreakout
Updated 2 weeks ago · MIT GitHub repository of Zen Z Bars V1

Body Mass Indicator

by harryguiacorn
220 stars

The Body Mass Indicator highlights candles with exceptionally large body ranges relative to recent price movement. It calculates the absolute distance between open and close prices. When enabled, it identifies bars where the body range achieves a new high over

Indicator v5 Volatility & bandsCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Body Mass Indicator

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

More Breakout 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