Stochastic with Alert

Jajaofopobo

Trader
Sep 6, 2021
70
7
24
I don't think, I will get to this in the next few years, but if you have some specific questions on coding that change yourself, I can try helping you out.



Thank you so much; I roughed my way round it.

Another question: Is it possible for notifications, particularly phone alerts, to have an up or down indication in the terminal messages.
It will now be "The stochastic indicator trigged a buy signal" instead of "The stochastic indicator trigged a signal."
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,240
1,507
144
Odesa
www.earnforex.com
Thank you so much; I roughed my way round it.

Another question: Is it possible for notifications, particularly phone alerts, to have an up or down indication in the terminal messages.
It will now be "The stochastic indicator trigged a buy signal" instead of "The stochastic indicator trigged a signal."
You can work with this part of the code:
MQL4:
   if(Signal!=SIGNAL_NEUTRAL){     
      Text+="The Stochastic indicator triggered a signal";
   }
Signal variable can take also SIGNAL_BUY and SIGNAL_SELL values, and you can change the text depending on them.
 

Jajaofopobo

Trader
Sep 6, 2021
70
7
24
You can work with this part of the code:
MQL4:
   if(Signal!=SIGNAL_NEUTRAL){    
      Text+="The Stochastic indicator triggered a signal";
   }
Signal variable can take also SIGNAL_BUY and SIGNAL_SELL values, and you can change the text depending on them.
Thanks so much, Enivid. I have done it
 
  • 👍
Reactions: Enivid

dmo03

Trader
Jun 24, 2024
5
0
6
38
Excellent indicator.
Suggestion:
alert signal when => returns in the limits AND breaks out of the limits.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,240
1,507
144
Odesa
www.earnforex.com
Excellent indicator.
Suggestion:
alert signal when => returns in the limits AND breaks out of the limits.
Not sure that I understand you correctly. You want an alert when the stochastic returns to inside the limits and then breaks out on the next bar? If so, it will be quite a rare signal. If you mean "breaks out on any further bar" then it's just how it works now. Please explain more.
 

dmo03

Trader
Jun 24, 2024
5
0
6
38
Yes, issue an alert when stochastic returns within limits and issue another alert when it breaks the next bar, as in the example in the attached image.
Just one more observation: I couldn't quite understand how to configure a maximum number of alerts for the same event.

MQLTA-STOCHWA_1.jpg
 
Last edited:

Enivid

Administrator
Staff member
Nov 30, 2008
19,240
1,507
144
Odesa
www.earnforex.com
Yes, issue an alert when stochastic returns within limits and issue another alert when it breaks the next bar, as in the example in the attached image.
Just one more observation: I couldn't quite understand how to configure a maximum number of alerts for the same event.

View attachment 28516
It's not the next bar that it breaks out in the attached example.
 

dmo03

Trader
Jun 24, 2024
5
0
6
38
Forgive me, it would issue an alert when the stochastic returns within the limits and issue another alert when it breaks the limit again, as in the example in the image.
I'm currently able to do this, but I need to add the indicator twice with the two settings separately.
I apologize for the English, I'm using Google Translate :)
 
Last edited:

dmo03

Trader
Jun 24, 2024
5
0
6
38
Basically, it would be unifying the two options already available in the indicator.
 

Attachments

  • MQLTA-STOCHWA_2.jpg
    MQLTA-STOCHWA_2.jpg
    60 KB · Views: 3

Jaynaire

Trader
May 12, 2024
1
0
7
38
Thanks for creating this helpful indicator. Please how do I specify the currency pairs or instruments I want mobile alerts for?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,240
1,507
144
Odesa
www.earnforex.com
Thanks for creating this helpful indicator. Please how do I specify the currency pairs or instruments I want mobile alerts for?
The indicator will only issue alerts about the instrument it's attached to. So, all you have to do is to attach one instance to each of the currency pair you want to be alerted on. Make sure you configure the input parameters for the alerts on each instance too.
 

Biker883

Active Trader
Sep 19, 2014
3
2
34
Hello Team
Thank you for this great indicator
How is it possible to avoid the recurring alert after x min, I just want to receive one notification per alert
Thank you
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,240
1,507
144
Odesa
www.earnforex.com
Hello Team
Thank you for this great indicator
How is it possible to avoid the recurring alert after x min, I just want to receive one notification per alert
Thank you
You can set Candle To Use For Analysis to PREVIOUS CANDLE and it will alert you only once per candle when that candle finishes forming.
 

Biker883

Active Trader
Sep 19, 2014
3
2
34
You can set Candle To Use For Analysis to PREVIOUS CANDLE and it will alert you only once per candle when that candle finishes forming.
Hello Team
thank you for your reply
Unfortunately It doesn't work , I did set to previous candle but still receive notification every 5 min
1726594354320.png
 
  • ℹ️
Reactions: Enivid