// إشارات الدخول 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)
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.