Check profit (unrealised) block bug?
-
Created .ex5 files with blocks that utilise 'pips (total sum)' and 'pips (as position)'. These blocks do not seem to be executing in projects that I have compiled today, where they used to work as expected. Tried on different instances of Metatrader 5, on different machines, with different Symbol data sources and they do not seem to be executing as they should in the above modes. Attached a demo that demonstrates:
-
@droctagon Add the shared project not the MQ file.
-
-
@droctagon Most blocks work on every tick on the on tick tab, not used check profit average, does it work without them? I would move blocks to the side till I find which ones are stopping EA from working.
-
Thanks jstap, yes it works without them, I had already isolated them as the blocks that were problematic. I haven’t had a chance to revisit it today, so I shall double check tomorrow and see if I still have the same problem. Thanks.
-
I have the same issues ...

I this issues can be reproduced by Downloading/ Compiling an EA from FxDreema if the Check Profit Block has a negative value, it somehow breaks whole Fx Dreema webpage over time if insufficent RAM is allocated, like color issues, blocks not connecting or not even working at all, or update errors, the only way to fix this is by creating a new project. I never use negative variables again.
-
I have checked this again today and the Check Profit blocks are still not executing (or are preventing the block below it from executing). When I bypass them, my connected blocks execute. I've updated demo shared project to simplify. Will have to get on to support I think.
shared/YVYyUoCmc
-
@droctagon I have never managed to get these blocks working, I normally use money though and this can be got from bucket of trades or profit (for all).
-
Ah really, I’ve been using them successfully for years. I use them to apply different closing rules (based around MACD of different timeframes) depending on what the current profit level is. I would use ‘money’ but my lot sizes change frequently and it wouldn’t work as I’d like.
I’ve just thought that I could build a work-around, just calculating the current price against the open price to establish the pips in profit.
Thank you for you feedback / assistance though, much appreciated.
-
@droctagon Your logic is correct. If they are not working it is definitely a bug.
-
I've been in comms with @fxDreema and he's attentive to the issue (as he usually is
), however he says that he has been unable to recreate the issue. I've been able to recreate the issue over multiple MT5s on multiple machines in different locations (local and remote), so if anyone is curious or feeling particularly helpful, perhaps you could see if the following example that @fxDreema shared, works or doesn't work correctly for you:https://fxdreema.com/shared/aUOc2PkFd
It should close the open trade after reaching / exceeding 10 pips in profit, but for me it now just bypasses the 'check profit' block completely and moves on to the next block 'close positions', ignoring the 10 pips profit 'check profit'.
Any feedback much appreciated.
Paul.
-
I have same issue here on MT4, been using this block for quite some times to close orders by pips in profit, but suddenly not working. is there any workaround?
-
I'll let @fxdreema know that there seems to be a +1 with the same issue on MT4. I'll post back with any update he gives me. If he's too busy then I am planning on just creating a manual workaround using a formula to calculate the pip difference between the opening price and the current price and using that value to assess the unrealised profit (or loss) pips.
Thanks for letting me know.
-
@droctagon said in Check profit (unrealised) block bug?:
I'll let @fxdreema know that there seems to be a +1 with the same issue on MT4. I'll post back with any update he gives me. If he's too busy then I am planning on just creating a manual workaround using a formula to calculate the pip difference between the opening price and the current price and using that value to assess the unrealised profit (or loss) pips.
Thanks for letting me know.
No problm, thanks for the help! looking forward for the workaround if not resolve.
-
@fxdreema has informed me that he thinks he’s fixed this block. I haven’t had time to test it but thought I’d update in case anyone was waiting for a fix. Thanks.
-
@droctagon
I think it is working fine on my side, I've used the block both on mt4 and mt5 as my failsafe when my formula on computing target profit with swap, especially on multiple order. -
as i test on mine, it's still not working. Please let me know if yours are working.
-
@aku_ami
Here is mine, working's fine at 11pips gain in pips. I set target tp as 18pips to hide my actual tp target of 11pips.

-
@cedietradermax Tested this block and seems to do as needed: https://fxdreema.com/shared/vE42R76oe