How to set close all
-
I need your help here. Anybody here can help me with my Ea. I want create this ea , which , when my total profit has reached to 10USD then all current position closed without leaving any trade opened. Can anyone help me, please.
You can see my project here:
https://fxdreema.com/shared/CLvpiT7keThanks for the help.
-
look into block "Check profit (unrealized)" - with this block you can check your profit from opened trades and compare it with x money ... after this block connect Close trades block ...
-
@Ahlanbika
If you want your expert advisor to close every single trade from every chart i just got help with that ,If buy/sell trade
conditon ; account profit > the amount you want
close buy/sell -
This is the question - which profit and which trades needs to be closed. Because there is one global profit that covers all trades - manual and automatic. Or that block "Check profit (unrealized)" who only checks the profit made from the trades made by the EA.
-
Thanks for all responds to my question and problems. I mean total profit that calculated from all trades, not one trade. I mean when the profit of my open position has reached 10 USD then my EA can close all immediately. Close All (profit and loss) of all of opened position.
For All that give me your responds I like to let you all know that I don't know how to do or to imagine the logic. I need simple example sir.
Thanks again for the help.
-
-
For the total profit just go to "Account" in the "Condition" block. You can find Balance, Equity, Profit (which is Equity-Balance) and other stuff there
-
Thanks! I'll try.
-
@timmyhanke Thank you Timmy. But what I want here close all trade in one EA. So I have time to start new trade with new session and my floating not too much. This because I always left the EA to work alone without attention.
-
@miro1360 Thanks!! it's work as i need. Thank you.