I have read many threads about the need to interact with NinjaScript strategy generated entry orders from the DOM. I thought the concensus opinion is you can't do it without the strategy simply putting the order back as soon as it hit a new bar and the order was generated again.
What I found is that you get an OnOrderUpdate event if you move the order. I just saved the original price, compared it to the new price and if they are different, I set a flag that says to use the new price.
This lets me adjust the entry price for conditions that are too complicated to put in the strategy (i.e. even if the strategy says go long, don't go long 2 ticks from a downward sloping 2 hr EMA).
I don't know if I was the only who didn't know this or if anyone will find it useful but I thought I would pass it along.
Scott
Comment