ورود

ثبت نام

خانه >

تحلیل ها >

هوش مصنوعی

هوش مصنوعی

CaptAviator

analysis_chart
مشخصات معامله

قیمت در زمان انتشار:

۶۵,۵۰۸.۷۵

توضیحات
//@version=5
indicator("مشاور حرفه‌ای معاملات - بازه روزانه", shorttitle="مشاور معامله‌گری حرفه‌ای", overlay=true, timeframe="D")

// ورودی پارامترها
fast_length = input.int(9, "EMA سریع", group="Moving Averages")
slow_length = input.int(21, "EMA آهسته", group="Moving Averages")
signal_length = input.int(14, "طول سیگنال RSI", group="RSI Settings")
rsi_overbought = input.int(70, "RSI بیش‌خرید", group="RSI Settings")
rsi_oversold = input.int(30, "RSI اشباع فروش", group="RSI Settings")
atr_period = input.int(14, "دوره ATR", group="Risk Management")
risk_reward = input.float(2.0, "نسبت ریسک/سود", group="Risk Management")
show_signals = input.bool(true, "نمایش سیگنال‌های خرید/فروش", group="Display")
show_levels = input.bool(true, "نمایش سطوح TP/SL", group="Display")

// محاسبه شاخص‌ها
ema_fast = ta.ema(close, fast_length)
ema_slow = ta.ema(close, slow_length)
rsi = ta.rsi(close, signal_length)
atr = ta.atr(atr_period)

// تحلیل حجم
volume_sma = ta.sma(volume, 20)
high_volume = volume > volume_sma * 1.5

// MACD برای تأیید
= ta.macd(close, 12, 26, 9)
macd_histogram = macd_line - signal_line

// سطوح پشتیبانی و مقاومت
pivot_high = ta.pivothigh(high, 5, 5)
pivot_low = ta.pivotlow(low, 5, 5)

// تشخیص روند
trend_up = ema_fast > ema_slow and close > ema_fast
trend_down = ema_fast < ema_slow and close < ema_fast

// شرایط خرید
buy_condition1 = ta.crossover(ema_fast, ema_slow) and rsi < 50
buy_condition2 = rsi < rsi_oversold and ta.crossunder(rsi, rsi_oversold) and trend_up
buy_condition3 = macd_histogram > 0 and ta.cross(macd_line, signal_line) and close > ema_slow
buy_signal = (buy_condition1 or buy_condition2 or buy_condition3) and high_volume

// شرایط فروش
sell_condition1 = ta.crossunder(ema_fast, ema_slow) and rsi > 50
sell_condition2 = rsi > rsi_overbought and ta.cross(rsi, rsi_overbought) and trend_down
sell_condition3 = macd_histogram < 0 and ta.crossunder(macd_line, signal_line) and close < ema_slow
sell_signal = (sell_condition1 or sell_condition2 or sell_condition3) and high_volume

// محاسبه TP و SL
long_sl = close - (atr * 1.5)
long_tp = close + (atr * 1.5 * risk_reward)
short_sl = close + (atr * 1.5)
short_tp = close - (atr * 1.5 * risk_reward)

// نمودار EMAها
plot(ema_fast, color=color.blue, linewidth=2, title="EMA سریع")
plot(ema_slow, color=color.red, linewidth=2, title="EMA آهسته")

// سیگنال‌های خرید/فروش
if show_signals and buy_signal
label.new(bar_index, low, "خرید\nTP: " + str.tostring(math.round_to_mintick(long_tp)) +
"\nSL: " + str.tostring(math.round_to_mintick(long_sl)),
color=color.green, textcolor=color.white, style=label.style_label_up, size=size.small)
// سطوح TP/SL
if show_levels
line.new(bar_index, long_tp, bar_index+5, long_tp, color=color.green, width=1, style=line.style_dashed)
line.new(bar_index, long_sl, bar_index+5, long_sl, color=color.red, width=1, style=line.style_dashed)

if show_signals and sell_signal
label.new(bar_index, high, "فروش\nTP: " + str.tostring(math.round_to_mintick(short_tp)) +
"\nSL: " + str.tostring(math.round_to_mintick(short_sl)),
color=color.red, textcolor=color.white, style=label.style_label_down, size=size.small)
// سطوح TP/SL
if show_levels
line.new(bar_index, short_tp, bar_index+5, short_tp, color=color.green, width=1, style=line.style_dashed)
line.new(bar_index, short_sl, bar_index+5, short_sl, color=color.red, width=1, style=line.style_dashed)

// نقاط پیوت
plotshape(pivot_high, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.tiny)
plotshape(pivot_low, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny)

// رنگ پس‌زمینه برای روند
bgcolor(trend_up ? color.new(color.green, 95) : trend_down ? color.new(color.red, 95) : na)

// شرایط هشدار
alertcondition(buy_signal, title="Buy Signal", message="Buy signal generated with TP {{close}}")
alertcondition(sell_signal, title="Sell Signal", message="Sell signal generated with TP {{close}}")

// جدول اطلاعات سیگنال فعلی
if barstate.islast
var table info_table = table.new(position.top_right, 2, 4, bgcolor=color.white, border_width=1)

signal_text = buy_signal ? "BUY" : sell_signal ? "SELL" : "WAIT"
signal_color = buy_signal ? color.green : sell_signal ? color.red : color.gray

table.cell(info_table, 0, 0, "سیگنال", text_color=color.black)
table.cell(info_table, 1, 0, signal_text, text_color=signal_color)

table.cell(info_table, 0, 1, "RSI", text_color=color.black)
table.cell(info_table, 1, 1, str.tostring(math.round(rsi, 2)), text_color=color.black)

table.cell(info_table, 0, 2, "روند", text_color=color.black)
table.cell(info_table, 1, 2, trend_up ? "UP" : trend_down ? "DOWN" : "NEUTRAL",
text_color=trend_up ? color.green : trend_down ? color.red : color.gray)

table.cell(info_table, 0, 3, "ATR", text_color=color.black)
table.cell(info_table, 1, 3, str.tostring(math.round(atr, 2)), text_color=color.black)

آخرین تحلیل‌های undefined

خلاصه تحلیل ها
مشاهده بیشتر
تحلیل هوشمند چارت BTCUSDT
صعودی

تحلیل هوشمند چارت BTCUSDT

در این نمودار، بازار در روند نزولی قرار دارد و قیمت زیر خطوط مقاومت قرار گرفته است، اما نشانه‌هایی از بهبود و افزایش قیمت دیده می‌شود. سیگنال‌های خرید...

کاربر بدون نام-image

کاربر بدون نام

5 دقیقه قبل

منتخب سردبیر

مشاهده بیشتر

دستیار هوشمند ارز دیجیتال

ترمینال ترید بایتیکل نرم‌افزار جامع ترید و سرمایه‌گذاری در بازار ارز دیجیتال است و امکاناتی مانند دوره‌های آموزشی ترید و سرمایه‌گذاری، تریدینگ ویو بدون محدودیت، هوش مصنوعی استراتژی ساز ترید، کلیه داده‌‌های بازارهای مالی شامل داده‌های اقتصاد کلان، تحلیل احساسات بازار، تکنیکال و آنچین، اتصال و مدیریت حساب صرافی‌ها و تحلیل‌های لحظه‌ای را برای کاربران فراهم می‌کند.

دستیار هوشمند ارز دیجیتال
دستیار هوشمند ارز دیجیتال