NinjaCoding @ NinjaTrader
الذهاب إلى القناة على Telegram
922
المشتركون
لا توجد بيانات24 ساعات
-27 أيام
-1230 أيام
أرشيف المشاركات
Another cool ıdea would be to add a volume fılter to re-validate the level establishment! Once you have the template coded you can experiment with all sorts of additional rules that can benefit (or not) your strategy!
One of the biggest challenges when automating this is actually proper level management. So let's imagine we want to set our level when the DI+ spikes into some sort of threshold that we set. Now first problem here will be that the level will always jump up and down all the time. That is a problem so we can say ok, let's replace the level only if the new one is higher. That is also a problem because at some point you will get a level that will stay there forever. So my solution is to always allow to replace the level if the new one is higher (I am speaking of levels up now) and only allow the levels to be replaced with a lower value ones if the level has stayed X amount of bars set by the user. On the pic above we can see the level purple when it is allowed to be moved down if another spike of DI+ occurs.
Guess the next step is to try and make a strategy out of this where each new level is our profit exit and our stop is our previous level.
Many people go round and about the big question of how do we figure out levels algorithmically!!! One of the possible ways is to use DI+ DI- indicator and plot them when they give a thrust! This can look like this!
Main takeaways about the strategy itself is definitely the extendable entry module and filter module as usual but mostly its the SMART trail that will only trail if the stochastic is in the right position. The code construction here can be easily adapted to any other indicator like the CCI for example.
Nothing changed much with this strategy today, I just refactored the code to the newest template that I use. One year ago when I wrote this I thought I had the perfect layout but it has now changed slightly so I thought time came to refresh it.
Smart trail option enabled!! Trail only works whilst in oversold zone for short here! Once the strategy gets out of oversold the trail stops.
This one is from the updated NC Trend Control strategy that I am putting out today with complete code refactored and reviewed.
You can look at fire burning, water running and beautiful trade setups for ever.)))
