script calls

 

Hello.

I have a basic question in mq4 scripting.

I have already a script that creates a Pending position with S/L.

Now when that pending position goes active entry into the market,

I would like to call the same script again, for a new Pending

with the same criteria (new entry price same pending distance).

I like to program myself, so please offer me some friendly hints.

/Bengt in sunny Halland, Sweden



 

For this you need to make an EA out of the script,

You can re-use the currect code from the script.

Add a check for current open pending order, and if there is none open, open a new one.