EA THAT CLOSES ALL TRADES WHEN PROFIT IS X DOLLAR
-
CLOSES ALL TRADES FROM ONE MARKET WHILE THE OTHER TRADES ORIGINED FROM OTHER MARKETS KEEP RUNING UNTILL THEY REACH THE X DOLLAR PROFIT
-
I saw this in one of your projects - http://prntscr.com/b4h6ce Do not use == for prices, money and values like this, never! Use anything else, but not ==.
Equity - Balance is the global profit of your account. To calculate profit from a group of trades only, try "Check profit (unrealized)"
-
THANK U.
I DID THAT AND NOW I HAVE IT ON THE MT4 RUNNING . I WROTE 2 $ IN THE AMOUNT FIELD AND THE UNREALIZED PROFIT WENT MORE THAN 3 INCLUDING COMMISSION BUT THE TRADE DIDNT CLOSE
......
AUTO TRADE CLOSE.PNG -
OK. I REALIZED THE MISTAKE. AS I INTEND TO USE THIS EA FOR CLOSING MANUAL AND MANUAL PENDING ORDERS I HAD TO SET GROUP MODE TO " MANUALLY OPENED ". NOW IT WORKS. THANKS A LOT
-
It also works if you go to the settings of the EA and set Magic Number to 0. This is the same value as the MagicStart input parameter of each EA... which I probably need to rename to MagicNumber
