// إشارات الدخول long_condition = close > fib_618 and rsi < rsi_overbought and macd_line > signal_line short_condition = close < fib_382 and rsi > rsi_oversold and macd_line < signal_line
// تحديد حد الربح ووقف الخسارة take_profit_percent = input(1.5, title="Take Profit (%)") / 100 stop_loss_percent = input(1.0, title="Stop Loss (%)") / 100
take_profit_long = close * (1 + take_profit_percent) stop_loss_long = close * (1 - stop_loss_percent)
take_profit_short = close * (1 - take_profit_percent) stop_loss_short = close * (1 + stop_loss_percent)
// رسم إشارات الدخول if (long_condition) label.new(bar_index, high, text="شراء 🟢", style=label.style_circle, color=color.green, textcolor=color.white) line.new(bar_index, close, bar_index + 20, take_profit_long, color=color.green, width=2) line.new(bar_index, close, bar_index + 20, stop_loss_long, color=color.red, width=2)
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.