OPEN-SOURCE SCRIPT

NNFX, Baseline, QQEs Fast C1, Slow C2, ATR, Volume and Exit

Updated
Designed Around the NNFX rules

Selectible Baseine

Selectible Exit Indicators

ATR bands, ATR labels for TP and TSL (1x and 1.5x ATR).

Indication (White Diamond) where candle is over 1x ATR in size.

Combined QQE Fast & Slow (C1 & C2) confirmations, Candles Grey before Trend Confirmed, change to Normal Colour when Trend established (QQE MOD used for calcualtions).

Continuations signaled by white dot above/below candle (0.9x ATR from Close Signal).

Exit Long and Exit Short signaled by Red and Blue Arrow under/above candle.

Release Notes
Spelling mistake
Release Notes
Moved ATR values location to next to Baseline rather than Lower ATR Band.

Exit indicators (Red/Blue Arrows) only trigger on correct side of Baseline.
Release Notes
Added Entry Indicators based on Baseline Cross, C1 & C2 confirming, Sufficient Volume and ATR Rule (Default 1.5x ATR but selectable as first option on inputs).

Entry indicator shows as Blue Arrow under Long Candle and ontop of Short Candle in direction of trade.

Exit indicators now RED regardless of direction. Shows as Arrow Above or Below candle.

Also shows on Entry on Continuation trades where value is still within ATR Rule.
Release Notes
Added an inhibit on Entry Repeating for 3 candles from close.
Release Notes
Added Inputs to select TP & SL/TSL ATR multipliers

Added Price for TP/SL/TSL next to ATR values for ease of making orders.
Release Notes
Usability improvements;

1. Grouped user tuneable inputs - All now in sections for clear setup

2. Default text offset to 15 - TP/SL ATR values moved to right from chart

3. Added Code Section Collapse. Hide/Unhide next to line numbers.

4. Added better description of how to interpret, added this into code header but also added bellow.



// Using NNFX Principles
//
// Above/Below Baseline represents Long/Short area
// C1 (QQE) & C2 (QQE Historian) combine to show areas of trend
// Grey Candles are areas when trend not established
// Low Volume shows as Red Background
// ATR Bands for Visual Indication Only
// ATR based TP and SL/TSL prices/values to assist Risk Managed position sizing
// Tunable Exit Indicators
// Restrict Entry based on how far price has moved from Baseline (Default 1.5x ATR, Tunable)
// Tunable Continuation Criteria (SSL & ATR Based)
//
// Entry Indicated by a Blue Arrow Above/Below Candle in Direction of Price Movement
// Exit Indicated by a Red Arrow Above/Below Candle in Direction of Price Movement
//
//
// Coders/Modifiers, Code Sections made collapsable. Hide/Unhide indicatior by line number
//

Release Notes
Revision 8 loses the separate multiplier for ATR Bands

ATR bands are now set via your TP & SL/TSL ATR multipliers (Default 1xATR & 1.5xATR).

TP Band displays in Blue, and SL/TSL band is in Red.

Release Notes
ATR/Stop Position Text now changes colour when you have a valid entry.

Blue for Long Entry, Red for Short Entry.
Release Notes
Added Ability to turn off Confirmation Indicators & Volume
Release Notes
Large Update to match Revision 10 of NNFX Strategy Tester.

Added LOTS of C1 & C2 indicators, "1 Candle" and "A Bridge" too far rules.

Tidied up code and menus.

ATR Values Test turns Blue for a Long Entry, and Red for a Short Entry to make identifying entries a very quick process.

Alerts simplified simply to Long Entry, Short Entry, Long Exit and Short Exit.

Roadmap for new indicators to be added including WAE and a few others.

Please use my Strategy Version to test your Algo.
Release Notes
Added EVZ Entry restriction & EVZ printed value under ATR Details
Release Notes
Updated to match Strategy.

New C1 & C2 indictors, new Volume Indicators.

Bug fixes.
Release Notes
Updated to match Version 30 of Strategy Tester.

Main differences are;

1. Currency Strength Filter
2. Added Extra C1 & C2 indicators
3. Added extra options to differentiate initial and continuations
4. Changed Text Colour for entry - Blue Long Entry, Red Short Entry, Grey no action, Yellow Exit Position

If you are backtesting Version 30 of the Strategy Tester you need this to use your Algo
algotradingMoving AveragesnnfxnononsensefxVolatilityVolume

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer