Indicator question - Horizontal line description

 

Hello,

Does anyone know if there is function to automatically populate the horizontal line description?

I wrote an indicator to plot support and resistance lines based on extern manuially entered values.

My goal is to populate the horizontal line description with "Alert_0" so the alerter indicator is triggered

when proice touches the support or resistance lines.

Thanks,

J

 
jbfajkow:

Hello,

Does anyone know if there is function to automatically populate the horizontal line description?

I wrote an indicator to plot support and resistance lines based on extern manuially entered values.

My goal is to populate the horizontal line description with "Alert_0" so the alerter indicator is triggered

when proice touches the support or resistance lines.

Thanks,

J


Why not just throw in an if statement to check if Support/res is broken and pop an alert if it is?


So for ex with support..


if(Bid>=Support) Alert("SELL SELL SELL - Resistance reached!");