OPEN-SOURCE SCRIPT

MAxRSI Signals [KedArc Quant]

275
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.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.