As far as I cant tell your variable suggestion works perfect. Thank you.
Unfortunately, a new unexpected problem has appeared. Negative results are incorrectly counted! All losses are considered as gains and I have no idea why. 
Any hint?
As far as I cant tell your variable suggestion works perfect. Thank you.
Unfortunately, a new unexpected problem has appeared. Negative results are incorrectly counted! All losses are considered as gains and I have no idea why. 
Any hint?
Apparently the indicator cannot be loaded for some unknown reason. I created this test EA including it.
https://fxdreema.com/shared/7VUSKsIdd
And this is what I get in the logs:

The indicator is correctly available on the MT5 platform. No other error is shown at the logs tab. Any suggestion?
Great! Once more, thank you very much. But one more final question, please. Will time info put from block 13 into the 'Now' (on Init) variable be recognised by block 11 (bucket of closed positions)? Shoud I change the way block 11 can identify time?
I uploaded the following MT5 ZigZag indicator:
No buffers nor variables were detected by fxDreema, so I had to create them manually this way:

Sadly, it doesn't work and I don't know why. Did I miss something?
I didn't know formats should be specified manually. BTW, how can I write the vertical line separating 'Time_Date' and 'Time_Minutes'?
On the other hand, you're right, spread is not included. How can it be done?
Thanks.
Interesting. I'll take a look at it. Thank you very much.
Apparently the 'on Trade' part should work properly according to what I can read on other threads. I simply can't see why it doesn't work here.
Hi Miro,
This is the MT5 version of your pip counter for MT4 you so kindly helped me to develop last year:
https://fxdreema.com/shared/1JvNdFyO
I added a new feature to improve it. I want that only those closed trades from the very moment it is executed on the platform are counted from the history tab. This is why I added a Bucket of closed trades block on the project. However, two wierd things happen. The first one is the data format shown (the last number in the list on the top left screen). This is not how the block says it should be shown.
The second one is how pips are counted. As you can see in this image the number is clearly wrong.

Before you tell me, I checked the pip size rules and they are correct for this broker. I simply duplicated the structure of your counter for MT4. Should this project be different for MT5?
Thank you in advance
I retook this old MT5 project and I would appreciate some help about two parts that don't do what they are supposed to do:
https://fxdreema.com/shared/8qdJwCRLb
The first one is a wonderful miro1360's suggestion. I use the zigzag indicator on blocks 9, 10, 11 and 12. There I can identify if there is a local high or low and that activates an on/off switch used on blocks 24 and 84. When miro1360 suggested me that structure for MT4 it worked perfectly, but apparently it doesn't on MT5.
The whole structure on tab 'on Trade'. I correctly capture the ticket number of every first buy and sell through blocks 29 and 30 (see 'on Tick' tab). The question is that once those trades are closed their ticket numbers should be erased as per blocks 52 and 56 (see 'on Trade' tab), but they don't.
Once again, any help will be much appreciated.
Please accept my apologizes. I noticed that my browser had the NoScript addon activated. That apparently screws the upload/download process in fxDreema. It works fine now. Thank you very much.
Congrats! And yes, share your backtests please.
I created a new project from scratch and it works fine. Apparently there was some cache, as you suggested. Additionally I am using a different lapto with more RAM and I can confirm the error is no more. Once again the more RAM the better.
The problem still persists. No matter how many times I change it. Every time I export as mq5 all parametres are immediately changes to 'lower'. I created two different projects and it happens in both of them. This is how it should be:
https://fxdreema.com/shared/WnJjBnS6c
But one you export/import, it's changed again.
Same with blocks 'No trade' --> 'No position'
I can confirm the problem is within the EA. I tested other EAs on the same chart, TF, etc and it works perfectly. I will have to rebuild it from scratch and try it again.
Dear fxDreema, could you please check out everything is going right on your mq5 part of the platform? This is the third problem I found in a row 
Yes, I'm using the same default imputs, but things are worsening. I don't know why, but now the EA doesn't run at all. This is what is shown at the logs.

Any suggestion?
Really? Could you please try a short backtest? You will see a 100 MA acting as a moving SL. That's the weirdest thing I've seen so far.
This EA was originally designed for a 100 MA. I bactested it and results were bad. Then I changed all blocks for a 300 MA but the original one still remains somehow. 
For a reason I don't understand, a 100 bars moving average appears when backtesting this EA:
https://fxdreema.com/shared/DZGmOsPSd
As you can see, no such MA is programmed at any block. Why did that appear?