Indicators with alerts/signal - page 389

William Snyder
9492
William Snyder  
bebbbr:
Hi FOREX Friends....Can anyone please add one more email Alert to this indicator. What do I mean, is that possible to code this indicator to receive an email alert when RSI Preriod crosses Stochastic D Period, up or down? Thanks, thanks so lot.

Hi Bebbbr,

With this version you can use either or what i mean if alertsOnStoRsiSigCross = true then that will be your alert and if alertsOnStoRsiSigCross = false, then it will be the oversold overboght alert. If you want both maybe can use 2 instances of the indicator with alerts set differently.

William Snyder
9492
William Snyder  

These were asked for here

https://www.mql5.com/en/forum/173058

bebbbr
51
bebbbr  

Hi mrtools....thanks, thanks so lot

mrtools:
Hi Bebbbr, With this version you can use either or what i mean if alertsOnStoRsiSigCross = true then that will be your alert and if alertsOnStoRsiSigCross = false, then it will be the oversold overboght alert. If you want both maybe can use 2 instances of the indicator with alerts set differently.

Hi mrtools....thanks, thanks so lot for this awesome indicator, you can´t believe how you helped me. Thanks again.

michaelB
148
michaelB  

mrtools - rsx nrp T3 smoothed

Thank you for the quick response. I'll test the new version today.

ayan2030
350
ayan2030  
mrtools:
These were asked for here https://www.mql5.com/en/forum/173058

Hi mrtools!

Can you please also add arrows?

Roland Lebada
123
Roland Lebada  

Better Volume Indicator v1.5 with Sound and Email Alert

Hey Guys,

I would like some help with a very useful indicator which is good by itself but could be improved if a new feature would be added...

The new feature which I seek to be programmed would be this indicator with an option to have sound and email alert if the colors change

Thank you, this will help you as well as me to be notified in advance!

Files:
Joradan
6
Joradan  

Hi All,

I'm Jordan and new to this forum. I would like to take this opprotunity to thank the architect of this website and all those who participate in sharing..

Can anyone please add an Alert to this indicator?

endymion
69
endymion  

Alert to XO!!!

Would one of you very nice programmers add an alert to this wonderful indicator for me? Thanks in advance!!

I don't have the actual MQL4 source code for this one, but found the code online. I'm attaching only the ex4 here.

//+------------------------------------------------------------------+

//| XO.mq4 |

//| Original Author SHARIPOV AINUR |

//| Conversion to MT4 and modification only adoleh2000 |

//+------------------------------------------------------------------+

#property copyright "Copyright � 2005, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Lime //XO up

#property indicator_color2 Red //XO down

extern double KirPER=10;

double cb,valuel,valueh,CurrentBar;

double Kir ,Hi, Lo, KirUp, KirDn,mode,cnt,cnt1,cur,kr,no;

double ExtMapBuffer1[]; // XO up

double ExtMapBuffer2[]; // Xo down

int loopbegin;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

IndicatorBuffers(2);

//---- drawing settings

SetIndexBuffer(0,ExtMapBuffer1);//bbMacd line

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2);

SetIndexBuffer(1,ExtMapBuffer2);//Upperband line

SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2);

IndicatorShortName("XO ("+KirPER+"), "+valueh+","+valuel);

SetIndexLabel(0,"XO Up");

SetIndexLabel(1,"XO Down");

//---- indicators

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int limit;

int counted_bars=IndicatorCounted();

//---- check for possible errors

if(counted_bars<0) return(-1);

//---- last counted bar will be recounted

if(counted_bars>0) counted_bars--;

loopbegin = Bars-1;

for(int i = loopbegin; i >= 0; i--)

