NexusFi: Find Your Edge


Home Menu

 





Broker and Strategy out of Sync


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one toddma with 2 posts (0 thanks)
    2. looks_two bd92154 with 2 posts (0 thanks)
    3. looks_3 no erocla with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (0 thanks)
    1. trending_up 2,151 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread

Broker and Strategy out of Sync

  #1 (permalink)
 
toddma's Avatar
 toddma 
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
Posts: 53 since Jul 2012
Thanks Given: 14
Thanks Received: 6

Hi,

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

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
bd92154's Avatar
 bd92154 
San Diego
 
Experience: Intermediate
Platform: NinjaTrader/Think or Swim
Broker: TDA/Interactive Brokers/ Data Feed TDA & IBK ( Dropped Kinetick)
Trading: Stocks NASDAQ
Posts: 1,058 since May 2011
Thanks Given: 1,542
Thanks Received: 448


toddma View Post
Hi,

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

Todd,

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.

Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
toddma's Avatar
 toddma 
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
Posts: 53 since Jul 2012
Thanks Given: 14
Thanks Received: 6


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?

Started this thread Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

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.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #5 (permalink)
 
bd92154's Avatar
 bd92154 
San Diego
 
Experience: Intermediate
Platform: NinjaTrader/Think or Swim
Broker: TDA/Interactive Brokers/ Data Feed TDA & IBK ( Dropped Kinetick)
Trading: Stocks NASDAQ
Posts: 1,058 since May 2011
Thanks Given: 1,542
Thanks Received: 448


toddma View Post
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?

Hi Toddma,

Yes Market Analyzer is a NT7 tool. I could have sworn that your profile didn't have Multicharts down yesterday... ROFL

Maybe Multicharts has a similar tool. Attached is my Market Analyzer for my SIM Trading Account.

No Wonder why could not find your commands in my NT7 manual....
I just thought you were cracking another part of NT7 that they don't advertise.

NT7 is truly the erector set of trading platforms as there are so many things we can do with it.

Attached Thumbnails
Click image for larger version

Name:	chart.jpg
Views:	144
Size:	30.0 KB
ID:	121131  
Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hi all,

i've the same problem, sometimes i can see an Async between IB and MC, only on Pending Orders (Limit - Stop).

There some easy way to force IB to be always Sync with MC ?

How can i control from MC, if there s some Async Pending Orders to IB ? And how can i cancel them ?

Thank you for any answer.

Cordially

No Erocla

Reply With Quote




Last Updated on August 16, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts