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)
I am running into a issue with a strategy that is not firing a market order when I want it to. The code scales out of a position based on a signal ("sorry not going to say what it is") multiple times as the trend develops. The same code fires for each trade except sometimes it just does not fire.
(See attached image)
The system goes short 10 CL ##-## (market replay) and scales out a total of 5 contracts in 3 trades just as I wanted it too. However, the fourth trade to scale out 2 more contracts it does not fire. The bars are painted to show when it should be firing and the text Fire 2 is right next to the exitShort logic to show me that the code is running properly.
Here is the code that has the ExitShort syntax.
if you look at the chart again, you will also see that all my IOrder objects are properly set to null except for the stop, which is expected.
I can't see any logical reason why Ninjatrader is skipping exit logic, so I need your help to see if someone has ran into this before.
FYI, this is using the Managed approach IOrder with on execution.
Cheers,
Sody
"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Can you help answer these questions from other members on NexusFi?
"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."