View Single Post
  #50 (permalink)  
Old 11-09-2008, 06:25 PM
Kenny Rogers's Avatar
Kenny Rogers Kenny Rogers is offline
Senior Member
 
Join Date: Oct 2008
Posts: 684
Kenny Rogers is on a distinguished road
As for closing trades when it hits a certain equity and preventing new trades problem after close, I basically hacked one of the public closeall experts into adding a global variable (=1) after closing trade. Then I modified my trading EA's to read the global variable, and if it is set (=1), to not open any new trades until I manually reset the flag by pressing F3 and unflagging it back to (=0).

It's not pretty, needs manual reset, and requires modification to the trading EAs. Hopefully, this hack job works though.

Anyways, back to more demo testing of stuff.
__________________
Life is a Gamble. You win some. You lose some. And life goes on.
Reply With Quote