- Create moneyline_1min_price_feed.pinescript (70% smaller payload) - Remove ATR/ADX/RSI/VOL/POS from 1-minute alerts (not used for decisions) - Keep only price + symbol + timeframe for market data cache - Document rationale in docs/1MIN_SIMPLIFIED_FEED.md - Fix: 5-minute trading signals being dropped due to 1-minute flood (60/hour) - Impact: Preserve priority for actual trading signals
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
//@version=6
|
|
indicator("Money Line - 1min Price Feed (Simplified)", overlay=false)
|
|
|
|
// ==========================================
|
|
// PURPOSE: Lightweight 1-minute price updates for market data cache
|
|
// CHANGE (Dec 4, 2025): Removed all indicators to reduce TradingView alert queue pressure
|
|
//
|
|
// WHY: 60 alerts/hour with full metrics can cause 5-minute trading signals to be skipped
|
|
// SOLUTION: Send ONLY price + symbol + timeframe (70% smaller payload)
|
|
//
|
|
// USAGE: Create alert on indicator with "alert() function calls"
|
|
// WEBHOOK: https://flow.egonetix.de/webhook/tradingview-bot-v4 (SAME as trading signals)
|
|
// FORMAT: Minimal format - bot recognizes timeframe="1" and routes to data collection
|
|
// ==========================================
|
|
|
|
// Display current price (visual confirmation alert is working)
|
|
plot(close, "Price", color=color.white, linewidth=2)
|
|
|
|
// Build MINIMAL JSON message - ONLY essential data
|
|
// Format: "SYMBOL buy 1 @ PRICE"
|
|
// Bot uses timeframe="1" to route to BlockedSignal (no trade execution)
|
|
// Indicators (ATR/ADX/RSI/etc) removed - calculated from DB when needed
|
|
jsonMessage = 'SOLUSDT buy 1 @ ' + str.tostring(close)
|
|
|
|
// Send alert every bar close (every 1 minute on 1min chart)
|
|
if barstate.isconfirmed
|
|
alert(jsonMessage, alert.freq_once_per_bar)
|