Bug when summing up pips in MQ5
-
I found a bug in the 'For each closed position' block for MQ5. I found it here:
https://fxdreema.com/shared/UCaFiBXkc
Negative numbers are counted as positive no matter what. Positive values are correctly counted, but negative ones are wrongly transformed into positive ones. Could someone please check the code?
-
@l-andorrà Not sure if I follow, I am not seeing the negative numbers.
-
@l-andorrà I am not sure I get this fully. But I guess it simply takes no of pips in positive numbers whether profit or loss, which I dont think wrong or a bug. If you need losing trades' pips in negative values, you may simply filter losing trades and multiply them by -1 in a formula block and then sum up all together.
-
@vish These block should consider positive and negative pip values. However, a negative result in pips is wrongly moved to a positive value. I use this same structure for mq4 and works perfectly fine. This is how I found the bug in the mq5 version.
-
@l-andorrà Dear admin, can you please fix this?
-
@l-andorrà Maybe this is why my Indicator will not work ... I have the same problem
It sees the positive value and it works correctly but the negative value will not work.. -
@alphaomega What is interesting is that the issu happens in mql5 only, not in mql4.
-
@l-andorrà .. Well I am using mt5... It has worked before .. no problems about a month ago so, I dont know what changed in the meantime.. I did asked admin to look at my EA in another post hoping he would look at it.. don,t think he did .. but lets hope!
-
No news from the administrator/fixer?
-
Mr Rastev emailed me to confirme that this buf was finally fixed. I took the liberty to remind him thare are sother bugs to be fixed yet.
-
@l-andorrà Great... maybe he was on holiday too.... LOL