request speical biig lot code for ATC 2012

 
  1. The minimum trading amount is 0.01 lots, and the maximum is 5 lots, with an increase by 0.01 lot on every order.
  2. The maximum amount of pending orders for all symbols at any point in time is 100.
  3. The maximum allowed total volume of an open position and pending orders in one direction (either buy or sell) is 15 lots for each symbol. It means that if you have an open 15-lot Buy position, you can place a 15-lot pending Sell Limit order. But in this case you cannot place a pending Buy Limit order (since the total volume in one direction will exceed the limit) or place a Sell Limit order above 15 lots.

can anyone post a function() for enter 7 lot or 12 lot, then it will divide to 2 to 3 times to enter max. 5 lots per each time  ?

thanks 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
 
kelly:
  1. The minimum trading amount is 0.01 lots, and the maximum is 5 lots, with an increase by 0.01 lot on every order.
  2. The maximum amount of pending orders for all symbols at any point in time is 100.
  3. The maximum allowed total volume of an open position and pending orders in one direction (either buy or sell) is 15 lots for each symbol. It means that if you have an open 15-lot Buy position, you can place a 15-lot pending Sell Limit order. But in this case you cannot place a pending Buy Limit order (since the total volume in one direction will exceed the limit) or place a Sell Limit order above 15 lots.

can anyone post a function() for enter 7 lot or 12 lot, then it will divide to 2 to 3 times to enter max. 5 lots per each time  ?

thanks 

quite easy: just loop . lot_rest=12, lot_send=lot_rest; if lot_send>5 then lot_send=5; lot_rest-=lot_send;