From 36a5f629f47d4ce5971f44171f627a5dd74258d2 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Thu, 27 Nov 2025 08:58:23 +0100 Subject: [PATCH] fix: Pine Script string concatenation - single line for alertMessage Pine Script v6 doesn't support multi-line string concatenation with + Put entire JSON string on single line instead --- workflows/trading/moneyline_1min_data_feed.pinescript | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/workflows/trading/moneyline_1min_data_feed.pinescript b/workflows/trading/moneyline_1min_data_feed.pinescript index d86cbf7..4b349a7 100644 --- a/workflows/trading/moneyline_1min_data_feed.pinescript +++ b/workflows/trading/moneyline_1min_data_feed.pinescript @@ -26,15 +26,7 @@ hline(25, "ADX 25", color=color.orange, linestyle=hline.style_dashed) // Alert message - JSON format // Note: Use action "market_data_1min" to distinguish from trend-change alerts -var string alertMessage = '{"action":"market_data_1min","symbol":"' + syminfo.ticker + - '","timeframe":"1","atr":' + str.tostring(atr) + - ',"adx":' + str.tostring(adx) + - ',"rsi":' + str.tostring(rsi) + - ',"volumeRatio":' + str.tostring(volumeRatio) + - ',"pricePosition":' + str.tostring(pricePosition) + - ',"currentPrice":' + str.tostring(close) + - ',"maGap":' + str.tostring(maGap) + - ',"indicatorVersion":"v9"}' +alertMessage = '{"action":"market_data_1min","symbol":"' + syminfo.ticker + '","timeframe":"1","atr":' + str.tostring(atr) + ',"adx":' + str.tostring(adx) + ',"rsi":' + str.tostring(rsi) + ',"volumeRatio":' + str.tostring(volumeRatio) + ',"pricePosition":' + str.tostring(pricePosition) + ',"currentPrice":' + str.tostring(close) + ',"maGap":' + str.tostring(maGap) + ',"indicatorVersion":"v9"}' // Alert condition: Every bar close (fires every 1 minute on 1-min chart) alertcondition(true, title="1min Data Feed", message=alertMessage)