HOW TO SET E.A TO OPEN ORDER
20 replies
msophe
7 years ago #115563
HI
I want to build E.A for the following condition !!
first , I will open order manually , when order run in MT4 Window , the E.A should watch this order , when It reach profit of 5
dollar , the E.A should open this order , I will set in E.A like SL 10 Pips , TP 30 , Trailing stop 18 pips .
Note: if the order was open manual is buying , the E.A should open the same buying and the same to do in selling direction.
Thank you so much .
tomas262
7 years ago #139451
Hello,
just to make sure I understand correctly, so you want to trade manually and your EA to add a new position to an existing position when open profit is +5 with SL+PT mentioned?
msophe
7 years ago #139463
msophe
7 years ago #139482
hello Tomas262
I try to build E.A with the same of that condition but I fail , see here what I progress.
could you please help for me ?
Thanks
tomas262
7 years ago #139493
Hello, it can be done like this. See file attached
msophe
7 years ago #139497
Hello Thomas 262
Thanks , but I try to attach in MT4 , I open order manual when profit come E.A was not open the order , I want when order reach dollar 5
the E.A should open this order again with SL + TP . beside you can add that , when profit reach dollar 5 , the E.A should wait for the next
candle and to open the order.
Here I attach screen shot where E.A fail to open order
Thanks .
msophe
7 years ago #139508
hello tomas 262
I have fixed that problem , there was error you’re start with markets position and follow open P/L , so I make vice versa and it agreed .
Thanks .
msophe
7 years ago #139510
Hello Tomas262.
I have build E.A , and the condition is like this , I will open order manual , if i will open buy the e.a will open sell order immediately .
I have build this E.A withes condition, I build both long order and short order in one E.A , and when I attach to MT4 and open buy ,
the e.a open both buy and sell order ,for this problem I create independently buy E.A order and sell order E.A ,
I have attach these two E.A , can you help to put at one E.A
Beside i want the different of trailing stop and TS activation level.
Thanks ,
tomas262
7 years ago #139541
tomas262
7 years ago #139557
Hello,
just need to clarification about the rules:
1) as soon as you buy manually you want to open a opposite position?
2) do you need one EA or two separated EAs for long and short?
msophe
7 years ago #139569
msophe
7 years ago #139570
Hello tomas262
I have build E.A withes condition that :
I will enter order manual then E.A will open after reach dollar 0.9 but when profit reach dollar 0.9 the E.A should open to the next candle .
I try to figure out how to add the next candle in E.A but I fail , the thing I pass that , when profits reach dollar 0.9 it open the order , but
how to add to open to the next candle after reach dollar 0.9 for this I fail . So I need you’re help , .
I have attach my E.A here , to help how to add that candle ?
Thanks.
tomas262
7 years ago #139572
Do you mean you want to wait with opening another trade until next candle and not immediately?
msophe
7 years ago #139575
tomas262
7 years ago #139580
Ok, I will make an example for this
msophe
7 years ago #139584
ok, thanks ,am waiting your example .