READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

HOW TO SET E.A TO OPEN ORDER

20 replies

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 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 .

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #139590

Hello,

 

you can do it by adding to variable to execute long/short trades and also add IsBarOpen = true check. See the modified project

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #139600

hello .

 

thanks for your example ,

 

But when attach to mt4 ,it’s not open to the next candle , but it open to the current candle when profits reach dollar 0.9 .

 

so can you look more what the problem ?

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #139619

Hello Tomas 262

 

many many thanks ,am real appreciate your help .

 

your build e.a as I want .

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #139643

Hello,

 

this way you can setup how many bars to wait. I have added a new variable called “BarsToWait” by default set to 1.

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #139708

many many Thanks.

0

Viewing 5 replies - 16 through 20 (of 20 total)

1 2