Jump to content
Sign in to follow this  
ScandanaviaDover

Adding Alerts

Recommended Posts

Hi,
I'm trying to add alerts to a line indicator. When it turns white it should read possible trend change, blue for buy and gold for sell. Its kinder working but is giving alerts every so often. How can i reduce the number of alerts, not every candle stick but like every 2 to five ins or so.

How can I achieve this effectively?
 

Share this post


Link to post
Share on other sites

valc[] is a color buffer for the indicator's line. If you want alerts on the color change than you have to checking that the current valc value is different from the previous one instead of checking the atr[] buffer, which you don't need at all.

Share this post


Link to post
Share on other sites

Thanks for the response. I have done some changes but I'm still not getting the desired result. This one is a challenge to me. Its also still giving an alert very often.

Share this post


Link to post
Share on other sites

Those checks for EMPTY_VALUE make no sense. You need to check whether the value of valc[] on the preceding candle was the same as it is now.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

Footer title

This is an example of a list.

Footer title

This content can be configured within your theme settings in your ACP. You can add any HTML including images, paragraphs and lists.

Footer title

This content can be configured within your theme settings in your ACP. You can add any HTML including images, paragraphs and lists.

×
×
  • Create New...