From eb2fea7bc0cb5cfb160c702fa1c41bd91e2dce13 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Sat, 1 Nov 2025 11:09:37 +0100 Subject: [PATCH] Clean up alert format - remove .P notation - Changed 'SOL buy .P 15' to 'SOL buy 15' (cleaner format) - timeframe.period is already dynamic (no conversion needed) - Works for any timeframe: 5, 15, 60, 240, D, etc. - Format: 'ETH buy 15' or 'BTC sell 5' or 'SOL buy 60' --- workflows/trading/moneyline_v5_final.pinescript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflows/trading/moneyline_v5_final.pinescript b/workflows/trading/moneyline_v5_final.pinescript index 73ba218..7382d37 100644 --- a/workflows/trading/moneyline_v5_final.pinescript +++ b/workflows/trading/moneyline_v5_final.pinescript @@ -192,10 +192,10 @@ baseCurrency = str.replace(syminfo.ticker, "USD", "") baseCurrency := str.replace(baseCurrency, "USDT", "") baseCurrency := str.replace(baseCurrency, "PERP", "") -// Build enhanced alert messages with context -longAlertMsg = baseCurrency + " buy .P " + str.tostring(timeframe.period) + " | ATR:" + str.tostring(atrPercent, "#.##") + " | ADX:" + str.tostring(adxVal, "#.#") + " | RSI:" + str.tostring(rsi14, "#.#") + " | VOL:" + str.tostring(volumeRatio, "#.##") + " | POS:" + str.tostring(pricePosition, "#.#") +// Build enhanced alert messages with context (timeframe.period is dynamic) +longAlertMsg = baseCurrency + " buy " + timeframe.period + " | ATR:" + str.tostring(atrPercent, "#.##") + " | ADX:" + str.tostring(adxVal, "#.#") + " | RSI:" + str.tostring(rsi14, "#.#") + " | VOL:" + str.tostring(volumeRatio, "#.##") + " | POS:" + str.tostring(pricePosition, "#.#") -shortAlertMsg = baseCurrency + " sell .P " + str.tostring(timeframe.period) + " | ATR:" + str.tostring(atrPercent, "#.##") + " | ADX:" + str.tostring(adxVal, "#.#") + " | RSI:" + str.tostring(rsi14, "#.#") + " | VOL:" + str.tostring(volumeRatio, "#.##") + " | POS:" + str.tostring(pricePosition, "#.#") +shortAlertMsg = baseCurrency + " sell " + timeframe.period + " | ATR:" + str.tostring(atrPercent, "#.##") + " | ADX:" + str.tostring(adxVal, "#.#") + " | RSI:" + str.tostring(rsi14, "#.#") + " | VOL:" + str.tostring(volumeRatio, "#.##") + " | POS:" + str.tostring(pricePosition, "#.#") // Fire alerts with dynamic messages (use alert() not alertcondition() for dynamic content) if finalLongSignal