Hello everyone, I would like to create an alert that is triggered under certain conditions:
I'm using the RSI and the EMA, but the EMA is not on the chart, it's in the bottom box on the RSI. I also created an indicator myself that shows certain percentage lines.
indicator(title="Short and Long Indicator")
length = input( 14 )
price = close
vrsi = plot(pine_rsi(close, 7)) (maybe this is a source of error)
plot(90, title = "Short Line", color = red, transp = 70, linewidth = 2)
plot(80, title = "Line at 80", color = white, transp = 70, linewidth = 2)
plot(70, title = "Line at 70", color = white, transp = 70, linewidth = 2)
plot(50, title = "Line at 50", color = white, transp = 70, linewidth = 2)
plot(30, title = "Line at 30", color = white, transp = 70, linewidth = 2)
plot(20, title = "Line at 20", color = white, transp = 70, linewidth = 2)
plot(10, title = "Long Line", color = red, transp = 70, linewidth = 2)
plot(vrsi, title = "RSI", color=aqua, linewidth = 2)
plot(close)
(This indicator doesn't always work, there must be a bug ;) )
Regarding my question: The alarm should be triggered when the EMA crosses the RSI upwards from the "short line" (for a short position). The same applies to the long line and the long position.
The problem is that even simple alerts with the EMA indicator don't work!
Is it possible to create such an alarm?
Thank you for your effort and I hope you can help me.
Many greetings