- EnterLong() to get into orders.
- OnOrderUpdate() to set the orders to my own variables for reference.
- ExitLongLimit() and ExitLongStopMarket() for the target and stop loss on the OnExecutionUpdate() Method.
This all works great, until after it runs through about 7 orders, then it stops triggering on the Target and Stops, and just closes at the end of the session.
I'm attaching my script (it's very simple), hoping that someone can look at it and find what might be obviously missing as I'm well versed in C#, but very new on the NinjaScript side.
I've chosen to use the "ExitLong" methods vs. the "Set" methods as I want to eventually add in some more complicated trailing stop logic with one order's profit target, altering the other's stop. However, none of that code is in there yet.
I also created a short video showing what I see on my chart after I run the strategy script on it which will show what I mean by "stops triggering":
https://www.loom.com/share/202bc989b...528ab54281e64b
Thank you!
Comment