Questions about the lot library from codebase New comment Raphael Schwietering 2018.10.23 15:30 Hello, i have a question. I found that lot calculation in https://www.mql5.com/en/code/viewcode/7749/105580/lot_lib.mqh Can someone explain me this? lot = _AccountBalance * 0.01 / iATR( Symbol(), Period(), 20, 1 ) / lotcost * 4 * Point; is this the same as i tried to use in my ea? int margin=(int) MarketInfo(_Symbol,MODE_MARGINREQUIRED); lot = AccountBalance() * 0.10 / iATR( Symbol(), Period(),20, 1 ) / margin * 4 * _Point; Whats here the * 0.10 ? 10% from AccountBalance i think!? What the *4*_Point? For What is this 4 standing? MQL5 Site / lot_lib.mqh - Free download of the 'lot lib' library by 'komposter' for MetaTrader 4 in the MQL5 Code Base www.mql5.com //+ Trailing Stop AccountBalance() error [ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. New comment
Hello,
i have a question. I found that lot calculation in https://www.mql5.com/en/code/viewcode/7749/105580/lot_lib.mqh
Can someone explain me this?
is this the same as i tried to use in my ea?
Whats here the * 0.10 ? 10% from AccountBalance i think!?
What the *4*_Point? For What is this 4 standing?