Hello
Nowadays, Expert Adivsors are so good that the equity line is usually a straight line (for the best ones)
BUT SHTF anyway sometimes. So i want to protect myself against that
My idea is to create an equity protection for each EA, and if the equity breaks a threshold (created by MA or % of max equity), it closes the trades AND the EA of course
I found a few EAs that does this but usually they monitor the global equity and they close ALL trades and ALL EAs
That's not ideal. I would like to shut down ONLY the faulty EA and close ONLY the trades of this particular EA.
i'm a programmer and I've managed to find a way to :
1) identify trades of an EA by the magic number
2) identify a chart WHND to be able to remove the EA on a specific chart
i do that using : PostMessageA (hWnd, WM_COMMAND, 33050, 0); it works great.
i'm currently trying to be able to shut down the EA using a specific magic number.
Once it's done & tested, i'll post the finished robot for everybody to enjoy of course!
thanks
Jeff
Nowadays, Expert Adivsors are so good that the equity line is usually a straight line (for the best ones)
BUT SHTF anyway sometimes. So i want to protect myself against that
My idea is to create an equity protection for each EA, and if the equity breaks a threshold (created by MA or % of max equity), it closes the trades AND the EA of course
I found a few EAs that does this but usually they monitor the global equity and they close ALL trades and ALL EAs
That's not ideal. I would like to shut down ONLY the faulty EA and close ONLY the trades of this particular EA.
i'm a programmer and I've managed to find a way to :
1) identify trades of an EA by the magic number
2) identify a chart WHND to be able to remove the EA on a specific chart
i do that using : PostMessageA (hWnd, WM_COMMAND, 33050, 0); it works great.
i'm currently trying to be able to shut down the EA using a specific magic number.
Once it's done & tested, i'll post the finished robot for everybody to enjoy of course!
thanks
Jeff