Need help with aler on WPR%

Dec 15, 2020
2
0
6
52
Hi there,

I read through the alert thread but did not know the spot to put the alert in my wpr% indicator. I am a newbie anyway, but I attached the image of when the alert should occur after the closed price. Help will be greatly appreciated thank you in advance.
 

Attachments

Dec 15, 2020
2
0
6
52
It's a Level alert type from the tutorial. The alert condition code should be inserted right before this line in the OnCalculate() function:
MQL5:
//--- return new prev_calculated value
I got this error

*I am trying to see how I can make it alert when it crosses -75 from below =buy: alert sell when it crosses -25 from above =Sell.
* alert when it crosses -25 from below =buy: alert sell when it crosses -75 from above =Sell.
from
 

Attachments