Trio Combined Signal By{GoX}//@version=5
indicator("Trio Combined Signal By{GoX}", overlay=true)
rsiLength = input.int(14, title="RSI Length")
rsiSource = input.source(close, title="RSI Source")
rsiValue = ta.rsi(rsiSource, rsiLength)
rsiSignal = ta.sma(rsiValue, 9) // RSI-based moving average
n1 = input.int(10, title="WT Channel Length")
n2 = input.int(21, title="WT Average Length")
ap = hlc3
esa = ta.ema(ap, n1)
d = ta.ema(math.abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
wt1 = ta.ema(ci, n2)
wt2 = ta.sma(wt1, 4)
= ta.macd(close, 12, 26, 9)
rsiBuy = rsiValue > rsiSignal
rsiSell = rsiValue < rsiSignal
rsiState = rsiBuy ? "BUY" : rsiSell ? "SELL" : "Neutral"
rsiBgColor = rsiBuy ? color.green : rsiSell ? color.red : color.gray
wtBuy = wt1 > wt2
wtSell = wt1 < wt2
wtState = wtBuy ? "BUY" : wtSell ? "SELL" : "Neutral"
wtBgColor = wtBuy ? color.green : wtSell ? color.red : color.gray
macdBuy = macdLine > signalLine
macdSell = macdLine < signalLine
macdState = macdBuy ? "BUY" : macdSell ? "SELL" : "Neutral"
macdBgColor = macdBuy ? color.green : macdSell ? color.red : color.gray
combinedBuy = rsiBuy and wtBuy and macdBuy
combinedSell = rsiSell and wtSell and macdSell
combinedSignalText = combinedBuy ? "BUY" : combinedSell ? "SELL" : "Neutral"
combinedSignalColor = combinedBuy ? color.green : combinedSell ? color.red : color.gray
combinedSignalBgColor = combinedBuy ? color.green : combinedSell ? color.red : color.gray
var table signalTable = table.new(position.top_right, 3, 2, border_width=1, bgcolor=color.black)
table.cell(signalTable, 0, 0, "RSI", text_color=color.white, bgcolor=color.gray)
table.cell(signalTable, 1, 0, "Wave Trend", text_color=color.white, bgcolor=color.gray)
table.cell(signalTable, 2, 0, "MACD", text_color=color.white, bgcolor=color.gray)
table.cell(signalTable, 0, 1, rsiState, text_color=color.white, bgcolor=rsiBgColor)
table.cell(signalTable, 1, 1, wtState, text_color=color.white, bgcolor=wtBgColor)
table.cell(signalTable, 2, 1, macdState, text_color=color.white, bgcolor=macdBgColor)
var table generalSignalTable = table.new(position.bottom_right, 1, 1, border_width=2, bgcolor=color.black)
table.cell(generalSignalTable, 0, 0, combinedSignalText, text_color=color.white, bgcolor=combinedSignalColor, text_size=size.large)
alertcondition(rsiBuy and wtBuy, title="RSI + WT BUY Signal", message="RSI and Wave Trend are both giving BUY signals!")
alertcondition(rsiSell and wtSell, title="RSI + WT SELL Signal", message="RSI and Wave Trend are both giving SELL signals!")
alertcondition(combinedBuy, title="General BUY Signal", message="General BUY signal! RSI, Wave Trend, and MACD are all giving BUY signals.")
alertcondition(combinedSell, title="General SELL Signal", message="General SELL signal! RSI, Wave Trend, and MACD are all giving SELL signals.")
This indicator
It generates buy and sell signals with the approval of RSI, Wave Trend and MACD indicators.
If you want, just with RSI+WT ..
if you want
You can generate buy and sell signals with all three indicators. At the top right of the screen, it shows the latest status of all three indicators in the period you want to see. At the bottom right you will see a general buy or sell signal. If two indicators are positive and one is negative, it produces a neutral signal.
----------------------
Bu indikatör
RSI,Wawe Trend ve MACD indikatörlerinin onayı ile al sat sinyalleri üretir.
İsterseniz sadece RSI+WT ile ..
isterseniz
her üç indikatör ile al sat sinyalleri üretebilirsiniz. ekranın sağ üst kısmında her üç indikatörün son durumunu görmek istediğiniz periyotta gösterir. sağ altta ise genel bir al veya sat sinyali görürsünüz . iki indikatör pozitif biri negatif ise nötr sinyali üretir.