One entry per BUY ORDER

 

Hi Guys,

HOw can I amend an EA so that it places only 1 order when the BUY conditions are met....no matter if the position is open for days or even months....at the moment my EA is opening another BUY order when the TP is reached...I want it to wait for the next signal...and not to open another BUY order....

Thanks

Babar

 

If you have a statement like this...

if Cond1 and Cond2 then buyatmarket...

then in the same code do this..

If cond1 and cond2 then

1. Buyat market

2. Cond1=false, cond2=false.

That will stop the buy orders being triggered.

Maji