In case of a single profitable transaction, I close on the day.
-
Hello,
I want to develop the following: In case of a single profitable transaction, I close on the day. In case of a single operation with a loss, I perform another operation on the day.
I started a project to solve, if someone is interested and wants to help.
https://fxdreema.com/shared/G9YxAsQOc
Thanks.
-
Solved one operation per day in case of profit.
https://fxdreema.com/shared/cXm42FTmc
I need to trade again in the event of a loss, making another trade.
-
If I understand it correctly, if you get just one profitable trade today, there will be no more trades today. However, you can have unlimited closed losing trades. Correct?
In other words, how many profitable trades are required every day to balance the losing ones?
-
Andorran!
Thanks for responding and trying to help!
In reality, a single profitable operation, or a single losing operation. When there is a single losing trade, we will give it one more chance, even if it loses again.
-
So the possibilities are:
- A winning trade? Yes ---> No more trades today.
- A losing trade? Yes ---> Trade again.
2a. A winning trade now? Yes ---> No more trades today.
2b. A losing trade? Yes ---> No more trades today.
Is that correct?
-
Hello!
Exactly!
I tried different paths, using different blocks, but I still don't understand the limitation of many.
I still appreciate your help if possible, of course!
-
Ok. This is one possible way. Maybe not the most efficient one but I guess it will work. Firstly you change your history account settings to 'one day'. That way that tab will only show all trades closed today every day.
Thenyou will need the block called 'For each closed trade' on the 'On Tick' tab. An below it you can connect several other blocks matching all those contidions. For example;

You can do that for case 1 in my previous post. That 'No_more_trade' variable should be put in a condition block on top of your trade launcher and then reset at the end of the day.
For cases 2a and 2b you will need some additional condition blocks but the logic is exactly the same.
-
Thank you so much for your help! I believe that the reasoning works, I'll start putting it into practice. As soon as I have an answer, I inform everyone!