Forum

Validation state: Validation completed with errors

I'm having issues validating an update to an EA, and I can't figure out what I'm doing wrong. The problem is with the trailing stop, and even though I validate the SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL, I still get the error "[Modification failed due to order or position being close

Why is it giving me a negative number?

Greetings community, I am using the strategy debugger and I don't understand why the variable 'puntosGridPrima' is resulting in a negative number. 'puntosGrid' is an integer whose value is 200,000 and 'MathRand()' is a random number between 0 and 32,767. In practically all the iterations it has

Fast genetic based algorithm, Complex Criterion Max.

Has anyone used this optimization option? Any guide for its use please

Open EA configuration given a certain condition

Hello, would any of you know in MQL5 how to open the configuration window of an expert advisor if a certain condition is met? For example, if the number of trades is greater than 5, open the EA's configuration window

Problems with MQL5 Storage

Since yesterday I am trying to commit changes to the MQL5 Storage repository and I have not been able to, I receive the message "Commit failed". Can someone confirm if they have the same problem? Thanks

Why do the prices of the lines not match?

Why the Bid price and Ask price indicated by MT5 do not match the Bid price and Ask price that I execute by code? At all times there is a gap. //+------------------------------------------------------------------+ //| Prueba01.mq5 | //|

Curiosity

Just out of curiosity, which is the pair you've earn the most, and with what pair have you lost the most

OrderCalcMargin equivalent for mql4

Hello, What is the function equivalent to OrderCalcMargin from mql5, for mql4? Thank you

The order was closed by SL, TP or manually.

What is the code for MQL4 to know if the order was closed by SL, TP or manually? I am reviewing the documentation but I cannot find how to do it. I hope you can help me