Spécifications
I need a simple trade management EA. The criteria is as below
1 - must be specific to the pair I am trading
2- closes open an position if it does not go to profit after x amount of minutes or does not stay in profit for y percent of the x time since it is opened. Example, I open a position, goes to profit immediately but does not stay in profit 50 percent of the x mins since it is opened.
Basically what I am targeting is positions which go to loss immediately or those who does not stay in profit for an acceptable amount of time. Another factor i want you to consider is if the position is open and goes to loss immediately but goes back to profit, I want the clock to be reset. For example, position is opened, goes to loss immediately, clock starts. But before let’s say 30 mins which we set the time for the position expected to turn into profit before the EA closes it, if it does back to profit after 25 mins in loss the countdown begins again. You get the idea.
3- I want the mins and the percentage to be variable input so I can decide per pair
4- A countdown of mins display right after position is open.
Rules Summary
let’s set the clock for 30 mins for the position to turn into profit position and should stay 50 percent of the time of that 30 mins in profit before the ES decides to close
1- position stays 100 percent of the time in loss after 30 mins, EA closes
2- position stays only 45 percent of the 30 mins in profit, EA closes
3- position stays in loss for the first 15 mins (50% of the time) but goes back to profit, clock starts and rule 1 and 2 apply again
You get the idea. Can you do this?