Forum

Metatrader / Windows update and Expert Advisers open positions

What happens when there is an update and the expert advisor has an open position? It will lose all closing parameters set up within EA ? If that is so, is there a way to mitigate this situation ? Global Variables ? Store and retrieve parameters after the update is done ? The same question/doubt is

MQL5 - Placing two orders (instead of one)

Hello, I have this code but it is sending two orders of 100 (lots) instead of one. Any idea on what might be happening is appreciated. Please see below the code: double Ask = NormalizeDouble ( SymbolInfoDouble (SymbolArray[posicao_array], SYMBOL_ASK )+( 2 * _Point ), _Digits );