Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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 : https://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.