Condition limit loss and Limit Profit
-
Hello FxDreema friends.
Can someone give me examples of how I can accomplish the following conditions:- Identify if the value of the win is = or> the value of $ 60, if it is my robot should not allow more entries on that day.
- Limit of loss per trade, lost a certain amount example $ 50 the robot no longer allows to give entries during the whole day.
In short, I want to insert conditions that limit daily gains and losses.
-
This is the block you can use for both cases:

The last box 'Profit' can accept positive or negative values. That way you can condition how much can you win or lose every day or every trade. Once this condition is true, a boolean variable can be used to block your buy/sell launchers.
-
Hello @l-andorrà first thank you very much for your help.
I performed the following parameters as shown in my shared project and also the screen print, can you help me find where the problem is?
I'm having a hard time understanding what the block connections are and how they should be set up correctly and the correct order that I should link to each other.
-
https://fxdreema.com/shared/ZTdorpER is a url shared my project. @l-andorrà
-
Firstly a tiny detail. That 'Pass' block is completely innecessary. You can remove it. I see two problems. Your block 'Once a day' will be executes just once every day. This means that will happen on the first tick of that day and will not check it out again until tomorrow. This is wht all blocks below it aren't simply executed after that fisrt tick every day.
You should use a 'Time filter' block instead in which you can specify the period of the day in which you wantthe EA to check the blocks below. And this leads to the second problem. That Time 1 period on the 'Check profit' block is not correct. You begin the day at 00:00 not at 24:00. In effect, that time doesn't exist on the Mt4 platform. After 23:59:59, there is 00:00:00.
Let's begin with this and then we'll continue with the loses' part.

-

Hello @l-andorrà i update, please verify is correct my changes.
Here in Brazil for trade i use time starting 09:00 am and finish at 18:00 ( correspond to 5:00 PM) -
Try to duplicate those same start and end times on the 'Check profit' block and test it, please.
-
@l-andorrà i try and not working, i will try other method, you have example to solve this