Daily target profit
-
@Matatika You would need two Constants instead of one. I created 'Profit to close'. You will need one to close daily profit and use it on block 10 and the other one to close daily loss on block 11. Additionally, you should remove that '-1' on the Adjust tab on the same block 11.
-
@l-andorrà Hi, I wonder if you can check some parameters for me, I've implemented the blocks you shared into my project. I've used the follwoing settings for the variables and constants:


https://fxdreema.com/shared/PWGoU3Ove
I wasn't sure how to set the variables, given that the information in them is needed from the open and closed trades. -
@Matatika Everything is correct except for blocks 1 and 5. They need to be exchanged. That 'Time filter' block needs to be the first one to be executed every day. Istead of number 5, it should be number 1. Then your 'Run EA' block will be given number five. That means you will have to moficy both 'turn on/off' blocks accordingly.
-
@l-andorrà Thank you for your advise, it's functioning as it should.
-
You're welcome.