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