1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Mode
string
Loose (Intraday)
preset
Show Entry/Exit Markers
bool
true
showDebug
Show Performance Stats Table
bool
true
showStats
Use Start Date
bool
true
useStartDate
Start Year
int
2018
startYear
Start Month
int
1
startMonth
Start Day
int
1
startDay
Use End Date
bool
false
useEndDate
End Year
int
2025
endYear
End Month
int
12
endMonth
End Day
int
31
endDay
1st MA (Fastest)
int
10
len10
Show all 40 settings
Setting
Type
Default
Variable
2nd MA
int
20
len20
3rd MA
int
50
len50
4th MA
int
100
len100
5th MA (Slowest)
int
200
len200
Require Perfect Order (Long: 1>2>3>4>5 / Short: Reverse)
bool
true
usePerfectOrder
Require All MA Slopes Aligned (Long=Up, Short=Down)
bool
true
requireSlope
Use ADX Filter
bool
true
useADX
ADX Length
int
14
adxLen
Min ADX for Long
float
20.0
adxMinLong
Min ADX for Short (Stricter)
float
25.0
adxMinShort
Max ADX (Exclude Overheated)
float
50.0
adxMaxEntry
Use RSI Filter
bool
false
useRSI
RSI Length
int
14
rsiLen
Exclude Long Above RSI (Overbought)
float
70.0
rsiOBLevel
Exclude Short Below RSI (Oversold)
float
30.0
rsiOSLevel
Use HTF Trend Filter
bool
false
useHtfTrend
HTF Timeframe
timeframe
D
htfTf
HTF MA Length
int
200
htfMaLen
Use Box/Contraction Filter
bool
false
useBaseFilter
Box Length (Bars)
int
10
baseLen
ATR Length
int
14
baseAtrLen
Box Height <= ATR x
float
2.0
baseAtrMult
Box Must Hold Above 3rd MA (Long)
bool
false
mustHoldAbove50
Confirm Breakout on Close
bool
true
useBreakoutClose
Allow Pullback Entry
bool
true
usePullbackEntry
Pullback Reference Line
string
2nd MA
pullbackMA
Recent Breakout Lookback (Bars)
int
20
pullbackLookback
Require Bounce Candle (Close > Open)
bool
true
requireBounce
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.
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
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
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
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-
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
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