OPEN-SOURCE SCRIPT
MAxRSI Signals [KedArc Quant]

Description
Indicator Shows fast/slow moving averages on the chart and prints LONG/SHORT signals when they cross. You can add an RSI filter to confirm signals. Optional higher-timeframe (HTF) smoothing and alert conditions are included.
How signals are made
* LONG: Fast MA crosses above Slow MA and (if enabled) RSI ≥ your “RSI Long Min”.
* SHORT: Fast MA crosses below Slow MA and (if enabled) RSI ≤ your “RSI Short Max”.
* If “Repaint-Safe” is ON, signals confirm at bar close to avoid repainting.
Inputs
* Fast MA / Slow MA Length
* MA Type: SMA / EMA / WMA / HMA
* RSI Filter (length + thresholds)
* Source: Usually close
* Optional HTF for MAs & RSI
* Show MAs / Show Signals toggles
* Repaint-Safe confirmation
* RSI Overlay (visual only)
* Alert Options
On the chart
* Green line = Fast MA, Red line = Slow MA
* Green “LONG” arrow below bar; Red “SHORT” arrow above bar
* Optional bar coloring in trend direction
* Optional RSI overlay line + thresholds
Alerts
* MAxRSI Long / Short fire on crossovers with RSI check
* Bullish/Bearish State fire when the trend flips
Tips
* If no signals appear, check that Fast < Slow and test with RSI filter off
* EMA/HMA often give smoother results
* Use larger MA lengths or HTF for swing setups
Notes & Usage
* Intraday trading: EMA(9–20) as Fast, EMA(50) as Slow is a common setup.
* Swing trading: EMA(20) as Fast, EMA(200) as Slow helps capture broader trend shifts.
* RSI filter works well with default 14 length and 50 level, but you can adjust (e.g., 55/45) for stricter confirmation.
* This script is flexible — test and adapt the settings to your asset and timeframe.
Acknowledgements
This indicator is built on TradingView’s built-in Pine Script v6 functions and features, including:
* `ta.sma`, `ta.ema`, `ta.wma` for moving averages
* Custom Hull MA formula built using `ta.wma`
* `ta.rsi` for Relative Strength Index filtering
* `ta.crossover`, `ta.crossunder` for signal logic
* `request.security` for higher-timeframe (HTF) data
* `plot`, `plotshape`, `barcolor` for visuals
* `alertcondition` for alerts
* General Pine Script v6 features: `input.*` controls, `math.*` helpers, `color.*` utilities
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Indicator Shows fast/slow moving averages on the chart and prints LONG/SHORT signals when they cross. You can add an RSI filter to confirm signals. Optional higher-timeframe (HTF) smoothing and alert conditions are included.
How signals are made
* LONG: Fast MA crosses above Slow MA and (if enabled) RSI ≥ your “RSI Long Min”.
* SHORT: Fast MA crosses below Slow MA and (if enabled) RSI ≤ your “RSI Short Max”.
* If “Repaint-Safe” is ON, signals confirm at bar close to avoid repainting.
Inputs
* Fast MA / Slow MA Length
* MA Type: SMA / EMA / WMA / HMA
* RSI Filter (length + thresholds)
* Source: Usually close
* Optional HTF for MAs & RSI
* Show MAs / Show Signals toggles
* Repaint-Safe confirmation
* RSI Overlay (visual only)
* Alert Options
On the chart
* Green line = Fast MA, Red line = Slow MA
* Green “LONG” arrow below bar; Red “SHORT” arrow above bar
* Optional bar coloring in trend direction
* Optional RSI overlay line + thresholds
Alerts
* MAxRSI Long / Short fire on crossovers with RSI check
* Bullish/Bearish State fire when the trend flips
Tips
* If no signals appear, check that Fast < Slow and test with RSI filter off
* EMA/HMA often give smoother results
* Use larger MA lengths or HTF for swing setups
Notes & Usage
* Intraday trading: EMA(9–20) as Fast, EMA(50) as Slow is a common setup.
* Swing trading: EMA(20) as Fast, EMA(200) as Slow helps capture broader trend shifts.
* RSI filter works well with default 14 length and 50 level, but you can adjust (e.g., 55/45) for stricter confirmation.
* This script is flexible — test and adapt the settings to your asset and timeframe.
Acknowledgements
This indicator is built on TradingView’s built-in Pine Script v6 functions and features, including:
* `ta.sma`, `ta.ema`, `ta.wma` for moving averages
* Custom Hull MA formula built using `ta.wma`
* `ta.rsi` for Relative Strength Index filtering
* `ta.crossover`, `ta.crossunder` for signal logic
* `request.security` for higher-timeframe (HTF) data
* `plot`, `plotshape`, `barcolor` for visuals
* `alertcondition` for alerts
* General Pine Script v6 features: `input.*` controls, `math.*` helpers, `color.*` utilities
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.