Strategy ยท Pine Script v6 ยท On the chart

EZ Algo Debug Hedge

by turnupdigital

A strategy that combines up to five external buy and sell signal sources, each with its own name and usage mode, and manages positions with ATR-based exits and an optional moving average exit.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code817
Settings40inputs
LicenceNone stated
Last update1 year ago12 Aug 2025

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

A switch chooses between faster intrabar exits and safer exits that wait for the bar close. An optional debug mode prints diagnostic labels on the price chart. Position size is a fixed contract count, and the strategy draws on the price chart.

Details

Published by

turnupdigital 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
๐Ÿ” Enable Debug LabelsboolfalsedebugEnabled
โšก Enable Intrabar ExitsbooltrueenableIntrabarExits
Number of Contractsint1positionQty
๐Ÿ“Š Signal 1booltruesignal1Enable
Longsourceclosesignal1LongSrc
Shortsourceclosesignal1ShortSrc
NamestringLuxAlgosignal1Name
UsagestringEntry Allsignal1Usage
๐Ÿ“Š Signal 2boolfalsesignal2Enable
Longsourceclosesignal2LongSrc
Shortsourceclosesignal2ShortSrc
NamestringUTBotsignal2Name
Show all 40 settings
SettingTypeDefaultVariable
UsagestringEntry Allsignal2Usage
๐Ÿ“Š Signal 3boolfalsesignal3Enable
Longsourceclosesignal3LongSrc
Shortsourceclosesignal3ShortSrc
NamestringVIDYAsignal3Name
UsagestringEntry Allsignal3Usage
๐Ÿ“Š Signal 4boolfalsesignal4Enable
Longsourceclosesignal4LongSrc
Shortsourceclosesignal4ShortSrc
NamestringKyleAlgosignal4Name
UsagestringEntry Allsignal4Usage
๐Ÿ“Š Signal 5boolfalsesignal5Enable
Longsourceclosesignal5LongSrc
Shortsourceclosesignal5ShortSrc
NamestringWondersignal5Name
UsagestringEntry Allsignal5Usage
ATR Lengthint14atrLen
Enable MA ExitbooltruemaExitOn
MA Lengthint21maLen
MA TypestringEMAmaType
Enable Fixed SL/TPboolfalsefixedEnable
UnitstringATRfixedUnit
Stop Sizefloat1.0fixedStop
TP1boolfalsetp1Enable
tp1Sizefloat1.5tp1Size
TP2boolfalsetp2Enable
tp2Sizefloat3.0tp2Size
TP3boolfalsetp3Enable
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

330 stars

Alert BB + RSI [Alorse] is a multi-symbol mean-reversion strategy designed for cryptocurrency trading. It evaluates Bollinger Bands and the Relative Strength Index (RSI) across up to 20 user-defined ticker symbols simultaneously. The strategy enters long posit

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 months ago ยท None stated GitHub repository of Alert BB + RSI [Alorse]

This overlay strategy offers two selectable entry modes: a Bollinger squeeze on typical price and a simple moving-average cross. It filters trades by weekday, session, date range, and an optional news window, and can restrict direction or invert the side. Risk

Strategy v5 Volatility & bandsMoving averages
Updated 2 days ago ยท None stated GitHub repository of Boilerplate Configurable Strategy [Yosiet]
257 stars

This overlay strategy targets one-minute ES futures and plots volume-weighted moving-average bands from the open, scaled by a standard-deviation multiple, plus a slower band from ten-minute opens. A higher-timeframe exponential moving average can filter trades

Strategy v6 Moving averagesVolatility & bands
Updated 7 weeks ago ยท None stated GitHub repository of ES - Futures 1M No Repaint
228 stars

This strategy detects price breakouts above rolling highest highs or below lowest lows over a customizable lookback period. It includes optional volume spike and ATR volatility threshold filters, along with bar confirmation rules. Positions are taken upon conf

Strategy v6 BreakoutVolatility & bands
Updated 3 months ago ยท None stated GitHub repository of Breakout Strategy Template

STRG-BBForce

by harryguiacorn
220 stars

STRG-BBForce is a Bollinger Bands trend-following strategy. It calculates standard Bollinger Bands and tracks directional alignment across the upper, lower, and basis lines. When all three lines slope upward, it opens a long position and closes short positions

Strategy v5 TrendVolatility & bands
Updated 1 year ago ยท None stated GitHub repository of STRG-BBForce

Bollinger Breakout

by hackingthemarkets
189 stars

This price-chart strategy plots a simple moving average and upper and lower bands built from the standard deviation of close, scaled by separate offset inputs. It enters a fixed quantity long when close crosses above the upper band and a fixed quantity short w

Strategy v4 Volatility & bandsBreakout
Updated 3 years ago ยท None stated GitHub repository of Bollinger Breakout

More Volatility & bands 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