Script to open Buy Stop/Sell Stop

jong  

Hi,

 

 Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed?

 

Like for example:

 

1. Buy Order has just been executed via instant order or pending order. Script will run to have Sell Stop Order below the recent Buy open position.

   Executed Buy open position AUD/USD : 0.7860 an EA will run to set up Stop Order at 0.7800 (manageable via input parameter).

 

And vice versa

2.  Sell Order has just been exceuted via instant order or pending order. Script will run to have Buy Stop Order above the recent Sell open position.

   Sell open position AUD/USD : 0.7850 an EA will run to set up Buy Order at 0.7890.

Input requirement

Pip interval between the price executed in BUY/SELL open position.

Take Profit

Stop loss

thank you.

 

 

Regards,

 

Jong 

mql4student  
jong:

Hi,

 

 Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed?

 

Like for example:

 

1. Buy Order has just been executed via instant order or pending order. Script will run to have Sell Stop Order below the recent Buy open position.

   Executed Buy open position AUD/USD : 0.7860 an EA will run to set up Stop Order at 0.7800 (manageable via input parameter).

 

And vice versa

2.  Sell Order has just been exceuted via instant order or pending order. Script will run to have Buy Stop Order above the recent Sell open position.

   Sell open position AUD/USD : 0.7850 an EA will run to set up Buy Order at 0.7890.

Input requirement

Pip interval between the price executed in BUY/SELL open position.

Take Profit

Stop loss

thank you.

 

 

Regards,

 

Jong 

did you ever find that script?
Billy Angdijaya  
jong:

Hi,

 

 Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed?

 

Like for example:

 

1. Buy Order has just been executed via instant order or pending order. Script will run to have Sell Stop Order below the recent Buy open position.

   Executed Buy open position AUD/USD : 0.7860 an EA will run to set up Stop Order at 0.7800 (manageable via input parameter).

 

And vice versa

2.  Sell Order has just been exceuted via instant order or pending order. Script will run to have Buy Stop Order above the recent Sell open position.

   Sell open position AUD/USD : 0.7850 an EA will run to set up Buy Order at 0.7890.

Input requirement

Pip interval between the price executed in BUY/SELL open position.

Take Profit

Stop loss

thank you.

 

 

Regards,

 

Jong 

just create it. it's simple script.
Biantoro Kunarto  
jong:

Hi,

 

 Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed?

 

Like for example:

 

1. Buy Order has just been executed via instant order or pending order. Script will run to have Sell Stop Order below the recent Buy open position.

   Executed Buy open position AUD/USD : 0.7860 an EA will run to set up Stop Order at 0.7800 (manageable via input parameter).

 

And vice versa

2.  Sell Order has just been exceuted via instant order or pending order. Script will run to have Buy Stop Order above the recent Sell open position.

   Sell open position AUD/USD : 0.7850 an EA will run to set up Buy Order at 0.7890.

Input requirement

Pip interval between the price executed in BUY/SELL open position.

Take Profit

Stop loss

thank you.

 

 

Regards,

 

Jong 

Please check this script
Files:
Giovanni Gutierrez  
that script is exactly what i was looking for, thank you so much biantoro
Michael Maggi  
In Codebase there is a scripts collection for any type of exit you can think of. The whole collection is free.  Search Codebase tab and they all come up.
falaco  
Biantoro Kunarto:
Please check this script
Is it available for MT5? 
rassa  

Can you please convert this script into EA ?

hoanduc  
Biantoro Kunarto:
Please check this script
You can adjust: double pending order volume
Reason: