partial exit not working correct on reporting with new fxdreema updates
-
hello, it seems like since a couple days the partial exit in mt5 is not reporting correct. the whole time my project was running fine when partial closing it showed an arrow at the closing position as well as a line from the open to the partial cosing . now therer are some new blocks added increment and decrement but they dont seem to work. it only shows an arrow when the FULL position is closed. please advise
-
You can remove both 'loop (pass n times)' blocks. You already selected the most recent trade inside the 'For each closed position'. Additionally I see you selected both buys and sells on the left purple block and sells only on the right one.
-
Here is an example I just did: https://fxdreema.com/shared/wCVSsE1Ib
It creates a position, then after 1 hour it closes half of it, then after 1 more hour it closes it fully.
In "on Trade" I placed some blocks to see what is going on. I want to detect partial close, full close, and a close in general (partial of full), and for each of these I print a text on the chart.
Additionaly, in the logs I print some information with that Alert block.I think this works correctly.
Your example is a little bit... it contains blocks that can be removed from there. But it's very possible that I fixed some wrong behavior. Yes, lately I was doing some changes and it looks that this changed the way your EA works. I wonder... did I broke something or did I fixed something. I don't fully understand the intention of your project, and that's why I can't tell what is the problem in it. But maybe you can get an idea from my project.
-
@fxDreema the intention was to draw a line and arrows from open to closed positions and it would draw it anymore. to the loop block I had the loop 1 times because sometimes it would draw infinite arrows and lines every time there would be a closed position. dont know if it was a bug or not. hence I used the loop1 time block. thank you your solution worked out. now I found another bug that the position closed bucket on time won't work correct. before I could use daily profit and use a closed bucket with a time filter and this bucket won't work anymore. it would not detect the time lets say all trades since 00:05 today. before worked now it doesnt.