MT4 to MT5 equivalent block
-
Hi, I have this block in MT4 in an EA and I want to transfer this EA made in Mt4 to MT5 but in the MT5 menu it does not come out the same as the MT4, could you help me?

-
@xyon126 It doesn't exist for MT5. I don't know why but the admin didn't develop it for that platform.
-
@l-andorrà Y no hay un equivalente aunque sea con varios bloques?
-
@xyon126 ¿Te refieres a visualizar en pantalla las ganancias y pérdidas de las operacione abiertas en este momento o en el pasado?
-
@l-andorrà Hello @l-andorrà! Not exactly, this is a keypad made up of two fixed buttons, one has the header or denomination (Profit
and the other displays the formula data, the formula gives you the total current total profits or losses of the Open operations, initially I only needed it from the active PAR but I was informed that this was not possible, with what in principle is the total of current Profits or losses (in open operations).
Como ves se visualizan tres variables, las de los botones solo cambian en color segun el Profit, rojo en perdidas, verde ganancias y gris cuando es "0" cero, y la variable netProfit es la que va obteniendo los valores de los beneficios o perdidas actuales. Si existe algun otro modo para obtener el Profit que no sea con ese BLOQUE perfecto, mucho mejor pero que este en MT5 y MT4.
-
@xyon126 Pues si existe, lo cierto es que no lo conozco, me temo. Siempre te puedes pegar la currada de hacer todos los cálculos a pelo y meterlos luego en tu panel.
-
@xyon126 This block: Check block (unrealized), should work, because it calculates the sum of the positive and negative profit of the open positions.
https://fxdreema.com/shared/HreRjfcDd -
@xyon126 So it is a momentary profit, which can be both positive and negative
-
@pontedruse But this block that you compares benefits or losses, and what I need is for you to give the current benefits or losses without comparison and send them to a variable, so that this variable in a fixed button continuously visualizes how the total benefit of all is going operations and if possible only from the active PAR window.
-
@xyon126 If the net profit of the open positions, you need to put it in a variable, then try this: https://fxdreema.com/shared/Dh1v3Zbfe
-
@pontedruse Thank you very much @pontedruse! By the way, do you speak Spanish?
-
@xyon126 No I don't speak Spanish, I just renamed the variable, as you renamed it, that is: beneficio_neto.
-
Sorry for the delay, @pontedruse I have tested what you have told me and it gives me the profit of the current PAR, so that it gives me the total Profit of all open operations of all pairs. How should it be?
-
@xyon126 In this example there are 3 variables. in one there is net profit from current positions; in the second there is the net profit of closed positions; and in the third there is the total net profit, (ie the sum of the net profit of both current and closed positions).
https://fxdreema.com/shared/hlsyDBhHb -
@pontedruse Thank you very much @pontedruse!