Download MetaTrader 5

Scripts: Script opening orders

To add comments, please log in or register
Sign up for MQL5.community to post your Forum topic
MetaQuotes Software Corp.
Moderator
181422
MetaQuotes Software Corp. 2010.05.17 08:14 

Script opening orders:

Script opening orders with specified Magic Number

Author: Vladimir Khlystov

MQL4 Comments
16319
MQL4 Comments 2010.05.25 01:53  

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

MQL4 Comments
16319
MQL4 Comments 2010.05.26 10:46  
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

MQL4 Comments
16319
MQL4 Comments 2010.05.26 10:47  
THIS IS GREAT...THANK YOU !!!!!
Vladimir Khlystov
11299
Vladimir Khlystov 2010.05.26 21:59  
mrozali1:
THIS IS GREAT...THANK YOU !!!!!

Glad to help! Ask! cmillion@narod.ru
MQL4 Comments
16319
MQL4 Comments 2010.09.30 20:31  

Thank you

I search that for long time.

MQL4 Comments
16319
MQL4 Comments 2011.05.01 12:43  

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

To add comments, please log in or register