ورود/ثبت‌نام

تحلیل تکنیکال seydkamal123 درباره نماد PUMP در تاریخ ۱۴۰۴/۵/۱۹

https://sahmeto.com/message/3696957
،تکنیکال،seydkamal123

// نسخه =5 استراتژی("تقاطع EMA + فیلتر RSI (خرید/فروش) — ساده", overlay=true، default_qty_type=strategy.percent_of_equity, default_qty_value=10, initial_capital=10000) // ======= ورودی‌ها (قابل تغییر) ======= fastLen = input.int(9, "طول EMA سریع") slowLen = input.int(21, "طول EMA کند") rsiLen = input.int(14, "طول RSI") rsiLongMin= input.int(45, "حداقل RSI برای خرید (فیلتر)") rsiShortMax= input.int(55, "حداکثر RSI برای فروش (فیلتر)") useShorts = input.bool(false,"مجوز فروش استقراضی؟ (اگر خاموش: فقط معاملات خرید در فروش بسته شوند)") atrLen = input.int(14, "طول ATR (برای حد ضرر)") atrMult = input.float(2.0,"ضریب ATR (برای حد ضرر)") takeProfitR = input.float(1.5, "حد سود (x ATR)", step=0.1) tradeSizePct = input.float(10, "اندازه موقعیت (% سرمایه)", step=0.1) // ======= اندیکاتورها ======= emaFast = ta.ema(close, fastLen) emaSlow = ta.ema(close, slowLen) rsiVal = ta.rsi(close, rsiLen) atrVal = ta.atr(atrLen) // نمایش EMA plot(emaFast, title="EMA سریع", linewidth=2) plot(emaSlow, title="EMA کند", linewidth=2) // ======= سیگنال‌ها ======= // سیگنال خرید: عبور EMA سریع از بالا به پایین EMA کند و RSI بالاتر از فیلتر longSignal = ta.crossover(emaFast, emaSlow) and (rsiVal >= rsiLongMin) // سیگنال فروش/فروش استقراضی: عبور EMA سریع از پایین به بالای EMA کند و RSI پایین‌تر از فیلتر shortSignal = ta.crossunder(emaFast, emaSlow) and (rsiVal <= rsiShortMax) // ======= ورود / خروج ======= // تعیین اندازه موقعیت strategy.risk.allow_entry_in(strategy.direction.long) strategy.risk.allow_entry_in(strategy.direction.short) strategy.order_info(true) strategy.exit_on_close(true) strategy.set_max_bars_back(math.max(fastLen, slowLen, rsiLen, atrLen)) // محاسبه سطوح قیمت حد ضرر و حد سود (مطلق) longStopPrice = close - atrVal * atrMult longTPPrice = close + atrVal * takeProfitR shortStopPrice = close + atrVal * atrMult shortTPPrice = close - atrVal * takeProfitR // مدیریت اندازه موقعیت strategy.risk.allow_entry_in(strategy.direction.long) strategy.risk.allow_entry_in(strategy.direction.short) strategy.order_info(true) strategy.entry("Long", strategy.long, qty_percent=tradeSizePct, when=longSignal) if useShorts strategy.entry("Short", strategy.short, qty_percent=tradeSizePct, when=shortSignal) else // اگر فروش استقراضی فعال نیست، سیگنال فروش فقط باعث بستن موقعیت خرید می‌شود if shortSignal strategy.close("Long", comment="CloseLong_on_ShortSignal") // خروج برای ورودها (فقط اگر موقعیت وجود داشته باشد) // اعمال TP/SL با strategy.exit (با ارجاع به ورود id) strategy.exit("Long_exit", from_entry="Long", stop=longStopPrice, limit=longTPPrice) if useShorts strategy.exit("Short_exit", from_entry="Short", stop=shortStopPrice, limit=shortTPPrice) // ======= نمایش بصری ======= plotshape(longSignal, title="سیگنال خرید", location=location.belowbar, color=color.new(color.green,0), style=shape.labelup, text="LONG") plotshape(shortSignal, title="سیگنال فروش/فروش استقراضی", location=location.abovebar, color=color.new(color.red,0), style=shape.labeldown, text="SELL") // پنل RSI rsiPlot = plot(rsiVal, title="RSI", display=display.none) // پنهان کردن در پنل قیمت h1 = hline(50, "RSI 50", color=color.gray, linestyle=hline.style_dotted) // ======= هشدارها ======= alertcondition(longSignal, title="سیگنال خرید", message="تقاطع EMA + RSI => LONG") alertcondition(shortSignal, title="سیگنال فروش", message="تقاطع EMA + RSI => SELL/SHORT") // ======= اطلاعات (نمایش برچسب کوچک) ======= var table info = table.new(position.bottom_right, 1, 1) if barstate.islast table.cell(info, 0, 0, text="EMA: " + str.tostring(fastLen) + "/" + str.tostring(slowLen) + " RSI:" + str.tostring(rsiLen) + " ATRx:" + str.tostring(atrMult), text_color=color.white, bgcolor=color.new(color.blue,60))

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 ساعت
قیمت لحظه انتشار:
‎$۰٫۰۰۳۱۱۶۷
اشتراک گذاری
نماد برگزیده
برترین تریدر‌
دنبال شده
هشدار