ema_gks
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © workrisewr

//@version=5
indicator("ema gks", overlay=true)
r = ta.ema(close, 9)
shortema = ta.ema(close, 9)
longema = ta.ema(close, 13)
xUp = ta.crossover(shortema, longema)
xDn = ta.crossunder(shortema, longema)
if xUp
    alert("Go long (EMA is " + str.tostring(r, "#.00)"))
else if xDn
    alert("Go short (RSI is " + str.tostring(r, "#.00)"))

plotchar(xUp, "Go Long",  "▲", location.belowbar , color.lime, size = size.tiny)
plotchar(xDn, "Go Short", "▼", location.abovebar,    color.red,  size = size.tiny)
plot (shortema)
plot (longema, color=color.green)
