OPEN-SOURCE SCRIPT
Atualizado Mean Reversion Probability

Mean Reversion Probability (MRP) measures how far price has stretched from its 50-period moving average using a Z-score. It tells you when a market is statistically overextended and likely to snap back.
Z-Score Zones:
• Above +3 → Extreme Overbought
• Above +2 → Overbought
• Below -2 → Oversold
• Below -3 → Extreme Oversold
The line changes color dynamically based on the zone it's in, with filled bands making each zone instantly readable at a glance.
The info panel shows the live Z-score, SMA50, standard deviation, how far price is from the mean in both price and percentage, current zone, and directional bias.
Best used on higher timeframes (1H, 4H, Daily) as a mean reversion confluence tool, not a standalone signal. Works well combined with momentum or volume indicators to confirm entries.
Z-Score Zones:
• Above +3 → Extreme Overbought
• Above +2 → Overbought
• Below -2 → Oversold
• Below -3 → Extreme Oversold
The line changes color dynamically based on the zone it's in, with filled bands making each zone instantly readable at a glance.
The info panel shows the live Z-score, SMA50, standard deviation, how far price is from the mean in both price and percentage, current zone, and directional bias.
Best used on higher timeframes (1H, 4H, Daily) as a mean reversion confluence tool, not a standalone signal. Works well combined with momentum or volume indicators to confirm entries.
Notas de Lançamento
added sma length change inputScript de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.