releasing EA on ml5 marketplace
-
Hi, I just tried to upload an EA I made with fxdreema on the mql5 market place. During the validation process I get the error "insufficient funds to perform trade operations". Has anyone else come across this issue?
Here mql5 says is a guide to fix the issue: https://www.mql5.com/en/articles/2555#not_enough_money
I have tried pasting the code sample into the EA, but I still get the same error message.
Any ideas?
-
I solved the issue and post it here in case anyone faces the same: https://fxdreema.com/shared/S21yRTWqc
-
I now face a new issue during the validation process on mql5 marketplace.
I get the error "[Volume limit reached]"
It has to do with the maximum orders allowed. I do not get any errors on my own broker, but apparently it does retuen errors in the validation process on mql5.
I have found some threads on the mql5 forum, but I have not been able to implement the suggestions successfully. Has anyone here experience with this issue and how to solve it?
I post the link to the discussions on the mql5 forum here:
-
@piptheripper This is weird. I'm a not a programmer, but I would say the EA maybe is stariting trades when they are too close to the current price. May this be the case?
-
@l-andorrà it has to do with the max volume allowed per symbol. On my broker I do not get any errors as there is no volume limit as long as there is enough free margin in account balance. But apparently in the test mql5 runs as part of the validation process there is a max volume allowed per symbol.
So I need to find a way to first retrieve what the max volume is on the broker mql5 does the validation test on. I am able to do that by creating a variable called max_volume and then use the below line of code in a custom mql5 code block
max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_LIMIT);
Then i need to make a condition before my "buy/sell pending order" block that only allows pending orders to be placed if the volume of the pending order is below max_symbol
This line of code should hold the answer, but I cant really figure out how to convert that into a condition block in fxdreema. I need to
if(max_volume==0) volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX);