OPEN-SOURCE SCRIPT
Hash Ratings Engine

Hash Ratings Engine - Technical Consensus Strategy
A systematic trading strategy that harnesses TradingView's Technical Ratings to generate high-conviction entries with institutional-grade risk management.
What It Does
This strategy aggregates the consensus of 26+ technical indicators (RSI, MACD, Stochastics, multiple Moving Averages, etc.) into a single actionable signal. When enough indicators align bullish or bearish, the engine triggers an entry. Built-in trend filtering and ATR-based exits keep you on the right side of the market.
Key Features
Trend Filter - Only takes longs in uptrends, shorts in downtrends. This single filter typically improves results by 20-40% by avoiding counter-trend trades.
ATR-Based Risk Management - Stop loss and trailing stops adapt to current market volatility. Tight stops in calm markets, wider stops in volatile conditions.
Cooldown System - After a losing trade, the strategy waits before re-entering. This prevents the consecutive loss streaks that destroy accounts.
Clean Visuals - Fluorescent entry/exit signals with price level references. See exactly where you got in and out.
Settings Guide
Indicator Timeframe: Leave blank for current chart. Use higher timeframe for fewer, higher-quality signals.
Rating Source: "All" for balanced approach. "MAs" for trend-following. "Oscillators" for mean-reversion.
Entry Thresholds
Strong Signal Threshold: Higher = fewer trades but better conviction. Start at 0.5, test 0.4-0.6.
Risk Management
ATR Period: 12 is responsive, 14 is standard, 20+ is smoother.
Stop Loss: 2-3x ATR for tight stops, 3.5-4x for moderate, 5x+ for wide.
Trail Activation: How far price must move in profit before trailing begins.
Trail Offset: How closely the trail follows price.
Trend Filter
EMA Length: 150 works well on 4H charts. Use 100 for lower timeframes, 200 for daily.
Trade Timing
Cooldown: Keep enabled. 5 bars is a good starting point.
Best Practices
Start with default settings and backtest on your preferred instrument. Adjust the Strong Signal Threshold first - this has the biggest impact on trade frequency. Then tune the EMA length to match your timeframe. Finally, optimize the ATR multipliers for your risk tolerance.
Works on any liquid market - crypto, forex, stocks, futures. Higher timeframes (4H, Daily) tend to produce cleaner signals than lower timeframes.
Disclaimer
Past performance does not guarantee future results. Always backtest thoroughly and use proper position sizing. This strategy is for educational purposes - trade at your own risk.
A systematic trading strategy that harnesses TradingView's Technical Ratings to generate high-conviction entries with institutional-grade risk management.
What It Does
This strategy aggregates the consensus of 26+ technical indicators (RSI, MACD, Stochastics, multiple Moving Averages, etc.) into a single actionable signal. When enough indicators align bullish or bearish, the engine triggers an entry. Built-in trend filtering and ATR-based exits keep you on the right side of the market.
Key Features
Trend Filter - Only takes longs in uptrends, shorts in downtrends. This single filter typically improves results by 20-40% by avoiding counter-trend trades.
ATR-Based Risk Management - Stop loss and trailing stops adapt to current market volatility. Tight stops in calm markets, wider stops in volatile conditions.
Cooldown System - After a losing trade, the strategy waits before re-entering. This prevents the consecutive loss streaks that destroy accounts.
Clean Visuals - Fluorescent entry/exit signals with price level references. See exactly where you got in and out.
Settings Guide
Indicator Timeframe: Leave blank for current chart. Use higher timeframe for fewer, higher-quality signals.
Rating Source: "All" for balanced approach. "MAs" for trend-following. "Oscillators" for mean-reversion.
Entry Thresholds
Strong Signal Threshold: Higher = fewer trades but better conviction. Start at 0.5, test 0.4-0.6.
Risk Management
ATR Period: 12 is responsive, 14 is standard, 20+ is smoother.
Stop Loss: 2-3x ATR for tight stops, 3.5-4x for moderate, 5x+ for wide.
Trail Activation: How far price must move in profit before trailing begins.
Trail Offset: How closely the trail follows price.
Trend Filter
EMA Length: 150 works well on 4H charts. Use 100 for lower timeframes, 200 for daily.
Trade Timing
Cooldown: Keep enabled. 5 bars is a good starting point.
Best Practices
Start with default settings and backtest on your preferred instrument. Adjust the Strong Signal Threshold first - this has the biggest impact on trade frequency. Then tune the EMA length to match your timeframe. Finally, optimize the ATR multipliers for your risk tolerance.
Works on any liquid market - crypto, forex, stocks, futures. Higher timeframes (4H, Daily) tend to produce cleaner signals than lower timeframes.
Disclaimer
Past performance does not guarantee future results. Always backtest thoroughly and use proper position sizing. This strategy is for educational purposes - trade at your own risk.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Quant research firm developing proprietary indicators, trading automation, and risk frameworks for digital & macro markets.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Quant research firm developing proprietary indicators, trading automation, and risk frameworks for digital & macro markets.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.