PROTECTED SOURCE SCRIPT

BTCUSD Algo

70
🎯 Overview
Advanced algorithmic trading strategy specifically designed for BTCUSD 15-minute Heikin Ashi charts. This algorithm combines the powerful Supertrend indicator with multiple technical filters to identify high-probability entries in the Bitcoin market.
⚠️ CRITICAL SETUP REQUIREMENTS
MUST READ BEFORE USE:

✅ Chart Type: 15-minute Heikin Ashi candles ONLY
✅ Symbol: BTCUSD
✅ Strategy Properties: Enable "Use OHLC Values" to prevent repainting and ensure realistic backtest results
✅ Broker Integration: Tickerly-proven with Capital.com API for automated trading
✅ This Code is for Free, so i would appreciate Comment on this what you think.
🚀 Key Features
📊 Interactive Dashboard

Real-time position tracking (LONG/SHORT/FLAT)
Live P&L display with percentage gains
Entry price monitoring
Take Profit level visualization
Technical indicators overview (Trend, ADX, MACD, ATR, Volume, EMA200)
Fully customizable position (4 corner options)

🏷️ Visual Signal Labels

Clear LONG/SHORT entry markers
TP EXIT labels with profit percentage
Adjustable label sizes (Tiny to Huge)
Optional display toggle

⚡ Core Supertrend Engine

ATR Length: Adjustable period for volatility calculation
Factor: Fine-tunable multiplier for signal sensitivity
Optimized default values for maximum profit factor

🔧 Advanced Filter System (All Optional)

ADX Filter: Trend strength confirmation
MACD Filter: Momentum alignment
Volatility Filter: Minimum ATR requirements
Volume Filter: Above-average volume confirmation
EMA 200 Filter: Directional bias with 3 modes:

Long only above EMA
Short only below EMA
Both directions (filter disabled)



💰 Take Profit System

Percentage-based exits
Adjustable TP levels
Visual TP line on dashboard
Note: Currently in development - shows in strategy but signals not yet active

🌍 US Session Highlighting

Visual background colors for:

US Open (09:30-11:30 ET)
Lunch Session (11:30-13:30 ET)
Afternoon Session (13:30-16:00 ET)


🎓 Optimization Guide - Avoiding Overfitting
IMPORTANT: Follow this sequence to prevent curve-fitting:
Step 1: Disable ALL Filters
Start with pure Supertrend signals - uncheck all filter options
Step 2: Optimize ATR Length

This parameter controls how many candles are used for volatility calculation
Higher values = More candles = Smoother signals = Fewer trades
Lower values = Fewer candles = Faster signals = More trades (overfitting risk!)
Adjust until you find the best Profit Factor
Default optimized value included

Step 3: Optimize Factor

Fine-tune the Supertrend multiplier
Work in small increments (0.1 - 0.5)
Balance between signal frequency and accuracy

Step 4: (Optional) Add Filters

Only after core optimization
Add filters one at a time
Test each addition's impact
Less is more!

💡 "Less is More" Philosophy
This strategy follows the principle of simplicity. The default parameters are optimized for maximum profit, but the power lies in finding the sweet spot for YOUR trading style and market conditions.
✅ Automated Trading Ready

Fully compatible with Tickerly webhook integration
Tested with Capital.com API
Real-time signal generation
No repainting when properly configured

📋 What You Get

Complete Pine Script v6 code
Professional dashboard interface
Multiple customization options
Clear visual signals
Session analysis tools
Optimization framework

⚙️ Technical Specifications

Version: Pine Script v6
Type: Strategy (with overlay)
Default Quantity: Fixed (adjustable)
Indicators Used: Supertrend, ADX, MACD, ATR, EMA, Volume MA

🎨 Customization Options

Dashboard visibility toggle
Dashboard position (4 corners)
Signal labels on/off
Label size adjustment
EMA line display
All filters with checkboxes
Color schemes for sessions
TP percentage adjustment


⚡ Ready to deploy? Remember:

Set to Heikin Ashi 15m
Enable "Use OHLC Values" in properties
Start with all filters OFF
Optimize ATR Length first
Trade smart, not hard! 🚀


Disclaimer: Past performance does not guarantee future results. Always test thoroughly before live trading. Currently under active development - Take Profit automation pending completion.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.