Calculating Lotsize causes error 4051 invalid lots amount
marve7ou_marc:
I wrote a this code to calculate the Lotsize depending on where the price is in addiction to the StandardDeviation: When I start my EA it works pretty fine, but after some hours of trading it starts to show the error 4051. Do you have any idea what causes this error? |
|
Dear ladies and gents,
I wrote a this code to calculate the Lotsize depending on where the price is in addiction to the StandardDeviation:
When I start my EA it works pretty fine, but after some hours of trading it starts to show the error 4051. Do you have any idea what causes this error?
Thanks in advance.