Technical analysis by msk9536 about Symbol BTC on 3/21/2025

//version=5strategy("Astro Crypto Bot - Galactic Gains", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)// Inputsema_short_period = input.int(9, "Short EMA Period", minval=1)ema_long_period = input.int(21, "Long EMA Period", minval=1)rsi_period = input.int(14, "RSI Period", minval=1)rsi_overbought = input.int(70, "RSI Overbought", minval=1, maxval=100)rsi_oversold = input.int(30, "RSI Oversold", minval=1, maxval=100)macd_fast = input.int(12, "MACD Fast Length", minval=1)macd_slow = input.int(26, "MACD Slow Length", minval=1)macd_signal = input.int(9, "MACD Signal Length", minval=1)supertrend_period = input.int(10, "SuperTrend Period", minval=1)supertrend_mult = input.float(3, "SuperTrend Multiplier", minval=0.1, maxval=10)bb_period = input.int(20, "Bollinger Bands Period", minval=1)bb_dev = input.float(2, "Bollinger Bands Deviation", minval=0.1)atr_period = input.int(14, "ATR Period", minval=1)atr_mult = input.float(2, "ATR Multiplier for SL", minval=0.1)volume_period = input.int(20, "Volume MA Period", minval=1)// Astrology Inputslunar_cycle = 28 // Moon cycle in daystime_cycle_short = 12 // Mercury/Jupiter proxylunar_window = input.int(2, "Lunar Event Window (days)", minval=1, maxval=5)// Calculations// EMAema_short = ta.ema(close, ema_short_period)ema_long = ta.ema(close, ema_long_period)// RSIrsi = 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)// ATRatr = ta.atr(atr_period)// Volume MAvolume_ma = ta.sma(volume, volume_period)// Fibonacci Levelslookback = 50highest_high = ta.highest(high, lookback)lowest_low = ta.lowest(low, lookback)fib_382 = lowest_low + (highest_high - lowest_low) * 0.382fib_618 = lowest_low + (highest_high - lowest_low) * 0.618// Astrology-Inspired Calculations// Lunar Phase Simulation (28-day cycle, simplified)bar_index_day = math.floor(time / (1000 * 60 * 60 * 24)) // Convert timestamp to dayslunar_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_windowlunar_boost = is_new_moon or is_full_moon ? 1 : 0 // Boost signal near lunar events// Time Cycle Momentumcycle_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// Mercury Retrograde Proxy (High Volatility Filter)atr_spike = atr > ta.sma(atr, 10) * 1.5avoid_retrograde = not atr_spike// Conditions// Long Entry: Technicals + Lunar Boost + Astro Trend + No Retrogradelong_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 Entry: Technicals + Lunar Boost + Astro Trend + No Retrogradeshort_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// Exit Conditionslong_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_stopshort_exit = ta.crossover(ema_short, ema_long) or rsi < rsi_oversold or close > short_stop// Strategy Executionif (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")// Plottingplot(ema_short, color=color.blue, title="EMA Short")plot(ema_long, color=color.red, title="EMA Long")plot(supertrend, color=color.purple, title="SuperTrend")plot(bb_upper, color=color.gray, title="BB Upper")plot(bb_lower, color=color.gray, title="BB Lower")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="New Moon")plotshape(is_full_moon, style=shape.triangledown, location=location.abovebar, color=color.red, title="Full Moon")