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 DO NOT OPEN ORDER AFTER CLOSE

22 replies

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

10 years ago #115651

HI

 

THE FIRST .

 

I have build E.A with condition that , when it attach to MT4 it open order automatically , I have build 2 E.A with one is buy

 

only and the second is sell only , so when attach in mt4 one of that, it open order automatically with o ready set TP & SL .

 

The problem I have is that : when E.A close the order it open order again and again until to come to remove E.A .

 

I want to help , when E.A close the order should not open the order unless I attach again to the MT4 .

 

    AND SECOND ,

 

I want to help how to hide stop loss pips and take profit pips from broker.

 

I have attach my working here.

 

Thanks.

 

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #139714

Hello,

 

I have modified your example. You need to add a variable which after a trade is initiated will be set to 1. Trade is only opened if this variable is set to its original value (=0). The variable remains set to 1 until the EA is removed and applied to a chart again.

I have also included the hidden stop functionality where the stop-loss exit is determined when a position is having open loss greater than 20 pips. 

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

10 years ago #139720

Hello

 

many many thanks , I really appreciate your help

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

10 years ago #139988

HI

 

I have build another E.A , and when I try to add variable of ”order already placed = 0” it fail to activate this variable, the main problems is

 

that ; when E.A open the order and close, it open order again, so I want to set , when E.A open the order and close, should not open the

 

order again unless I set again to open order. I need your help , like the above example was show me . I attach my working progress here,

 

I need your help to finish this project .

 

Thanks

 

 

 

 

 

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #139995

Hello,

 

sure, I will check your project and let you know

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

10 years ago #139999

HELLO

 

OK, Am waiting for your reply .

 

Thanks

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #140042

Hello

 

Am still waiting your reply .

 

Thanks .

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #140044

Hello,

 

you can simply add the variable “order already placed = 0″ into the trading conditions. Have a look at the project attached

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #140077

Hello

 

Thanks for your reply , but when I attach to MT4 it not open any order . Can yo know what the problems it faces.

 

Thanks.

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #140090

Hello,

 

ok, I will check it

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #140092

ok

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #140113

Hello,

 

the problem seems to be with the first tab – Open PL In Money > Number. 

When you attach the EA to a clean chart this condition will never be valid so EA won’t place any trades at all.

I can create an example you need but you need to provide enough details for me to complete it

 
 

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #140135

HELLO

 

I set in first tab of Open PL In Money > Number because I will open order manual and when profit reaches dollar 0.8 , the E.A will open the order in the next

 

candle with the same position .

 

ok , thanks

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #140155

hello

 

I have o ready explain above ,  what i need to be this E.A.

 

Am waiting your example to finish this project.

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #140169

Hello,

 

ok, this will trade only once with your existing long/short position

0

msophe

Subscriber, bbp_participant, community, 127 replies.

Visit profile

9 years ago #140171

HELLO

 

I try to attached it open the order but it not close the order , and when i try to remove hide SL & PT and put SL & PT it open and

 

suddenly it close and when it open , it doesn’t show in a chart SL & PT.

 

I have attach here. So how this it be difficult E.A.

 

 

 

0

Viewing 15 replies - 1 through 15 (of 22 total)

1 2 →