msk9536
@t_msk9536
Ne tavsiye etmek istersiniz?
önceki makale
پیام های تریدر
filtre
sinyal türü

//version=5 استراتژی("ربات کریپتوی آسترو - سودهای کهکشانی", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100) // ورودیها sema_short_period = input.int(9, "دوره EMA کوتاه", minval=1) ema_long_period = input.int(21, "دوره EMA بلند", minval=1) rsi_period = input.int(14, "دوره RSI", minval=1) rsi_overbought = input.int(70, "RSI اشباع خرید", minval=1, maxval=100) rsi_oversold = input.int(30, "RSI اشباع فروش", minval=1, maxval=100) macd_fast = input.int(12, "طول سریع MACD", minval=1) macd_slow = input.int(26, "طول کند MACD", minval=1) macd_signal = input.int(9, "طول سیگنال MACD", minval=1) supertrend_period = input.int(10, "دوره SuperTrend", minval=1) supertrend_mult = input.float(3, "ضریب SuperTrend", minval=0.1, maxval=10) bb_period = input.int(20, "دوره Bollinger Bands", minval=1) bb_dev = input.float(2, "انحراف Bollinger Bands", minval=0.1) atr_period = input.int(14, "دوره ATR", minval=1) atr_mult = input.float(2, "ضریب ATR برای SL", minval=0.1) volume_period = input.int(20, "دوره MA حجم", minval=1) // ورودیهای نجومی lunar_cycle = 28 // چرخه ماه بر حسب روز time_cycle_short = 12 // پروکسی عطارد/مشتری lunar_window = input.int(2, "پنجره رویداد قمری (روز)", minval=1, maxval=5) // محاسبات // EMA ema_short = ta.ema(close, ema_short_period) ema_long = ta.ema(close, ema_long_period) // RSI rsi = ta.rsi(close, rsi_period) // MACD [macd_line, signal_line, _] = ta.macd(close, macd_fast, macd_slow, macd_signal) // SuperTrend [supertrend, direction] = ta.supertrend(supertrend_mult, supertrend_period) // Bollinger Bands [bb_upper, bb_middle, bb_lower] = ta.bb(close, bb_period, bb_dev) // ATR atr = ta.atr(atr_period) // Volume MA volume_ma = ta.sma(volume, volume_period) // سطوح فیبوناچی lookback = 50 highest_high = ta.highest(high, lookback) lowest_low = ta.lowest(low, lookback) fib_382 = lowest_low + (highest_high - lowest_low) * 0.382 fib_618 = lowest_low + (highest_high - lowest_low) * 0.618 // محاسبات الهام گرفته از نجوم // شبیهسازی فاز ماه (چرخه 28 روزه، ساده شده) bar_index_day = math.floor(time / (1000 * 60 * 60 * 24)) // تبدیل تایم استمپ به روز lunar_phase = math.mod(bar_index_day, lunar_cycle) is_new_moon = lunar_phase <= lunar_window or lunar_phase >= (lunar_cycle - lunar_window) is_full_moon = math.abs(lunar_phase - lunar_cycle / 2) <= lunar_window lunar_boost = is_new_moon or is_full_moon ? 1 : 0 // تقویت سیگنال نزدیک رویدادهای قمری // مومنتوم چرخه زمانی cycle_momentum_short = ta.momentum(close, time_cycle_short) cycle_momentum_long = ta.momentum(close, lunar_cycle) astro_trend = cycle_momentum_short > 0 and cycle_momentum_long > 0 ? 1 : cycle_momentum_short < 0 and cycle_momentum_long < 0 ? -1 : 0 // پروکسی برگشت عطارد (فیلتر نوسانات بالا) atr_spike = atr > ta.sma(atr, 10) * 1.5 avoid_retrograde = not atr_spike // شرایط // ورود خرید: تکنیکالها + تقویت قمری + روند نجومی + عدم برگشت long_condition = ta.crossover(ema_short, ema_long) and rsi < rsi_overbought and macd_line > signal_line and direction < 0 and close > bb_middle and volume > volume_ma and close > fib_382 and lunar_boost and astro_trend >= 0 and avoid_retrograde // ورود فروش: تکنیکالها + تقویت قمری + روند نجومی + عدم برگشت short_condition = ta.crossunder(ema_short, ema_long) and rsi > rsi_oversold and macd_line < signal_line and direction > 0 and close < bb_middle and volume > volume_ma and close < fib_618 and lunar_boost and astro_trend <= 0 and avoid_retrograde // شرایط خروج long_stop = close - (atr * atr_mult) short_stop = close + (atr * atr_mult) long_exit = ta.crossunder(ema_short, ema_long) or rsi > rsi_overbought or close < long_stop short_exit = ta.crossover(ema_short, ema_long) or rsi < rsi_oversold or close > short_stop // اجرای استراتژی if (long_condition) strategy.entry("Long", strategy.long) strategy.exit("Long Exit", "Long", stop=long_stop) if (short_condition) strategy.entry("Short", strategy.short) strategy.exit("Short Exit", "Short", stop=short_stop) if (long_exit) strategy.close("Long") if (short_exit) strategy.close("Short") // رسم نمودار plot(ema_short, color=color.blue, title="EMA کوتاه") plot(ema_long, color=color.red, title="EMA بلند") plot(supertrend, color=color.purple, title="SuperTrend") plot(bb_upper, color=color.gray, title="باند بالایی بولینگر") plot(bb_lower, color=color.gray, title="باند پایینی بولینگر") plot(fib_382, color=color.yellow, title="Fib 0.382") plot(fib_618, color=color.yellow, title="Fib 0.618") plotshape(is_new_moon, style=shape.triangleup, location=location.belowbar, color=color.green, title="ماه نو") plotshape(is_full_moon, style=shape.triangledown, location=location.abovebar, color=color.red, title="ماه کامل")
Sorumluluk Reddi
Sahmeto'nun web sitesinde ve resmi iletişim kanallarında yer alan herhangi bir içerik ve materyal, kişisel görüşlerin ve analizlerin bir derlemesidir ve bağlayıcı değildir. Borsa ve kripto para piyasasına alım, satım, giriş veya çıkış için herhangi bir tavsiye oluşturmazlar. Ayrıca, web sitesinde ve kanallarda yer alan tüm haberler ve analizler, yalnızca resmi ve gayri resmi yerli ve yabancı kaynaklardan yeniden yayınlanan bilgilerdir ve söz konusu içeriğin kullanıcılarının materyallerin orijinalliğini ve doğruluğunu takip etmekten ve sağlamaktan sorumlu olduğu açıktır. Bu nedenle, sorumluluk reddedilirken, sermaye piyasası ve kripto para piyasasındaki herhangi bir karar verme, eylem ve olası kar ve zarar sorumluluğunun yatırımcıya ait olduğu beyan edilir.