Jump to content

REQ: Trend Line - Pip Move Alert


Recommended Posts

Hello,

iam sure that there exits some kind of Indicator, but my searches end in no succsess.

 

I'am looking for an Indicator (MT4) that Alerts me when an Move of an Certain Pip Range onccour.

 

So basicly a Trend line which marks me the high or low. if the Price move from that point an specific amount of Pips, it Alerts me by sound or email.

 

does anyone know such kind of Indicator?

 

Thank You

Link to comment
Share on other sites

Re: REQ: Trend Line - Pip Move Alert

 

Hello,

iam sure that there exits some kind of Indicator, but my searches end in no succsess.

 

I'am looking for an Indicator (MT4) that Alerts me when an Move of an Certain Pip Range onccour.

 

So basicly a Trend line which marks me the high or low. if the Price move from that point an specific amount of Pips, it Alerts me by sound or email.

 

does anyone know such kind of Indicator?

 

Thank You

 

Here

http://codebase.mql4.com/2954

you find an Alert indicator which pops a message or makes some noice when price passes trendlines, which you can drag and drop and any place of the chart. Have a great evening! :)

Link to comment
Share on other sites

Re: REQ: Trend Line - Pip Move Alert

 

You could use manually the Hline indicator with alert (below). Just place it as s/r as specify by you.

 

 

#property copyright "[email protected]"

#property link ""

 

#property indicator_chart_window

 

extern string LineName = "MyLine1";

extern color LineColor = AliceBlue;

extern int LineStyle = 0;

extern int AlertPipRange = 5;

extern string AlertWav = "alert.wav";

 

int init() {

return (0);

}

 

int deinit() {

return (0);

}

 

int start() {

int l_ind_counted_0 = IndicatorCounted();

ObjectCreate(LineName, OBJ_HLINE, 0, 0, Bid);

ObjectSet(LineName, OBJPROP_STYLE, LineStyle);

ObjectSet(LineName, OBJPROP_COLOR, LineColor);

double ld_4 = ObjectGet(LineName, OBJPROP_PRICE1);

if (Bid - AlertPipRange * Point <= ld_4 && Bid + AlertPipRange * Point >= ld_4) PlaySound(AlertWav);

return (0);

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...