Need help with aler on WPR%

Dec 15, 2020
2
0
6
55
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

  • WPR.mq5
    8.3 KB · Views: 11
  • WPR IMAGE SAMPLE.JPG
    WPR IMAGE SAMPLE.JPG
    32.1 KB · Views: 14
Dec 15, 2020
2
0
6
55
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

  • WPR IMAGE ERRORR.JPG
    WPR IMAGE ERRORR.JPG
    140.9 KB · Views: 2