// ATR Calculation for Volatility Management atr = ta.atr(atrLength)
// SuperTrend Calculation [superTrendUpper, superTrendLower] = ta.supertrend(superTrendFactor, superTrendPeriod) trendUp = not na(superTrendLower) and close > superTrendLower trendDown = not na(superTrendUpper) and close < superTrendUpper
// Hull Moving Average (HMA) Calculation hma = ta.hma(close, hmaLength)
// Alerts for Entry Conditions alertcondition(longCondition, title="SuperTrend Long", message="SuperTrend turned bullish with Connors RSI in oversold territory - Long Opportunity") alertcondition(shortCondition, title="SuperTrend Short", message="SuperTrend turned bearish with Connors RSI in overbought territory - Short Opportunity")