OPEN-SOURCE SCRIPT
업데이트됨 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.
릴리즈 노트
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! 📈
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.