I am trying to automate a very simple strategy with NinjaTrader 8 strategy builder. The idea is the following: I want to use one (and only one) moving average; and I want a long position to be open every time the price goes above this moving average, and to be closed when price crosses below this moving average. Similarly, I want a short position to be open when the price goes below this SMA, and to be closed when price crosses above the SMA. This strategy is very simple but I am struggling to implement one specific parameter: I want the positions to be open at the exact moment when price crosses the SMA, and not after the candle close, the low, the high or anything else. This is very important.
So for instance for the short position, this is how I have set my condition :
I assume that if I want to short when the price crosses below the SMA I have to select : "if SMA crosses above bid", as I have done, right?
But after that, below the price section on the picture, where I have put a "2", I still have to enter the parameters of the bid isn't it? Where it is written "Misc. Series 1". And when I open this section, I have the following choices (screenshot below), so it seems to me that I cannot simply choose "bid". What did I get wrong, and how could I implement my strategy, please? Am I right to select "bid" if I want the bot to short at the exact moment when the price crosses below the SMA? Should I do otherwise?
Thank you very much for your help,
Best regards,
Patrick.
Comment