How to stop trading after a pre-defined Equity profit!!
-
Hello.
I am wondering if there is a way to tell my EA to stop the trading daily after achieving a certain amount of a daily profit, and start again next day!!
I tried this method in the attached example. it looks not logic or not working!!,
Could you please advise me if there are better approach.!Thanks
-
above buy/sell tree - check profit (period of time) < day profit - place trade
If you want all trades to close if profit is made - separate tree - check profit (period of time) > day profit - close -
Thanks for your kind replying, actually I wanna stop the trading after achieving a profit target, not to close any profitable ongoing trades, because many times after a strong market movement, will be a long and strong period of undesired volatility!!
-
Sorry. I miss understand your answer, It is good approach to use (check profit period of time). but as I have seen, it just define a profit as a money, any method we can use it as percentage (for example 20% profit).
Thanks again!! -
Then don't close them, you will need other blocks saving the %, for example start day balance = x.xx, x.xx /100 *20 saved in a variable is 20%, use the variable in the check profit block
-
Can you show me a simple example please!
-
-
Thank you very much, that is exactly what I was looking for!!
-

