OPEN-SOURCE SCRIPT
ALT Risk Strategy with Fear & Greed + ISM PMI

📊 Overview
This advanced crypto trading strategy combines multiple macro indicators to identify optimal buy and sell zones for altcoins. It tracks the relationship between altcoin performance versus Bitcoin (ALT/BTC pairs) while incorporating broader market sentiment and economic data to generate risk-adjusted entry and exit signals.
🎯 Core Methodology
Base Risk Metric (65% weight):
MACD Momentum (5%): Normalized trend strength on weekly ALT/BTC pair
RSI (60%): Relative strength indicating overbought/oversold conditions
Price Deviation (35%): Distance from 150-period moving average
Fear & Greed Index (20% weight):
Analyzes market sentiment using multiple factors:
Price momentum and rate of return
Money flow and volume analysis
Volatility metrics (crypto: BVOL24H, traditional: VIX)
Dominance indicators (crypto: BTC.D, traditional: Gold)
Two modes: Crypto-focused or Traditional markets
Customizable smoothing and weighting
US ISM PMI Integration (15% weight):
Manufacturing economic indicator (contraction vs expansion)
PMI < 50 = Economic weakness = Better crypto buying opportunities
PMI > 50 = Economic strength = Risk-on environment
Configurable offset to lead/lag the signal
Daily data smoothed over customizable period
💰 Trading Logic
Tiered Buy System:
Level 1 (Risk < 70): Initial entry with conservative amount
Level 2 (Risk < 50): Double down as risk decreases
Level 3 (Risk < 30): Maximum accumulation at extreme lows
All purchases customizable by dollar amount
Tiered Sell System:
Level 1 (Risk > 70): Take partial profits (default 25%)
Level 2 (Risk > 85): Continue scaling out (default 35%)
Level 3 (Risk > 100): Final exit (default 40%)
Sells reset when new buys occur (can re-accumulate)
⚙️ Key Features
Multi-Asset Support: ETH, SOL, ADA, LINK, UNI, XRP, DOGE, AVAX, MATIC, RENDER, or custom
Exchange Selection: Works with Binance, Coinbase, Kraken, Bitfinex, Bybit
3Commas Integration: Optional webhook alerts for automated bot trading
Visual Risk Zones: Color-coded indicator (green/lime/yellow/orange/red/maroon)
Real-time Info Table: Displays current risk metric, F&G index, PMI value, weights, and position status
Flexible Weighting: Adjust influence of each component (Base/F&G/PMI)
Weekly Timeframe: Reduces noise and focuses on macro trends
📈 Use Cases
DCA Strategy: Dollar-cost averaging with intelligent timing
Swing Trading: Catching major market cycles (weeks to months)
Risk Management: Exit before major downturns, enter during fear
Macro Trading: Align crypto positions with economic conditions
Bot Automation: Connect to 3Commas for hands-free execution
🎓 Credits & Attribution
Original Concept & Base Risk Metric:
Inspired by community-developed ALT/BTC risk oscillators
Fear & Greed methodology adapted from crypto market sentiment research
Enhancements & Integration:
ISM PMI integration and weighting system
Multi-indicator combination framework
Tiered buy/sell logic with reset mechanism
3Commas webhook integration
Development:
Primary Development: Claude AI (Anthropic)
Collaboration & Testing: User feedback and iteration
Pine Script Implementation: TradingView v5
⚠️ Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Cryptocurrency trading involves substantial risk of loss. Always conduct your own research and consider your risk tolerance before trading. The strategy uses lagging indicators (weekly timeframe) which may not react quickly to sudden market changes.
🔧 Recommended Settings
For better performance than default conservative settings:
Increase buy amounts: Try $50/$75/$100 for more meaningful positions
Adjust thresholds: Consider 40/60/80 for more frequent entries
Test different weights: Experiment with F&G and PMI influence
Optimize for your asset: Different cryptos may require different parameters
Version: 1.0
Last Updated: December 2025
Compatible With: TradingView Pine Script v5
This advanced crypto trading strategy combines multiple macro indicators to identify optimal buy and sell zones for altcoins. It tracks the relationship between altcoin performance versus Bitcoin (ALT/BTC pairs) while incorporating broader market sentiment and economic data to generate risk-adjusted entry and exit signals.
🎯 Core Methodology
Base Risk Metric (65% weight):
MACD Momentum (5%): Normalized trend strength on weekly ALT/BTC pair
RSI (60%): Relative strength indicating overbought/oversold conditions
Price Deviation (35%): Distance from 150-period moving average
Fear & Greed Index (20% weight):
Analyzes market sentiment using multiple factors:
Price momentum and rate of return
Money flow and volume analysis
Volatility metrics (crypto: BVOL24H, traditional: VIX)
Dominance indicators (crypto: BTC.D, traditional: Gold)
Two modes: Crypto-focused or Traditional markets
Customizable smoothing and weighting
US ISM PMI Integration (15% weight):
Manufacturing economic indicator (contraction vs expansion)
PMI < 50 = Economic weakness = Better crypto buying opportunities
PMI > 50 = Economic strength = Risk-on environment
Configurable offset to lead/lag the signal
Daily data smoothed over customizable period
💰 Trading Logic
Tiered Buy System:
Level 1 (Risk < 70): Initial entry with conservative amount
Level 2 (Risk < 50): Double down as risk decreases
Level 3 (Risk < 30): Maximum accumulation at extreme lows
All purchases customizable by dollar amount
Tiered Sell System:
Level 1 (Risk > 70): Take partial profits (default 25%)
Level 2 (Risk > 85): Continue scaling out (default 35%)
Level 3 (Risk > 100): Final exit (default 40%)
Sells reset when new buys occur (can re-accumulate)
⚙️ Key Features
Multi-Asset Support: ETH, SOL, ADA, LINK, UNI, XRP, DOGE, AVAX, MATIC, RENDER, or custom
Exchange Selection: Works with Binance, Coinbase, Kraken, Bitfinex, Bybit
3Commas Integration: Optional webhook alerts for automated bot trading
Visual Risk Zones: Color-coded indicator (green/lime/yellow/orange/red/maroon)
Real-time Info Table: Displays current risk metric, F&G index, PMI value, weights, and position status
Flexible Weighting: Adjust influence of each component (Base/F&G/PMI)
Weekly Timeframe: Reduces noise and focuses on macro trends
📈 Use Cases
DCA Strategy: Dollar-cost averaging with intelligent timing
Swing Trading: Catching major market cycles (weeks to months)
Risk Management: Exit before major downturns, enter during fear
Macro Trading: Align crypto positions with economic conditions
Bot Automation: Connect to 3Commas for hands-free execution
🎓 Credits & Attribution
Original Concept & Base Risk Metric:
Inspired by community-developed ALT/BTC risk oscillators
Fear & Greed methodology adapted from crypto market sentiment research
Enhancements & Integration:
ISM PMI integration and weighting system
Multi-indicator combination framework
Tiered buy/sell logic with reset mechanism
3Commas webhook integration
Development:
Primary Development: Claude AI (Anthropic)
Collaboration & Testing: User feedback and iteration
Pine Script Implementation: TradingView v5
⚠️ Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Cryptocurrency trading involves substantial risk of loss. Always conduct your own research and consider your risk tolerance before trading. The strategy uses lagging indicators (weekly timeframe) which may not react quickly to sudden market changes.
🔧 Recommended Settings
For better performance than default conservative settings:
Increase buy amounts: Try $50/$75/$100 for more meaningful positions
Adjust thresholds: Consider 40/60/80 for more frequent entries
Test different weights: Experiment with F&G and PMI influence
Optimize for your asset: Different cryptos may require different parameters
Version: 1.0
Last Updated: December 2025
Compatible With: TradingView Pine Script v5
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.