Download MetaTrader 5

How to add alert for multiple indicator on separate indicator window?

To add comments, please log in or register
Franzkekko
41
Franzkekko  

Hi traders!

I was trying to code an alert that popup when an indicator in the separate indicator window crosses a level of an other indicator in the same window.

In example...there are indicators like TSI (true Strength Index) that do not have fixed maximum and minimum: if you add in the same window  an indicator like Stochastic or RSI you can show fixed levels such as 30 and 70... How can I code an alert to popup when TSI crosses those levels? =)

Where can I read some documentation about this situation? Or is there someone with some tips&tricks to share? =)

Thanks in advance!

Franzkekko 

Mladen Rakic
70982
Mladen Rakic  
Franzkekko:

Hi traders!

I was trying to code an alert that popup when an indicator in the separate indicator window crosses a level of an other indicator in the same window.

In example...there are indicators like TSI (true Strength Index) that do not have fixed maximum and minimum: if you add in the same window  an indicator like Stochastic or RSI you can show fixed levels such as 30 and 70... How can I code an alert to popup when TSI crosses those levels? =)

Where can I read some documentation about this situation? Or is there someone with some tips&tricks to share? =)

Thanks in advance!

Franzkekko 

They do not have the same range of values at all - it would be like comparing apples to pears. You can not combine the indicators that way
Franzkekko
41
Franzkekko  
Mladen Rakic:
That would be completely useless (they do not have the same range of values at all). It would be like comparing apples to pears. You can not combine the indicators that way

that's your opinion.... on my sy stem it perfetcly works =( 

I just want to fix levels on an indicator with free ranges. RVI on front and an indicator with null color on background. Only levels set on 30 and 70.
Is there any way to alert when the first indicartor crosses the other one's levels?

 

Mladen Rakic
70982
Mladen Rakic  
Franzkekko:

that's your opinion.... on my sy stem it perfetcly works =( 

I just want to fix levels on an indicator with free ranges. RVI on front and an indicator with null color on background. Only levels set on 30 and 70.
Is there any way to alert when the first indicartor crosses the other one's levels?

 

Does it (work) :)

Oh well, I have seen stranger things in my life ... Happy trading  ...
Jack Thomas
1725
Jack Thomas  
I was trying to code an alert that popup when an indicator in the separate indicator window crosses a level of an other indicator in the same window.
Alert()
https://www.mql5.com/en/docs/common/alert

In example...there are indicators like TSI (true Strength Index) that do not have fixed maximum and minimum:
if you add in the same window  an indicator like Stochastic or RSI you can show fixed levels such as 30 and 70...
How can I code an alert to popup when TSI crosses those levels? =)
iCustom()

https://www.mql5.com/en/docs/indicators/icustom


iStochastic()
https://www.mql5.com/en/docs/indicators/istochastic


Where can I read some documentation about this situation? Or is there someone with some tips&tricks to share? =)
Documentation
https://www.mql5.com/en/docs

You're welcome.


- Jack
i
Documentation on MQL5: Common Functions / Alert
Documentation on MQL5: Common Functions / Alert
  • www.mql5.com
Common Functions / Alert - Reference on algorithmic/automated trading language for MetaTrader 5
Franzkekko
41
Franzkekko  
Jack Thomas:
I was trying to code an alert that popup when an indicator in the separate indicator window crosses a level of an other indicator in the same window.
Alert()
https://www.mql5.com/en/docs/common/alert

In example...there are indicators like TSI (true Strength Index) that do not have fixed maximum and minimum:
if you add in the same window  an indicator like Stochastic or RSI you can show fixed levels such as 30 and 70...
How can I code an alert to popup when TSI crosses those levels? =)
iCustom()

https://www.mql5.com/en/docs/indicators/icustom


iStochastic()
https://www.mql5.com/en/docs/indicators/istochastic


Where can I read some documentation about this situation? Or is there someone with some tips&tricks to share? =)
Documentation
https://www.mql5.com/en/docs

You're welcome.


- Jack
https://www.mql5.com/en/users/smarterai

Thank you Jack, I read the documentation but it's not helping me =( I already did an alert that work with indicators in the indicator_chart_window...
May be I'll have to check deeper in the web =(

Thanks anyway

Alain Verleyen
Moderator
29859
Alain Verleyen  
Franzkekko:

that's your opinion.... on my sy stem it perfetcly works =( 

I just want to fix levels on an indicator with free ranges. RVI on front and an indicator with null color on background. Only levels set on 30 and 70.
Is there any way to alert when the first indicartor crosses the other one's levels?

 

What Mladen said is not an opinion, it's facts.

Technically all is possible, but that doesn't mean it has any sense from a trading point of view. 

Franzkekko
41
Franzkekko  
Alain Verleyen:

What Mladen said is not an opinion, it's facts.

Technically all is possible, but that doesn't mean it has any sense from a trading point of view. 

no way
honest_knave
Moderator
2342
honest_knave  

I'm not going to get into the discussion about whether it makes any sense, lest we spin off onto another tangent of pixel stop losses ;-)

Figure out the y values of 30% and 70% of the subwindow's height.

Use ChartXYtoTimePrice() to find out the "price" at 30% and 70% 

Check your indicator values to see if they have crossed those values.

Mladen Rakic
70982
Mladen Rakic  
honest_knave:

I'm not going to get into the discussion about whether it makes any sense, lest we spin off onto another tangent of pixel stop losses ;-)

Figure out the y values of 30% and 70% of the subwindow's height.

Use ChartXYtoTimePrice() to find out the "price" at 30% and 70% 

Check your indicator values to see if they have crossed those values.

I am sensing a secret agenda in this post :)

You must have got the patent for the pixel ATM. :):):)
honest_knave
Moderator
2342
honest_knave  
Mladen Rakic:
I am sensing a secret agenda in this post :)

You must have got the patent for the pixel ATM. :):):)
12
To add comments, please log in or register