![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I don't know what you are referring to by the normalize volume function.
where ea gives command to open a trade, i have put this Normalize Volume Function:
double volume=StartLot;
double volumeStep=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);
double volumeMin=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);
double volumeMax=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX);
double volumeNormalized=round(volume/volumeStep)*volumeStep;
volumeNormalized=volumeNormalized<volumeMin?volumeMin:(volumeNormalized>volumeMax?volumeMax:volumeNormalized)
;
however, validation still gives OrderSendError 131.
This new automatic validation works well for me better than moderator stuff.
Exactly !
This new automatic validation works well for me better than moderator stuff.
where ea gives command to open a trade, i have put this Normalize Volume Function:
double volume=StartLot;
double volumeStep=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);
double volumeMin=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);
double volumeMax=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX);
double volumeNormalized=round(volume/volumeStep)*volumeStep;
volumeNormalized=volumeNormalized<volumeMin?volumeMin:(volumeNormalized>volumeMax?volumeMax:volumeNormalized)
;
however, validation still gives OrderSendError 131.
Without seeing how you are implementing this function, it is not really possible to comment. Maybe you are calculating the value but not actually using it when placing the order?
NOT an indicator. I uploaded my EA on this past 15th September. Faced no issues.
<Deleted>
He he what was wrong with your product name?
Oliver Gideon Amofa Appiah:
NOT an indicator. I uploaded my EA on this past 15th September. Faced no issues.
<Deleted>
Do not post any links to any products or services. This is considered advertising and will get you banned