auto closing trades
-
good day to you all masters ....
in my expert i want to do tow options .. 1st to close all trades if any trade hit TP or SL...
2nd option is to close all opened trades if total profit reach 10 dollars ot more .. and stoploss reach 10 dollarsthanks for your kind support
-
@kallosh use for each trade close block to close all trades. Same for check loss and check profit blocks.

-
@vonmunchy
My Dear master
thanks for your time and support
i'll try it and tell you
thanks again -
dear... it is working for first time only...!!!
i'll share my EA link
shared/a1fgx7qVc0_1621183234650_2 direction_sketching.mq4 -
https://fxdreema.com/shared/3quzsyNqd
see the changed made and for simplicity i changed group to all.
FYI: Any sort of zone recovery system is a waste of your time unless you plan to start off with a very large capital such as 10k plus.
-
my dear master
i am trying to understand everything in the system
even i not work with
this will generate the experience in dealing and made a good EA in future
i apricate your supportif you can help me to know why this problem happened in my EA
thanks very much
-
@kallosh i converted the project to mq5 to save me some trouble since i dont have any MT4 platform. All i did was removed the For each trade block and added position closed blocks. You can see the changes for yourself since the project link is above.
Delete these blocks.

and add these to yours and it should work.

The way to learn is to continue to build different projects, read the forum for any issues since most issues are common and someone very well may have posted it before and a solution may have been given.
And as for the reason why, i guess it has something to do with how For Each Close Position block is calculated. You can read the description as shown below. Im not expert just so you know.

All block descriptions are given and i suggest you read the stuffs mentioned in instructions and examples shown as well to undestand how different blocks operate
-
My dear friend..
i read all information about the blocks i want to use...
as you know , i am not understanding every thing in the discription of the block.. maybe some parameters will change all block work..
so i used to change every thing and try everything to see what that parameter will do to the EA ..
i 'll do what you told me ,, and ill put it on tick event instade of on trade event, and see what will happendthanks again to your kind replay and support
Fawaz A. Baker
-
Guys I've just created machine but it is bouncing using moving average cross over if 14 Ema is above 50 buy vise versa but i just want.. This conditions in each trade occur it should close the previous trade so if it bought it should close the sales one.. On the other hand vise versa .... But i used ti put clpse trade block and set tge parameters but it didn't work.... Any help pleasee LEGENDS


-
Can you please open a new thread with your question instead of retaking this one?