Page 1 of 1

SHARE /LOT PROBLEM with -1 value

Posted: Mon Sep 24, 2018 7:11 am
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"

Danilocapp

Re: SHARE /LOT PROBLEM with -1 value

Posted: Wed Sep 26, 2018 5:53 pm
by board_admin
Hello,
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.