Daily Profit Target

 

Hello everyone.

Suppose you need to create an EA to close all trades and disable autotrading once it hits a minimum daily profit target.

As you know you cannot be sure to close all trades exactly at the price you desire besides the deal out commission that is not predictable sometimes. This causes the system not to do exactly as intended. What is your solution for this?

 
I would have no solution for this case. But why does it matter if you don't meet exact profit target? For example, if it was $500, but the EA stopped trading at $546  isn't it a good thing? and does this nuance really matter?
 
Conor Mcnamara #:
I would have no solution for this case. But why does it matter if you don't meet exact profit target? For example, if it was $500, but the EA stopped trading at $546  isn't it a good thing? and does this nuance really matter?
The problem is if it closes on 499 it won't disable autotrading because profit target is not reached. And it enters trades again to catch the one dollar missed.
Anyway I fixed this by disabling trades even if it reaches 95% of profit target.