Alerts - Backtest Version 🔔
The Backtest Version of Infinity Algo V3.0 includes automatic alert generation with structured messages perfect for trading automation. Unlike the standard version, alerts are triggered programmatically without manual setup.
🚀 Key Differences from Standard Version
Alert Setup
Manual via TradingView dialog
Automatic via code
Message Format
User-defined
Pre-formatted structure
TP/SL Levels
Basic alerts
All levels included
Automation Ready
Requires formatting
Direct integration
Signal Types
Separate alerts needed
Unified output
⚙️ How to Enable Automatic Alerts
Step 1: Add Indicator
Add the Backtest Version to your chart
Step 2: Configure Settings
Navigate to indicator settings and configure:
Enable Alerts
→ Master switch for automatic alertsAlert Ticker
→ Override symbol (leave blank for current)Alert Leverage
→ Set leverage for alert messages
Step 3: Create Master Alert
Right-click chart → Add Alert
Condition: Infinity Algo Backtest → Any alert() function call
Set your notification preferences (webhook, email, etc.)
Important: Create ONLY ONE TradingView alert using "Any alert() function call" as the trigger. All signals (longs and shorts) flow through this single alert.
📋 Alert Message Format
The backtest version generates structured messages perfect for automation:
Exchange=BINANCE
Symbol=BTCUSDT
Side=Long
Leverage=10x
Entry=45250.50
TP1=45700.00
TP2=46150.00
TP3=46600.00
TP4=47050.00
TP5=47500.00
TP6=47950.00
SL=43250.00
SignalType=AI Sniper Buy
📊 Message Components
Core Fields (Always Present)
Exchange - Trading venue (auto-detected)
Symbol - Trading pair/ticker
Side - Long or Short position
Leverage - Position leverage (from settings)
Entry - Entry price at signal
Conditional Fields
TP1-TP6 - Only included if enabled in Exit Settings
SL - Only included if Stop Loss is enabled
SignalType - Added for HL Sniper and AI Sniper signals
💡 Advanced Configuration
Multiple Take Profits
When multiple TPs and percentage exit is enabled, the alert includes all active levels:
Parse these in your automation platform
Implement partial exit strategies
Scale out of positions gradually
Custom Symbol Override
Use the Alert Ticker setting to:
Send alerts for a different symbol
Normalize naming for your broker
Handle exchange-specific formatting
Leverage Customization
The Alert Leverage setting allows:
Different leverage from display settings
Exchange-specific limits
Risk management overrides
🛠️ Setup Examples
Example 1: Simple Long Entry
Settings Configuration:
Exit Type:
Percentage
Only TP1:
2%
enabledStop Loss:
3%
enabled
Generated Alert:
Exchange=BINANCE
Symbol=ETHUSDT
Side=Long
Leverage=5x
Entry=2250.75
TP1=2295.77
SL=2183.23
Example 2: Complex Short with Multiple TPs
Settings:
All 6 TPs enabled
SL enabled
AI Sniper mode
Alert Output:
Exchange=BINANCE
Symbol=BTCUSDT
Side=Short
Leverage=10x
Entry=45000.00
TP1=44550.00
TP2=44100.00
TP3=43650.00
TP4=43200.00
TP5=42750.00
TP6=42300.00
SL=46350.00
SignalType=AI Sniper Sell
⚠️ Important Considerations
Critical Setup Rules
One Alert Rules All
Create ONLY ONE TradingView alert
Use "Any alert() function call" as trigger
All signals flow through this single alert
Processing Time
Alerts fire on bar close (confirmed signals)
Account for TradingView processing delay
Consider network latency for webhooks
🔍 Troubleshooting
No alerts firing?
• Check "Enable Alerts" in settings • Verify alert uses "Any alert() function call" • Ensure using Backtest version
Wrong symbol?
• Clear "Alert Ticker" field for current chart • Check exchange formatting requirements
Missing TP/SL?
• Enable desired levels in Exit Settings • Ensure Exit Type set to "Percentage"
Webhook not receiving?
• Test webhook URL separately • Check message format compatibility
📝 Summary
The Backtest Version's automatic alerts provide:
Zero manual setup per signal type
Structured messages ready for automation
Complete position data including all TPs/SL
Signal type identification for advanced strategies
Direct integration with trading platforms
This makes it the preferred choice for automated trading systems and backtesting with realistic alert generation.
Last updated