// Signal shartlari var string signal = na var label buyLabel = na var label sellLabel = na var label exitLabel = na
if (rsi < RSI_Buy_Level and close > ema and close > lowLiquidity) signal := "Buy" label.delete(buyLabel) buyLabel := label.new(bar_index, close, "Buy", style=label.style_label_down, color=color.green) alert("Buy signali topildi!", alert.freq_once_per_bar)
if (rsi > RSI_Sell_Level and close < ema and close < highLiquidity) signal := "Sell" label.delete(sellLabel) sellLabel := label.new(bar_index, close, "Sell", style=label.style_label_up, color=color.red) alert("Sell signali topildi!", alert.freq_once_per_bar)
if ((close < ema and signal == "Buy") or (close > ema and signal == "Sell")) label.delete(exitLabel) exitLabel := label.new(bar_index, close, "Exit", style=label.style_label_down, color=color.yellow) alert("Exit signali topildi!", alert.freq_once_per_bar)