Download MetaTrader 5
To add comments, please log in or register
Register as a seller and start making profit!
Fatbardh Pakashtica
193
Fatbardh Pakashtica 2014.06.11 14:45 
Hello guys, I want to ask how to do to let the ea increase the lotsize every time when a new order gets open ? Greetings 
whroeder1
13602
whroeder1 2014.06.11 15:27  
Faat94: how to do to let the ea increase the lotsize every time when a new order gets open ?
You code it so it does that.
double lotsize = 0.01; // Global or static
:
OnTick(){
   int ticket = OrderSend(...)
   if(ticket < 0) Alert(...)
   else lotsize += 0.01; // Increase for next open.
}
Was that so hard?
Fatbardh Pakashtica
193
Fatbardh Pakashtica 2014.06.11 17:47  
Thanks for trying to help me but it doesent work. My idea was that every time when the ea places an order the lotsize has to grow. For example : Multiplikator : 2  First order : 0.01 , Second Order : 0.02 , Third Order : 0.04 ..
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.06.12 00:51  
You don't want to do that type of lots increments since there are limits you can go for the lots and to be honest, it is not in your favor. It is especially dangerous when there are sudden movements and you could loss many pips.
/
To add comments, please log in or register