Can anyone add alert to this indicator..PLEASE FRIENDS..!!!!

 

Hi guys,

you will do me a favor if you could add alert to this attached indicator, the indicator is known(Demark Trend Lines), it drows 2 trend lines on the chart

1-the upper red trend line (down trend)

2- the lower blue trend line (up trend)

we just need the indicator to give alert when a bar closed above the red trend line or below the blue trend line.(OR at least) give alert when the price penetrates any of those trend lines.

it is the second time i ask for help with this indicator, please FRIENDS don't disappoint me.

 

KH

I would have an EA or a separate indicator that called your existing one

If you put something like this into the start() function of a new EA or indicator that may be enough

double dUpperLine = iCustom(NULL, 0, "Demark_trendbluekbyiAngle_1", 0, 1) 

double dLowerLine = iCustom(NULL, 0, "Demark_trendbluekbyiAngle_1", 1, 1) 




   if(Close[1] > dUpperLine) 
        {
          Alert("Going Up");
          Print("Going Up");
          PlaySound("yankee doodle.wav");
        }

   if(Close[1] < dLowerLine )
        {
          Alert("Going Down");
          Print("Going Down");
          PlaySound("whistle dixie.wav");
        }

-BB-

 
BarrowBoy:

KH

I would have an EA or a separate indicator that called your existing one

If you put something like this into the start() function of a new EA or indicator that may be enough

-BB-


i have no idea about programming, would you please help BarrowBoy .
 
khalidhassan:

i have no idea about programming, would you please help BarrowBoy .


You have to have an idea - as this is a programming forum
If you dont want to code then this is not the place for you - other than to offer to hire someone...

-BB-

Reason: