MQL4 - automated forex trading   /  

Forum

Alert when order opend by money manager

Back to topics list To post a new topic, please log in or register

avatar
9
thelamden 2007.10.23 00:36 
I have an account traded by a money manager for me and i monitor the trades on my own computer, my question is;

can i write an indicator or script that would trigger an alert when a position is opened by the money manager?

I don't have too much experience with MQL but i am willing to learn, to my understanding it appears that it could be done by OrdersTotal() and trigger an alert when it changes (preferably only when it goes >).

I tried searching for similar posts but didn't find any, if you know of one please direct me

Thanks
article

Automated Trading Championship 2006 Has Begun

Both Participants and ourselves worked hard during these two months. Since now, nothing will depend on us or on expert developers, everything will be done automatically. We have just to watch the development of the Championship.


avatar
2462
phy 2007.10.23 01:56 

Create a new indicator, modify init and start sections as below for a bare bones indicator of change

init(){

int oldTotal = OrdersTotal();

}

start(){

if( oldTotal != OrdersTotal()) {

Alert("Trade Activity Occurred");

oldTotal = OrdersTotal();

}

return(0);

}


avatar
9
thelamden 2007.10.23 03:55 
Thank you "phy",

I need a little more help, where do i enter the sendmail? and how do i create different alerts for < or > orders (orders opened - orders closed) ?

is it also possible to notify if there where changes done to the TP or SL on an open order?

Thanks

avatar
2462
phy 2007.10.23 16:53 

"I don't have too much experience with MQL but i am willing to learn"

Give it a try, come back when you get stuck.

Back to topics list  

To add comments, please log in or register