Strategy NNFX Tester

This is a Strategy Tester designed to work with Study (Alerts) of the same.
At time of creation based on Revision 8 of the Study.

DO NOT USE the Currency/Money Management section under settings. use the position sizing under "Inputs" - "Money Management" - "Risk per trade" which is defaulted to 2%
This has adjustable Baselines, Exits, ATR calculations, C1 and C2 are currently QQE & QQE Histo with adjustable settings but I'll include more choice of C1 & C2 as time goes on.
Find settings that work for you, then move them over to the Study version for best results.
Forward plans are to add much more options to both Alert/Strategy.
If anyone wants to collaborate or anything hit me up.
Will make more switchable over time
Created structure to add more C1 and C2 indicators
Changed TP/TSL exit position comments to reflect what the Exit Trade Reason was
Some small bug fixes in Strategy Positions and Counters.
Added Continuation trades logic.
*** PLEASE message me if you have any extra C1 & C2 indicators you want added ***
All future updates will be rolled back across to the Alert Version for Daily Trading.
Super Trend & Absolute Strength Historian
*** Please contact me with other C1 & C2 Indicators to add to Strategy ***
Planned to update Alert Study to match Strategy End April 2021
Tidied code, organised menus, changed some defaults.
Added "Inspirational" quote to end of code ;)
added C1 Squeeze Momentum Indicator
added C2 Kuskus Starlight
added C2 FX Sniper Ergodic
Added calculations for extra pairs, so backtest now works correctly for all the following in any combination;
USD, CAD, CHF, EUR, JPY, SGD, HKD, CNH, SEK, NOK, DKK, PLN & ZAR.
This prevents entering a Long at the end of a Red Candle, and a short at the end of a green candle.
Prevents entry on the end of a pullback however, so backtest it's use with your Algo
Trailing stop, fixed stops or Fixed/Trailing.
Fixed trailing starts as Fixed Stops, once TP1 hits, SL for remaining half of the trade moves to a trailing stop!
New function - Currency Strength Filter
Currencies pairs ranked by strength from 0 to 10
Filter selectable for both initial trade and continuation trades separately.
Currently working for AUD, CAD, CHF, EUR, GPB, JPY, NZD & USD.
For currencies not yet covered, trades will not be filtered and will continue as normal.
Currencies covered are - EUR, USD, JPY, CHF, GBP, AUD, CAD, NZD, SGD, HKD, PLN, ZAR
Other currencies remain unfiltered
Bug fix in Currency Strength
Above upper band High Profit, between upper band and MA average Profit, between Ma and low band Low Profit, and below lower band Critical profit.
Increase or reduce position sizes based on current profit to dynamically increase/reduce risk based on recent results.
Also set Win/Loss ratio based on last 30 bars, for the High Profit Risk Value to be applied. This allows you to take advantage of a win streak/turn in performance of Algo, and to potentially get Profit above MA again when operating in reduced risk zone.
Also a warning MA on Profit, defaulted to 200 period. Prints warning on right hand side "Profit Above/Below MA, Do/Do Not trade"
Research suggests the profit of a strategy dropping below 200ma on the profit/equity curve may be a good point to move to paper trade only on instrument until performance goes back above.
Warning to reduce risk when profit is under either the long or short MA, Warning to Stop Trading when Profit is under both MA's.
Changed to all non ranked currencies (maximum securities in 1 script reached) get a score of 10 now, all others get ranked and you can filter weakest pairs.
Broken trade only after candle with momentum in direction of trade into two parts, innitial trade and continuation.
This allows entry on a pullback, but once an a trade is entered and closed, continuation signal can be prevented unless preceded by a candle in the direction of continuation. Avoids entering continuation in a falling price environment even if trend indicators still show a go signal.
Added short tags to be displayed above detailing "Safe Trade", "Caution" and "DO NOT TRADE" based on whether the strategy has been profitable recently on this pair.
Only displays when overlay hidden.
Adjust the Profit warning MA's to adjust profit warning sensitivity.
Caution is where Profit is above one MA but not the other, so climbing/falling.
Reference top be made to profit graph to verify before trading.
Changed colours of text to match colours of Alert Study.
Blue Long Entry, Red Short Entry, Yellow Exit and Grey for no action.
Added option to select C1 or C2 instead of SSL for exits
Replaced Dynamic Risk with Kelly Ratio Position sizing
Added ability to Remove Baseline, Remove Exit Indicator, use only a single position rather than have a second run on position, removed Currency strength filter as it was slowing code.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.