Download MetaTrader 5

Scripts: Script opening orders

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
192546
MetaQuotes Software Corp.  

Script opening orders:

Script opening orders with specified Magic Number

Author: Vladimir Khlystov

MQL4 Comments
16316
MQL4 Comments  

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
16316
MQL4 Comments  
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
16316
MQL4 Comments  
THIS IS GREAT...THANK YOU !!!!!
Vladimir Khlystov
15435
Vladimir Khlystov  
mrozali1:
THIS IS GREAT...THANK YOU !!!!!

Glad to help! Ask! cmillion@narod.ru
MQL4 Comments
16316
MQL4 Comments  

Thank you

I search that for long time.

MQL4 Comments
16316
MQL4 Comments  

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