dwxconnect icon indicating copy to clipboard operation
dwxconnect copied to clipboard

Zero Max Lot Size?

Open sorul opened this issue 2 years ago • 1 comments

I have gotten the following error more than once. What is the point of the maximum lot size being 0.000? Why does this happen?

('ERROR', '|', 'OPEN_ORDER_LOTSIZE_OUT_OF_RANGE', '|', 'Lot size out of range (min: 0.000000, max: 0.000000): 0.010000')

Thank you.

sorul avatar Aug 04 '22 19:08 sorul

Hi, The mql code returns this error when the lot size is larger than MarketInfo(symbol, MODE_MAXLOT).

It seems that MODE_MAXLOT returned zero. My first guess would be that the symbol you are trying to trade is not tradable or does not exist (maybe different suffix). Or maybe it is an MT4 bug.

elvinex avatar Oct 08 '22 08:10 elvinex