# Update to compare tradesize ea

Watch how to order a trading robot
Read the Rules before you post an order or execute it
How to order a trading robot and get the desired result
Develop a robot in no time
681
Customer 2016.10.24 03:12 30 - 50 USD   from 2 to 4 day(s)
This ea compares the trade size in 2 accounts to ensure that the lot size are the same, and if not generates an alert.
The ea also uses a multiplier parameter to compare the lot sizes. e.g. The 'send' account may have 0.5 lots open,
and if the multiplier parameter is set to 2, the ea will check if the 'read' account trade size is equal to 0.5 *2 = 1 lot
The change I want to make is this. For the ea to book the trade adjustment in the 'read' account  to make the
two accounts 'equal', subject to multiplier parameters.
The sign of the multiplier is important.

If the 'send' account has 1 lot long and the multiplier is 2, the 'read' account trade size should be 2 lots long
If the 'send' account has 1 lot long and the multiplier is -2, the 'read' account trade size should be 2 lots short
currently has 1.5 lots long and the ea determines this value needs to change to 2 lots long, the ea should be able
to buy 0.5 lots to change this to 2 lots. The ea needs to be able to handle USA FIFO (first in first out) rules while
doing this
The ea needs to be able to handle 5 multiplier parameters. The multiplier parameters will depend on the profit in
pips of the open position in the 'send' account.
e.g. If the profit in pips of the 'send' account is between 5 and 30, use multiplier of +1 and
If the profit in pips of the 'send' account is between -5 and -30, use multiplier of -1 and
If the profit in pips of the 'send' account is between -5 and +5, use multiplier of 0 and
If the profit in pips of the 'send' account is between 30 and 9999, use multiplier of 0 and
If the profit in pips of the 'send' account is between -30 and -9999, use multiplier of 0 and
The ea should display on the chart, the current profit in pips, and the trade size of the 'send' account as well as the currently applicable multiplier.

Experts, MQL4

Developer 2016.10.24 09:08
Published 8 codes in Library
 Jobs: 115 (17% personal) Arbitration: 10 (completed in favor of the developer 40%, canceled in favor of the customer 50%) Overdue: 33 (28%)

Developer 2016.10.24 20:41
 Jobs: 204 (39% personal) Arbitration: 11 (completed in favor of the developer 9%, canceled in favor of the customer 27%) Overdue: 98 (48%)