So I've had yet another bright idea for my new strategy that I'd love to test out.
In the process of researching exactly how to implement my new idea... I've learned a TON of new cool stuff about NinjaScript (thanks to all you forum participants who have helped me so far!).
So I've hit a bit of a snag... here's what's happening:
I'm in a trade... things are tooling along nicely, when suddenly... price moves against my position by 3 ticks... but... these are not consecutive closes... price has taken its time to move these three ticks... one tick down... one tick back up... then two ticks down... then one back up... then another back up... then two back down... and finally... that third tick...
I would like to exit the trade when this tick happens... but I can't figure out how to make the NBarsDown function work for me in this scenario... (maybe because it's not designed to... not sure).
Is there a method in NinjaScript (available from the wizard... hehehe... ) which will allow me to do this? Maybe using variables? Something is swimming around the back of my mind regarding the use of variables for this but it's just a fuzzy picture at the moment...
Just a wee nudge in the right direction would be fantastic!
Thanks again to you all.
-V




Comment