Scripts: Script opening orders

 

Script opening orders:

Script opening orders with specified Magic Number

Author: Vladimir Khlystov

 

Hi,

Your script is good. I have been trying to write a script like this but it doesn't work.

Maybe you can help!!

When I open order, I will open 1, 2, 3 or 4 orders.

1 Order: Ord1, Lot=1, SL=70, TP=25

2 Orders: Ord1, Lot =0.5, SL=70, TP=25; Ord2, Lot =0.5, SL=70, TP=50

3 Orders: Ord1, Lot =0.3, SL=70, TP=25; Ord2, Lot =0.3, SL=70, TP=50; Ord3, Lot =0.3, SL=70, TP=75

4 Orders : Ord1, Lot =0.25, SL=70, TP=25; Ord2, Lot =0.25, SL=70, TP=50; Ord3, Lot =0.25, SL=70, TP=75; Ord4, Lot =0.25, SL=70, TP=0

Can the above script be modified to do the above steps. Variables are, Orders, Lot, SL and TP.

TQ

 
mrozali1:

Hi,

Your script is good. I have been trying to write a script like this but it doesn't work.

Maybe you can help!!

When I open order, I will open 1, 2, 3 or 4 orders.

1 Order: Ord1, Lot=1, SL=70, TP=25

2 Orders: Ord1, Lot =0.5, SL=70, TP=25; Ord2, Lot =0.5, SL=70, TP=50

3 Orders: Ord1, Lot =0.3, SL=70, TP=25; Ord2, Lot =0.3, SL=70, TP=50; Ord3, Lot =0.3, SL=70, TP=75

4 Orders : Ord1, Lot =0.25, SL=70, TP=25; Ord2, Lot =0.25, SL=70, TP=50; Ord3, Lot =0.25, SL=70, TP=75; Ord4, Lot =0.25, SL=70, TP=0

Can the above script be modified to do the above steps. Variables are, Orders, Lot, SL and TP.

TQ

 
THIS IS GREAT...THANK YOU !!!!!
 
mrozali1:
THIS IS GREAT...THANK YOU !!!!!

Glad to help! Ask! cmillion@narod.ru
 

Thank you

I search that for long time.

 

I was looking for something like this for some time. But sadly every time i'm trying to lunch the script i get error message 4109. I would be very grateful if can help me to solve the problem. Especially i'm interesting in the opening orders in different directions at the same time.

Best regards

Yegor

Reason: