help adding alert signal

 
can any one help me add alert signal on this indicator please
 
bewise:
can any one help me add alert signal on this indicator please

Ask specific questions.

 
gordon:

Ask specific questions.

want a arrow when it cross up and arrow when it cross down

 
bewise:

want a arrow when it cross up and arrow when it cross down

That's not a question.

 
how can i place arrows when the lines cross as an alert?

i don't know where in the argument

please help

if i add this to initialize it

extern int alert=0; // 0 for alerts 1 for no alerts
extern bool UseSendMail = true;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double b4zls,nowzls,nowzlsmain;

and add this to ini init()

//---- indicators
SetIndexStyle(0,DRAW_ARROW,EMPTY);
SetIndexArrow(0,233);
SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(1,DRAW_ARROW,EMPTY);
SetIndexArrow(1,234);
SetIndexBuffer(1, ExtMapBuffer2);
//----

Where do i place it in the argument

int start() {
if (Bars < g_bars_152) gi_160 = TRUE;
//PlaySound("falling-price-alert.wav");
if (Bars - g_bars_152 > 1) gi_160 = TRUE;
g_bars_152 = Bars;
if (gi_160)
//PlaySound("rising-price-alert.wav");
{
gi_156 = Bars - 1;
if (gi_156 < 0)

return (0);

gi_160 = FALSE;
}
gi_156++;
for (g_shift_140 = gi_156; g_shift_140 >= 0; g_shift_140--) {
gd_116 = 0.0 * iStochastic(NULL, timeframe, 52, 12, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140);
gd_108 = 0.0 * iStochastic(NULL, timeframe, 34, 8, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140);
gd_100 = iStochastic(NULL, timeframe, 21, 5, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140) / 10.0;
gd_92 = 0.65 * iStochastic(NULL, timeframe, 12, 4, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140);
gd_84 = iStochastic(NULL, timeframe, 8, 3, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140) / 4.0;
gd_124 = gd_84 + gd_92 + gd_100 + gd_108 + gd_116;
gd_132 = gd_124 / smoothing + (g_ibuf_168[g_shift_140 + 1]) * (smoothing - 1) / smoothing;
g_ibuf_164[g_shift_140] = gd_124;
g_ibuf_168[g_shift_140] = gd_132;
gi_156--;
}


return (0);
}
 
bewise:
how can i place arrows when the lines cross as an alert?

i don't know where in the argument

please help

if i add this to initialize it

extern int alert=0; // 0 for alerts 1 for no alerts
extern bool UseSendMail = true;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double b4zls,nowzls,nowzlsmain;

and add this to ini init()

//---- indicators
SetIndexStyle(0,DRAW_ARROW,EMPTY);
SetIndexArrow(0,233);
SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(1,DRAW_ARROW,EMPTY);
SetIndexArrow(1,234);
SetIndexBuffer(1, ExtMapBuffer2);
//----

Where do i place it in the argument

int start() {
if (Bars < g_bars_152) gi_160 = TRUE;
//PlaySound("falling-price-alert.wav");
if (Bars - g_bars_152 > 1) gi_160 = TRUE;
g_bars_152 = Bars;
if (gi_160)
//PlaySound("rising-price-alert.wav");
{
gi_156 = Bars - 1;
if (gi_156 < 0)

return (0);

gi_160 = FALSE;
}
gi_156++;
for (g_shift_140 = gi_156; g_shift_140 >= 0; g_shift_140--) {
gd_116 = 0.0 * iStochastic(NULL, timeframe, 52, 12, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140);
gd_108 = 0.0 * iStochastic(NULL, timeframe, 34, 8, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140);
gd_100 = iStochastic(NULL, timeframe, 21, 5, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140) / 10.0;
gd_92 = 0.65 * iStochastic(NULL, timeframe, 12, 4, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140);
gd_84 = iStochastic(NULL, timeframe, 8, 3, 3, MODE_LWMA, 0, MODE_MAIN, g_shift_140) / 4.0;
gd_124 = gd_84 + gd_92 + gd_100 + gd_108 + gd_116;
gd_132 = gd_124 / smoothing + (g_ibuf_168[g_shift_140 + 1]) * (smoothing - 1) / smoothing;
g_ibuf_164[g_shift_140] = gd_124;
g_ibuf_168[g_shift_140] = gd_132;
gi_156--;
}


return (0);
}


can any one help me with the above problem please

Reason: