SHARE /LOT PROBLEM with -1 value

Discuss, post questions here about MTIBBridge the MetaTrader-Interactive Brokers trade-copier

Users who just registered, please write an email to
with your username mentioned.
So we can distinguish you from bots.
Thank you
Post Reply
Posts: 14
Joined: Mon Aug 13, 2018 7:40 pm

SHARE /LOT PROBLEM with -1 value

Post by danilocapp »

Using the bridge with share / lot with the value of -1 I found a big problem.
the sell orders received by mt4 are executed as buy instead of sell on IB.
example happened this morning on real account.
mt4 sells 48 contracts on IB is bought a contract instead of being sold.
I did some tests in demo the problem only happens on sell orders coming from mt4.
the problem appear only using "position sync" work properly on "copy order"


Site Admin
Posts: 244
Joined: Mon Apr 24, 2017 3:24 pm

Re: SHARE /LOT PROBLEM with -1 value

Post by board_admin »

negative shares per lot factor to get fixed ordersize makes no sense in conjunction with ib_position_sync.
Because ib_position_sync itself calculates what size required in order to sync IB positions with MT positions.

Post Reply