OPEN-SOURCE SCRIPT
Zaktualizowano BTC Averages Strategy - Long & Short

strategy to sell and buy witht he crossing of two moving averages, one fast and other slow. THere is also a long average that works as a filter.
Informacje o Wersji
Welcome to the BTC Triple SMA Trend Tracker, a robust, fully automated trend-following strategy designed to capture sustained market moves while filtering out the noise. Originally optimized for Bitcoin, this script utilizes a triple Simple Moving Average (SMA) system to align short-term momentum entries with the higher timeframe macro trend.Whether you are looking to ride the bull runs or capitalize on bear market drops, this strategy executes both Long and Short positions with clear, systematic rules.
🧠 How It Works
This strategy relies on three customizable Simple Moving Averages:
Fast MA (Default: 3): Tracks immediate price action and momentum.
Slow MA (Default: 48): Acts as the baseline for our momentum crossovers.
Trend MA (Default: 168): The macro filter. It determines the overall market regime (Bullish vs. Bearish).
Tip: If used on a 1-Hour chart, the defaults perfectly represent a 3-hour fast line, a 2-day slow line, and a 1-week macro trend!
⚙️ Trading Rules
🟢 Going Long:
Entry: The Fast MA crosses above the Slow MA AND the current closing price is above the Macro Trend MA.
Exit: The Fast MA crosses back below the Slow MA.
🔴 Going Short:
Entry: The Fast MA crosses below the Slow MA AND the current closing price is below the Macro Trend MA.
Exit: The Fast MA crosses back above the Slow MA.
📊 Visual Features
To make chart reading effortless, this script includes:
Clean MA Plots: Blue (Fast), Orange (Slow), and a thick White line (Macro Trend).
Dynamic Backgrounds: The chart background automatically paints a soft green when the price is above the Trend MA (Bull Regime) and soft red when below (Bear Regime), keeping you instantly aware of the broader market context.
🛠 Backtesting Ready
This script is built as a strategy() with realistic default parameters for backtesting:
Initial Capital: $10,000
Position Size: 99% of Equity (compounding)
Commission: 0.05% (Standard crypto exchange maker/taker fee)
*** Author's Note: Feel free to adjust the inputs in the settings menu to fit different timeframes or assets! If you find this strategy useful, drop a like and let me know your favorite settings in the comments. Happy trading! 📈
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.