Download MetaTrader 5

After some period lotsize become constant i.e.500

To add comments, please log in or register
What are the latest MQL5.community news? The Wall section will tell you!
Kiran Chandekar
1472
Kiran Chandekar 2013.12.16 18:54 

I am testing my ea on 14 year time frame. Lot size is calculated on the % of account free margin. But after some time lot size stops increasing and it is constant at 500.

What is wrong here. 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Account Properties - Documentation on MQL5
Alain Verleyen
Moderator
30754
Alain Verleyen 2013.12.16 19:00  
kchandek:

I am testing my ea on 14 year time frame. Lot size is calculated on the % of account free margin. But after some time lot size stops increasing and it is constant at 500.

What is wrong here. 

What's the maximum allowed by your broker on the tested symbol ?
Pasi Hakamaki
4738
Pasi Hakamaki 2013.12.16 19:04  

This is because you have reached the maximum lot size for the symbol. You can see the max allowed volume for given symbol from Market Watch. Right click symbol -> Specification...

To get the information programmatically use SymbolInfoDouble()

Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.12.16 23:11  
kchandek:

I am testing my ea on 14 year time frame. Lot size is calculated on the % of account free margin. But after some time lot size stops increasing and it is constant at 500.

What is wrong here. 

Please do not double post:  https://www.mql5.com/en/forum/148444
lotsize stop increasing after reaching 500 - MQL4 forum
  • www.mql5.com
lotsize stop increasing after reaching 500 - MQL4 forum
To add comments, please log in or register