PROTECTED SOURCE SCRIPT
BTC EMA by Ciclos - Bruno Moscan

Long-Term Market Cycles & Trend FilterOverviewThis indicator is a comprehensive tool designed for macro analysis, specifically optimized for high-timeframe assets like Bitcoin (Weekly chart). It identifies major market shifts (Bull/Bear cycles) using specialized moving averages based on median price (
HL2$) and provides tactical entry signals using a filtered Stochastic oscillator.The core philosophy of this script is that price action eventually reverts to the "General Mean" (Mediana), and the most reliable trade opportunities occur when momentum aligns with the macro trend.Key Features1. Macro Cycle Crosses (383 & 1050 Periods)The script tracks the relationship between a Short-term (383) and a Long-term (1050) Moving Average.Bull Market Signal: Triggered when the 383 MA crosses above the 1050 MA. A green triangle and a "Bull" tag will appear.Bear Market Signal: Triggered when the 383 MA crosses below the 1050 MA. A red triangle and a "Bear" tag will appear.2. The Mediana (717 Period)Rendered as a thick blue line, this 717-period average represents the general equilibrium of the market. It serves as a visual "gravity" point where prices often return after extreme extensions.3. Smart Trade Alerts (Filtered Stochastic)Unlike standard oscillators that provide too many false signals, this script uses a Trend Filter based on the Mediana (717 MA):TRADE LONG: Appears when the Stochastic is oversold (< 10) AND the price is above the 717 Blue Line. This captures pullbacks in an uptrend.TRADE SHORT: Appears when the Stochastic is overbought (> 90) AND the price is below the 717 Blue Line. This captures relief rallies in a downtrend.How to Use ItBest Timeframe: Weekly (W) or Daily (D).Assets: Ideally suited for Bitcoin (
BTC$) or major indices with long-standing price history.Strategy: Use the Bull/Bear tags to determine the overall portfolio bias. Use the Trade Long/Short labels for tactical entries or de-risking points within those larger cycles.Settings & CustomizationYou can fully customize the periods for all averages, the colors, and the Stochastic sensitivity in the Inputs tab to suit your specific strategy or backtesting results.DisclaimerThis indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always use proper risk management.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.