I would like to make an expert advisor..
this is my first try....
but I want this EA work with small account... so micro-lots are needed
When I try to run the EA I get this message
2011.10.26 12:21:01 MyFirstEA (EURUSD,M15) CMoneyFixedLot::ValidationSettings: lots amount must be in the range from 0.100000 to 1000.000000
I would like to know where I should modify the minimal lot value
(I don't want to overwrite MT5 header files... I hope there is a clean way to do this)
CMoneyFixedLot is the class money management algorithm, based on trading with predefined fixed lot size.
You need to set the lot size after creating the CMoneyFixedLot object, with Lots method.
Then you need to check the correctness of the setting with ValidationSettings method.
The class is documented here CMoneyFixedLot
You can see an example here: http://www.forexnirvana.com/21205-post26.html
Althogh, the Percent() method had already been removed from the class so you don't need it.
From second reading, I guess you mean to ask another question.
The Micro-Lot account is set when you open the account at the broker level.
sorry for being so late to reply...
In fact the problem seems to be that CMoneyFixedLot is not designed for micro-lots account
but I don't know where I should set that mimal lot is 0.01 (and not 0.1 !)