// 📈 نمایش MACD و RSI در زیر چارت برای بررسی hline(70, "Overbought", color=color.red) hline(30, "Oversold", color=color.green) plot(rsi_value, title="RSI", color=color.blue)
// 🔥 سیگنالهای خرید و فروش (شرایط بهینهتر) buy_signal = ta.crossover(macd_line, signal_line) and rsi_value < 40 and close > ma_value sell_signal = ta.crossunder(macd_line, signal_line) and rsi_value > 60 and close < ma_value
// 🔔 نمایش سیگنالها در چارت plotshape(buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal") plotshape(sell_signal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal")
// 🔊 تنظیمات هشدار (Alert) alertcondition(buy_signal, title="Buy Alert", message="🔹 Buy Signal Detected!") alertcondition(sell_signal, title="Sell Alert", message="🔻 Sell Signal Detected!")
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. Você pode favoritá-lo para usá-lo em um gráfico.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.