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 have been having the issue where a limit order (target) will be filled at my broker and the strategy does not recognize that this is the case. So it remains long, lets say, while really we're flat and it should be looking for a new entry...
I was wondering if anyone uses "MarketPosition_at_Broker" to check that their actual position and their strategy positions line up? Does anyone have any code or know how this could be used to resolve this sort of issue? Perhaps some sort of comparison using "CurrentContracts" and "MarketPosition_at_Broker"?
Thanks in advance.
Todd
Can you help answer these questions from other members on NexusFi?
Sounds like you are way, way beyond me in NT7 C# programming, but have you considered using Market Analyzer for what you are trying to do? Granted it won't check against your strategy, but it will give you an accurate position count(using column PositionSize set for your broker) and other values you may want to check during strategy execution if you'd like.
Hi bd92154,
Thanks for the response however I am working in Multicharts. I should have been more clear. Is market analyzer a ninjatrader tool- I'm assuming?
What settings are you using for the automation? As to my understanding you could try a setting where positions are only reported as filled on the chart after a broker confirmation. However this is something to test on a simulation account of course.
I have worked with MarketPosition_at_Broker or MarketPosition_at_Broker_for_The_Strategy and CurrentContracts to check and display differences in broker and signal positions.
MC has had some issues with sometimes MarketPosition_at_Broker behaving incorrect, but as far as I know this is ironed out now.
You need to decide what you want to do if they are out of sync, as I can imagine you will have situations where they are out of sync for a few ticks although everything is fine. If you trigger correcting orders then you might desync a strategy that actually was in sync before.