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

 

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 

 
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
 
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?

 

 
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  ...
 
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
 
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

 
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. 

 
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
 

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.

 
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. :):):)
 
Mladen Rakic:
I am sensing a secret agenda in this post :)

You must have got the patent for the pixel ATM. :):):)
Reason: