After a couple of years i decided to set up a strategy in ninja 7. But i have no expierence in programming and i use the startegy templates, incorporated in the platform. As a start i make it simple, a crossover of two ma's or a crossover in a indicator as macd together with a trailing stop and a target.
After experimenting i found how to do it....
BUT if markets are going a little bit faster i have in a second a few contracts more, what absolutely not the intention is, i have a warning with pop-up off overfill, i get a long and a short contarct at the same time........
Just dont think about it for making profits, even in a sim account.
I dont know how to program and this is the only way for me to try to make something
and i dd a simple bactest : http://screencast.com/t/tOdFDhKGEbcT
So main problem is how to avoid al these problems of overfill, supplement of contracts and having 2 opposite orders in the SuperDome at the same time?
As kojava says, if you're able to edit the strategy file (Tools > Edit NinjaScript > Strategy then select your custom strategy) you may find the command in the Initialize section.
Otherwise if your strategy is associated with a chart, say, (or otherwise activated) left-click on the Strategies tab in NinjaTrader, then right-click on the strategy and select "Edit Strategy" in the popup window.
You should see something like the pic below. If set to False, set it to True, click OK and try running the strategy again.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
The following user says Thank You to bnichols for this post: