Forex Daily Trading - NNFX Style

Here is my implementation of the No Nonsense Forex way of trading.

I've tried to apply most of VP's rules to the best of my coding abilities. As of now, with default settings, the strategy does not perform exceptionally well - however I'm pretty confident there is a combination of settings that will make it profitable across all pairs, and maybe even commodities .

If anyone can find some good performing settings for this strategy please let me know and I'll provide the full logic and all indicators within the strategy. Also, if you have any suggestions of any indicators you feel could improve this strategy let me know and I'll update.

If anything doesn't make sense/doesn't work, or if you just need some more information please just let me know. Enjoy!
Информация о релизе: Updated to fix bug in code regarding trade exits. Also changed default settings - will continue to update with new and improved default settings as time goes on.
Информация о релизе: Updated for better default settings.
Информация о релизе: Updated to fix trade quantity issue.
Информация о релизе: Updated to improve default settings.
Информация о релизе: Updated to replace 'Confirmation 1' Indicator - also improved default settings.
Информация о релизе: Updated to add optional 'ATR Upper/Lower Deviation' to filter out trades in time of too high/low volatility.
Информация о релизе: Updated to fix bug when using strategy on lower time frames.
Информация о релизе: Updated to make compounding gains optional.
Информация о релизе: Updated to try fix plotting issues.
Информация о релизе: Updated to add new features such as leverage. Changed default settings to improve performance.
Информация о релизе: Updated to add optional 'Alter Trade Size During Bad Run' feature. Calculated using either Loss Percentage or Net Profit, allows the user to either decrease or increase trade size while fulfilling user set 'Bad Run' criteria. Also cleaned up code.
Информация о релизе: Updated to fix bugs and simplify code. Optional filtering of trades during bad run of trades. Also improved plotting.
Информация о релизе: Updated to add spread and commission options, as well as other minor improvements.
Информация о релизе: Updated to simplify trade management options in UI.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом, вы можете свободно им пользоваться. Вы можете добавить его в избранное и использовать на графике. Вы не можете просматривать или менять его исходный код.
Хотите использовать этот скрипт на графике?


Hey there,

I think this is the most profound code I'have seen so far. I managed to get some good results on crypto trading, but I lack some of the features of your code. Would you mind provide it to me, so I could tweak some settings and add some indicators that I use in crypto? Cheers.
I'm having the same issues as BlockchainSpecialists. The ATR, volatility, and C1/C2 cause the chart to go flat and zoomed out
@JBurk4417, Hi, I believe the newest update I've just released should fix this issue. Please try and let me know!
I don't know why it does this, but when first applying the strategy to a chart, the user will just get a flatline across the chart. Making the chart unreadable. Maybe something you want to look at as a heads up
@trevkillax, Hi thanks for the heads up. Could you let me know what chart this happens on? Including time frame. I'll see what I can do! Thanks.
trevkillax BlockchainSpecialists
@BlockchainSpecialists, It was on the all timeframes. The problem occurs when ATR, Baseline, c1, c2, or volatility are check-marked under "style". If you change default to make these unchecked at start up, should appear as intended every time
trevkillax trevkillax
@trevkillax, My bad, baseline is fine. But the other pieces do cause the problem
@trevkillax, Thanks for giving some details. I've updated the script and believe I've fixed the plotting issue; well it seems to work on my charts anyway! Please let me know if the issue is fixed.
Imradls trevkillax
@trevkillax, Hi there, I think if you right-click on the scale and scale price only this may fix your issue.
@Imradls, A simple yet working solution. Thanks for this!