CLOSE ALL TRADES WHEN CURENT EQUITY IS ABOVE PREVIOUS EQUITY STORED IN MEMORY
-
I have made this setup 1_1552471324125_close when equity is above +5.mq4 0_1552471324124_close when equity is above +5.ex4
However it doesnt close the trades what am I doing wrong anyone ideas?
I need it to work in order to make the Grind Trend Multiplier system work, all other ways to close doesnt seem to work for me. -
I would suggest this example as a starting point for what you are looking for
https://fxdreema.com/forum/topic/4858/total-profit-reduces-by-x-then-close-everything
I can say that it works pretty well.
Thanks to @roar and @timmyhanke to share their idea on this.
-
Can't see your Ea since you uploaded an ex4 file of the file , either upload the mql4 file or upload your fxdreema creation through the share option.
When closing a value that always increeses is easy , for profit for example which you can use in your case .
Account/Profit(eqity-balance) then set a value you want.
if you only want to act when your balance increeses you have to make a variable that changes when every you want it to.
Like a start balance when the ea starts , if a trade is a winning one only then it changes the balance variable to the new balance and so on -
@timmyhanke hey thank you for the update, Both files are posted, see the extension on the end.
Ive tried the variable setting for equity however the condition only works when I put the value is above the other value but than get a constant close what results in a cosntant loss, when I put crosses above sertain value +5 for xample than it just sits and does nothing, very strange, check average profit history and curent trades also doesnt work for me Im programing the Grid Trend Multiplier System, and need to close the curent trades even in a loss after a sertain profit has been riched however this profit is only visible on the equity side. I f thats above start equity than it closes all trades and so on. works well only need to solve the closing sequence.