When Entry A closes at 60, then Entry B Stop loss is then moved to 40.
Currently, this is what I have:
As far as I can tell, that should set the initial stop prices for both orders and create the profit target for Entry A.
What I need now is to figure out how to determine if Entry A has closed at the profit target and then tell NinjaTrader to move the Entry B stop to its next price.
I can not figure out how to tell NinjaTrader to check if Entry A has closed at Profit Target
I can not figure out how to tell NinjaTrader to move the Stop Loss for Entry B
Finally, when that happens, the stop loss will need to do one more thing. When an indicator, let's assume SMA, is above the Entry B Stop price, I want the stop order to trail the SMA. I would assume that I would do something like this:
if (SMA > StopPrice + ???)
I would like this to update at every bar.
I assume that I would need to create a variable for "StopPrice".
Naturally, I would like the stop loss to only go up. How do I insure that it does not re-set the stop price to a lower price if the SMA starts going down?
I know that this is a lot in a single post - sorry for that. I just assumed it might be easiest to get all of my questions out at the same time.
I appreciate the help that anyone is able to give.