Download MetaTrader 5

Experts: OrderManager

To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
MetaQuotes Software Corp.
Moderator
181061
MetaQuotes Software Corp. 2010.12.02 17:14 

OrderManager:

You can adjust SL/TP by dragging the lines drawn by the EA.

Author: zzuegg

karceWZROKIEM
12
karceWZROKIEM 2010.12.03 08:33  

mashup code...

               sl[j]=OrderStopLoss();
               tp[j]=OrderStopLoss();
zzuegg
1506
zzuegg 2010.12.03 09:58  
karcewzrokiem:

mashup code...

               sl[j]=OrderStopLoss();
               tp[j]=OrderStopLoss();

true, but works as expected anyway.
toddanderson
477
toddanderson 2010.12.03 16:05  
karcewzrokiem:

mashup code...

               sl[j]=OrderStopLoss();
               tp[j]=OrderStopLoss();


Thank you for this

would be nice to have a break even and partial lot close lines

cameo
476
cameo 2010.12.03 17:48  

same block as karcewzrokiem's

         ArrayResize(tickets,OpenOrdersOnSymbol);
         ArrayResize(tp,OpenOrdersOnSymbol);
         ArrayResize(tp,OpenOrdersOnSymbol);
nonetheless, great job!
MQL4 Comments
16319
MQL4 Comments 2010.12.04 08:22  

Hi!

It would be nice if it automatically at startup is to send a stop loss and send a take profit too .

How can I make this?


I think so..

Please, help me, Thanks.

PS: sorry my english..
zzuegg
1506
zzuegg 2010.12.05 23:29  
cameofx:

same block as karcewzrokiem's

         ArrayResize(tickets,OpenOrdersOnSymbol);
         ArrayResize(tp,OpenOrdersOnSymbol);
         ArrayResize(tp,OpenOrdersOnSymbol);
nonetheless, great job!

hm this i have not seen. strange that the ea works as expected anyways. i will update a corrected version.


Regarding the other wished features.


Partial Stops: no easy way to implement since all my ideas would require some input from the user to make shure everyone who uses partial stops gets the wished features.

Automatic SL/TP in the beginning: my stops are always adjusted to current market conditions, nearly every order has its specific stop positions. Maybe i implement this one because it has the advantage that on manuale opend market orders you can drag the sl/tp lines directly without previously setting values manually.


Stay tuned

Protege LCR
51
Protege LCR 2010.12.07 22:54  
plz where shd i place this file in the MT4 program
zzuegg
1506
zzuegg 2010.12.07 23:48  
salakosunday:
plz where shd i place this file in the MT4 program

MetaTraderFolder/experts


//z

rajiv mittal
151
rajiv mittal 2012.05.23 13:04  

No need to enter any value in ea,just drag and use

To add comments, please log in or register