// 📈 نمایش 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. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.
هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.