Im a newbie to Ninjatrader (have used other platforms before this) for strategy analysis.
Please bear with me if I am asking a silly question

I would like to test a strategy along the lines of the following and am having a hard time getting NT to understand what I am trying to say.
Requirement:
Create a simple MA crossover strategy, lets start with a 128 tick chart on /NQ.
When the 21MA cross the 55MA AND the closing price of the candle is above the 200 MA and 21MA, only then enter a long trade.
Use a 50 tick stop loss and leave the take profit to whenever the MA crossover happens (i.e. when the 55MA crosses below the 21MA).
I tried using strategy builder to build this strategy that resulted in the following code.
Problem1: I cant figure out how to set the take profit for this trade to whenever the crossover happens in strategy builder
Problem2: When executing this code against todays data 07/27/2023, the strategy is executed correctly on the first crossover of the MA's but the take profit order is not filled and therefore the order just sits there till the close of the session.
Can someone suggest if Strategy Analyzer / Builder are capable of this kind of logic? If yes what am I missing

Feel free to point me to a RTFM resource as well.
Thank you for reading thus far!
Link to code (as I couldnt paste the code in within the code tags): https://pastebin.com/GZ4xbFCt

Comment