{

if (Kir<1)

{

Hi=Close;

Lo=Close;

Kir=1;

}

cur=(Close);

if (cur > (Hi+KirPER * Point))

{

Kir=Kir+1;

Hi=cur;

Lo=cur-KirPER*Point;

KirUp=1;

KirDn=0;

kr=kr+1;

no=0;

}

if (cur < (Lo-KirPER*Point))

{

Lo=cur;

Hi=cur+KirPER*Point;

KirUp=0;

KirDn=1;

Kir=Kir+1;

no=no+1;

kr=0;

}

valueh=kr;

ExtMapBuffer1=valueh;//XO up

if (valueh < 0)

{

ExtMapBuffer1 = 0;

}

if (valueh > 0)

{

ExtMapBuffer1 = 1;

}

valuel=0-no;

ExtMapBuffer2=valuel;// XO down

if (valuel > 0)

{

ExtMapBuffer2 = 0;

}

if (valuel < 0)

{

ExtMapBuffer2 = -1;

}

}

//----

return(0);

}

//+------------------------------------------------------------------+

Files:
xo.ex4 3 kb
William Snyder
9492
William Snyder  
endymion:
Would one of you very nice programmers add an alert to this wonderful indicator for me? Thanks in advance!!

I don't have the actual MQL4 source code for this one, but found the code online. I'm attaching only the ex4 here.

//+------------------------------------------------------------------+

//| XO.mq4 |

//| Original Author SHARIPOV AINUR |

//| Conversion to MT4 and modification only adoleh2000 |

//+------------------------------------------------------------------+

#property copyright "Copyright � 2005, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Lime //XO up

#property indicator_color2 Red //XO down

extern double KirPER=10;

double cb,valuel,valueh,CurrentBar;

double Kir ,Hi, Lo, KirUp, KirDn,mode,cnt,cnt1,cur,kr,no;

double ExtMapBuffer1[]; // XO up

double ExtMapBuffer2[]; // Xo down

int loopbegin;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

IndicatorBuffers(2);

//---- drawing settings

SetIndexBuffer(0,ExtMapBuffer1);//bbMacd line

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2);

SetIndexBuffer(1,ExtMapBuffer2);//Upperband line

SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2);

IndicatorShortName("XO ("+KirPER+"), "+valueh+","+valuel);

SetIndexLabel(0,"XO Up");

SetIndexLabel(1,"XO Down");

//---- indicators

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int limit;

int counted_bars=IndicatorCounted();

//---- check for possible errors

if(counted_bars<0) return(-1);

//---- last counted bar will be recounted

if(counted_bars>0) counted_bars--;

loopbegin = Bars-1;

for(int i = loopbegin; i >= 0; i--)

{

if (Kir<1)

{

Hi=Close;

Lo=Close;

Kir=1;

}

cur=(Close);

if (cur > (Hi+KirPER * Point))

{

Kir=Kir+1;

Hi=cur;

Lo=cur-KirPER*Point;

KirUp=1;

KirDn=0;

kr=kr+1;

no=0;

}

if (cur < (Lo-KirPER*Point))

{

Lo=cur;

Hi=cur+KirPER*Point;

KirUp=0;

KirDn=1;

Kir=Kir+1;

no=no+1;

kr=0;

}

valueh=kr;

ExtMapBuffer1=valueh;//XO up

if (valueh < 0)

{

ExtMapBuffer1 = 0;

}

if (valueh > 0)

{

ExtMapBuffer1 = 1;

}

valuel=0-no;

ExtMapBuffer2=valuel;// XO down

if (valuel > 0)

{

ExtMapBuffer2 = 0;

}

if (valuel < 0)

{

ExtMapBuffer2 = -1;

}

}

//----

return(0);

}

//+------------------------------------------------------------------+

Hi Endymion,

Think i posted this in this thread but couldn't find it, anyway here you go.

Files:
William Snyder
9492
William Snyder  
Joradan:
Hi All,

I'm Jordan and new to this forum. I would like to take this opprotunity to thank the architect of this website and all those who participate in sharing..

Can anyone please add an Alert to this indicator?

Hi Jordan,

Looks like there already an alert installed in this indicator.