I have a very simple MACD based strategy that I would like to code for automation. I have hired a Ninja Script Consultant to write the code and so far he has been unable to get it to work properly. This is surprising and very frustrating to both of us considering how simple a strategy it is. Instead of giving you the specifics of what is going wrong, I would like to ask you a more general question: do you think that the following strategy is something that can be coded correctly for Ninja Trader or not...
Trading Strategy For The S&P E-Mini:
- Entry is based on a crossover/under of the MACD on a standard candle chart, either Long or Short. Crossover/under (entry signal) must be confirmed by the close of the bar that the crossover occurs on. Then, entry is immediate at the open of the next bar as a Market Order.
- Strategy must ignore any subsequent MACD crossovers until an active trade is complete (one trade at a time..).
- A Stop Limit Order is set at 3 points and the Profit Target (Limit Order) is set at 2 points. Stops and Profit Targets must be entered simultaneously along with the execution (entry) of the trade and be on an OCO basis.
- Start and end times are at the open and close of the Day Session. Maximum losses for the day is 2 trades and maxium total trades for the day is 6.
That's it. It's really very very simple and we can't seem to make it work. Do you see any reason why this cannot be coded?
Thanks,
Brian
Comment