Confused about the correct spelling of the condition, help:
There could be two options:
"MA Slow" is higher than "MA Fast".
"MA Slow" is lower than or equal to "MA Fast".
Accordingly the sign of the result will be "+" or "-". If the sign is "-", your condition will never be fulfilled since "-" will always be less than 5*Point().
Accordingly the sign of the result will be "+" or "-". If the sign is "-", your condition will never be fulfilled since "-" will always be less than 5*Point()
In other words, the code will be
Exactly! The second condition I was thinking of doing that too ;) Thanks
Maybe you posted the decompiled code? Maybe you asked for something else to do with decompiling the executable?
No, the questions were about translating code from mql4 to mql5 I did everything, but there was an error while working, I asked for help to figure it out
No, the questions were about translating code from mql4 to mql5 I did everything seemingly, but there was an error while working, I asked for help to figure it out
Strange. Was there a code? Maybe there were signs of decompilation in it?
Торговая деятельность в платформе связана с формированием и отсылкой рыночных и отложенных ордеров для исполнения брокером, а также с управлением текущими позициями путем их модификации или закрытия. Платформа позволяет удобно просматривать торговую историю на счете, настраивать оповещения о событиях на рынке и многое другое. Открытие позиций...
Aleksandr Egorov: Hi guys, can you tell me how to calculate the commission for open trades in mt5 volume or tell me where there is a ready-made function
#include <MT4Orders.mqh> // https://www.mql5.com/ru/code/16006// Комиссия всех открытых позиций.double GetSumCommission()
{
double Sum = 0;
for (int i = OrdersTotal() - 1; i >= 0; i--)
if (OrderSelect(i, SELECT_BY_POS))
Sum += OrderCommission();
return(Sum);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Confused about the correct spelling of the condition, help:
There could be two options:
Accordingly the sign of the result will be "+" or "-". If the sign is "-", your condition will never be fulfilled since "-" will always be less than 5*Point().
In other words, the code will be
There can be two options:
Accordingly the sign of the result will be "+" or "-". If the sign is "-", your condition will never be fulfilled since "-" will always be less than 5*Point()
In other words, the code will be
Maybe you posted the decompiled code? Maybe you asked for something else to do with decompiling the executable?
No, the questions were about translating code from mql4 to mql5
I did everything, but there was an error while working, I asked for help to figure it out
No, the questions were about translating code from mql4 to mql5
I did everything seemingly, but there was an error while working, I asked for help to figure it out
Strange. Was there a code? Maybe there were signs of decompilation in it?
I can'topen a position, I get a wrong volume response for any values.
2019.05.20 21:53:24.814 position_open (XAUUSD,M10) Wait for Buy V = 1.00 price = 1278.15 SL = 0.00 TP = 0.00
2019.05.20 21:53:34.002 position_open (XAUUSD,M10) CTrade::OrderSend: market buy 1.00 XAUUSD [invalid volume]
2019.05.20 21:53:34.002 position_open (XAUUSD,M10) PositionOpen() method failed. Return code=10014. Code description: invalid volume
Hi guys, can you tell me how to calculate the commission for open trades in mt5 volume or tell me where there is a ready-made function
Hi guys, can you tell me how to calculate the commission for open trades in mt5 volume or tell me if there is a ready-made function
Or CPositionInf Commission
Or CPositionInf Commission
Hasn't been working for a long time.
Not working for a long time.
I've tried it and your function works fine. Anyway, thanks a lot for your feedback,
I've got it figured out where to get the commission)) I'm new to MT5 so I'm not too keen on it, but I'd better check it if it's not right
i think i got it right