Hi guys is some days that i noticed an exponential slippage cost increase.
Today i saw more deeply and i see that a market order that had to be executed at 9:00 was sent just 1 minute after the signal. I attach the image "problem 3 b".
I saw also that even if in the chart the position was close, i was still in the market (image "problem2"): in order and position tracker was still "broker position:-1" (it could happen as i work in aa mode") but also "strategy position:-1" which is more strange because the chart figure that was close....
Thanks,
Alfredo
Slippage increase with slow execution in MC
Slippage increase with slow execution in MC
- Attachments
-
- problema 3 b.jpg
- (49.43 KiB) Downloaded 410 times
-
- Problem2.jpg
- (180.69 KiB) Downloaded 409 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Slippage increase with slow execution in MC
Hello palmone,
In AA mode there are three positions: chart position, strategy position, broker position. Due to the nature of this mode they can be out of sync. Orders can be executed on the chart but not executed at the broker and vice versa.
The best solution to have all positions in sync is to use SA auto trading mode + "Assign initial market position" window. Using "Assign initial market position window" in AA mode you can also sync the positions. That is recommended to have at least your strategy and chart positions in sync.
If you want to understand why the order was sent later than it is expected - you need to validate order generation logic in your code: Why an Order Was or Was Not Executed.
In AA mode there are three positions: chart position, strategy position, broker position. Due to the nature of this mode they can be out of sync. Orders can be executed on the chart but not executed at the broker and vice versa.
The best solution to have all positions in sync is to use SA auto trading mode + "Assign initial market position" window. Using "Assign initial market position window" in AA mode you can also sync the positions. That is recommended to have at least your strategy and chart positions in sync.
If you want to understand why the order was sent later than it is expected - you need to validate order generation logic in your code: Why an Order Was or Was Not Executed.