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'
This commit is contained in:
@@ -192,10 +192,10 @@ baseCurrency = str.replace(syminfo.ticker, "USD", "")
|
|||||||
baseCurrency := str.replace(baseCurrency, "USDT", "")
|
baseCurrency := str.replace(baseCurrency, "USDT", "")
|
||||||
baseCurrency := str.replace(baseCurrency, "PERP", "")
|
baseCurrency := str.replace(baseCurrency, "PERP", "")
|
||||||
|
|
||||||
// Build enhanced alert messages with context
|
// Build enhanced alert messages with context (timeframe.period is dynamic)
|
||||||
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, "#.#")
|
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)
|
// Fire alerts with dynamic messages (use alert() not alertcondition() for dynamic content)
|
||||||
if finalLongSignal
|
if finalLongSignal
|
||||||
|
|||||||
Reference in New Issue
Block a user