Strategy · Pine Script v6 · On the chart

Qullamaggie MA Breakout L+S

by kanylbullen

A long and short strategy based on five moving averages of 10, 20, 50, 100 and 200 bars.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code744
Settings40inputs
LicenceNone stated
Last update7 days ago22 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 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

Qullamaggie MA Breakout L+S can require the averages to be in perfect order with aligned slopes, filter entries by ADX range, and optionally by RSI and a higher timeframe moving average. A strict daily mode and a loose intraday mode are offered, along with start and end date limits, entry and exit markers and a statistics table. The visible code shows no fixed stop loss.

Details

Published by

kanylbullen on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Moving averages, Breakout, Trend

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Settings

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

SettingTypeDefaultVariable
ModestringLoose (Intraday)preset
Show Entry/Exit MarkersbooltrueshowDebug
Show Performance Stats TablebooltrueshowStats
Use Start DatebooltrueuseStartDate
Start Yearint2018startYear
Start Monthint1startMonth
Start Dayint1startDay
Use End DateboolfalseuseEndDate
End Yearint2025endYear
End Monthint12endMonth
End Dayint31endDay
1st MA (Fastest)int10len10
Show all 40 settings
SettingTypeDefaultVariable
2nd MAint20len20
3rd MAint50len50
4th MAint100len100
5th MA (Slowest)int200len200
Require Perfect Order (Long: 1>2>3>4>5 / Short: Reverse)booltrueusePerfectOrder
Require All MA Slopes Aligned (Long=Up, Short=Down)booltruerequireSlope
Use ADX FilterbooltrueuseADX
ADX Lengthint14adxLen
Min ADX for Longfloat20.0adxMinLong
Min ADX for Short (Stricter)float25.0adxMinShort
Max ADX (Exclude Overheated)float50.0adxMaxEntry
Use RSI FilterboolfalseuseRSI
RSI Lengthint14rsiLen
Exclude Long Above RSI (Overbought)float70.0rsiOBLevel
Exclude Short Below RSI (Oversold)float30.0rsiOSLevel
Use HTF Trend FilterboolfalseuseHtfTrend
HTF TimeframetimeframeDhtfTf
HTF MA Lengthint200htfMaLen
Use Box/Contraction FilterboolfalseuseBaseFilter
Box Length (Bars)int10baseLen
ATR Lengthint14baseAtrLen
Box Height <= ATR xfloat2.0baseAtrMult
Box Must Hold Above 3rd MA (Long)boolfalsemustHoldAbove50
Confirm Breakout on ClosebooltrueuseBreakoutClose
Allow Pullback EntrybooltrueusePullbackEntry
Pullback Reference Linestring2nd MApullbackMA
Recent Breakout Lookback (Bars)int20pullbackLookback
Require Bounce Candle (Close > Open)booltruerequireBounce
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

257 stars

This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos

Strategy v6 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Best Chart 1m Strategy Candle Bar

12/26-IT Strategy

by hasnocool
106 stars

This strategy executes trades based on crossovers between a 12-period and a 26-period exponential moving average (EMA). Long positions can be filtered by pivot resistance breakouts and RSI boundary ranges. For trade management, it provides two configurable par

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 12/26-IT Strategy

均线突破交易系统

by tangly1024
76 stars

This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 均线突破交易系统
43 stars

This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOL 1m - Strategy Candle Bar

ADA4H Optuna Strategy

by skywalker0803r
42 stars

This strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of ADA4H Optuna Strategy
16 stars

This strategy plots Donchian channels, trailing stops, and profit targets directly on the price chart. It enters breakout trades using a 55-bar Donchian channel and sizes positions according to an ATR-based risk percentage per unit. The system adds units as pr

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 10: Profit Targets

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