Wavetrend Alert on TOS


Category:
0
0

Hi pete,

This is my code for wavetrend. I did not find  previous Discussion about this indicator on your website.
could you please help me to create a alert for me.

If the red dot plotted below the green line means it is an uptrend. if it is plot above the green line then it is a down trend. Could you please write a script to alert me whenever it plots above the green line and below the green line.
Screen shot and code attached
Thanks in advance.

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on September 9, 2021 12:41 pm
96 views
0
Private answer

Add the following two lines of code to your chart study:

Alert(wt1_1 > wt2_1, "WaveTrend Bullish", Alert.BAR, Sound.RING);
Alert(wt1_1 < wt2_1, "WaveTrend Bearish", Alert.BAR, Sound.RING);

Please note that you specifically requested to be alerted for each bar in which the green line is above the red dotted line and for each bar in which the green line is below the red line. You did not request to be alerted for the signals that are included with the code. So these alerts will trigger for every single bar on the chart.

Because I am quite certain you did not intend to request that solution I will also provide the solution that most users will actually want:

Alert(Signal, "WaveTrend Bullish", Alert.BAR, Sound.RING);
Alert(Signal2_ < wt2_1, "WaveTrend Bearish", Alert.BAR, Sound.RING);

Marked as spam
Posted by (Questions: 37, Answers: 4086)
Answered on September 9, 2021 2:47 pm
0
Thankyou so much for sending the alert code. Actually i dont want to alert for each bar. I just want to get alert whenever if the bar change from above the green line to below the green line (One alert) and below the green line to above the green line (one alert). so it should repeat the alert whenever the trend changes. I have attached the image for your reference. so if i use below code will it work like that? Alert(Signal, "WaveTrend Bullish", Alert.BAR, Sound.RING); Alert(Signal2_ < wt2_1, "WaveTrend Bearish", Alert.BAR, Sound.RING);
( at September 9, 2021 7:30 pm)
0
The second section of code is the one that matches the signal arrows that display on your chart.
( at September 9, 2021 7:35 pm)
0
That alert works Perfect. Thanks a bunch. If i add it in Chart alert as a study under condition wizard it is not showing under condition setup. How to add that to sms alert?
( at September 10, 2021 8:15 am)
0
That would require numerous modifications to your code and is beyond the scope of solutions I can provide free of charge in the Q&A Forum.
( at September 10, 2021 10:43 am)