EA based on mt5 opened orders with pending orders
-
Create an EA based on the orders that i open manualy in mt5 ,
it is possible to create an ea that creates pending orders depending on the position that i opened on mt5 ? -
on trade tab, trade created by all and manually opened, place pending with desired settings, create 2 trees 1 for buy / 1 for sell
-
i tried that and it opens unlimited pending orders
-
Not if done on the on trade tab, the trade created block only works once
-
i did it this way , but still doesnt work proprely , i want to make this strategy , when i place a buy (maually) to open a pending sell orders at certain distance , if take profit is hit at one of this trade to delete all pending orders and close position.
https://fxdreema.com/shared/lJQO3ffPd -
Try this:

-
i solved the issue thx , now im trying to figure out the : if i manually buy a trade of 0.01 , it will place a selling pending order of 0.02, but i want when that seeling order is filled i want to put a buy order from that price of 0.04 and so on , and if the tp is hit deleting all pending orders and change the starting lot back at 0.02 ( i put 0.02 because the ea can't read the manualy started lot )
-
The \EA can read your starting trade lot, for each trade, looking for last opened, put the lot in a variable. put this un a comment to see what returns, you could then adjust by *? in your buy block, if tp hit you can tell ea to use the fresh starting lot.
-
im trying like this but it doesnt double as i want https://fxdreema.com/shared/8cDCIakib
-
You want it set like this:

-
i tried like this but it only double the next buy pending order , what im trying is if a buy is lost next sell pending order to be double
-
You need to add more blocks, if loss do this, if win do this.
-
just and update i think i've fixed and its working proprely im waiting to see on more loses if it doubles corect , txh for the help , i attach the link just in case somebody needs it https://fxdreema.com/shared/sFyd9ycXd