Predictive Ranges Indicator

Predictive Ranges Indicator

1. Introduction

In technical analysis, identifying support and resistance zones is crucial for improving decision-making in financial markets. The Predictive Ranges indicator dynamically detects these levels based on market volatility and price behavior.

The Predictive Ranges is built using a price average and the Average True Range (ATR) to calculate support and resistance zones that adjust as market conditions change. This allows traders to visualize areas where the price might react, providing strategic entry and exit points.

In this article, we will explore how this indicator works, its practical applications in trading, and how to set it up in ProRealTime.

2. How Does the Predictive Ranges Indicator Work?

The Predictive Ranges indicator is based on the Average True Range (ATR) and a dynamic moving average to establish support and resistance levels that change depending on market volatility.

Calculation Process

  1. Determine the Base Average

    • The indicator calculates a moving average price using the closing price.
    • This value serves as the reference point for determining support and resistance zones.
  2. Calculate the Adjusted ATR

    • The ATR is measured over a specified period (length).
    • It is then multiplied by a custom factor (mult) to define the predictive range.
  3. Adjust the Average Based on Price Behavior

    • If the price rises above the average by more than the ATR, the average moves up.
    • If the price drops below the average by more than the ATR, the average moves down.
    • If there are no significant changes, the average remains stable.
  4. Generate Predictive Range Levels

    • The four key levels are calculated as follows:
      • PRR2 (Second Resistance): Average + (Adjusted ATR * 2)
      • PRR1 (First Resistance): Average + Adjusted ATR
      • PRS1 (First Support): Average – Adjusted ATR
      • PRS2 (Second Support): Average – (Adjusted ATR * 2)
  5. Opacity Management for Visualization

    • The indicator applies dynamic transparency to highlight relevant support and resistance levels.
    • When the average changes significantly, the opacity is low, indicating potential adjustments.
    • When the average remains stable, opacity is high, making the levels more visible.

3. Trading Applications of the Predictive Ranges Indicator

The Predictive Ranges indicator is a versatile tool for multiple trading strategies. Its key advantage is the ability to dynamically adjust support and resistance levels based on market volatility.

3.1 Using Predictive Ranges as Dynamic Support and Resistance

The PRR2, PRR1, PRS1, and PRS2 levels serve as areas where price action is likely to react:

  • Buying and Selling Zones:

    • PRR1 and PRR2 often act as resistances, where price may stall or reverse.
    • PRS1 and PRS2 function as supports, where price may find demand.
  • Breakout Confirmation:

    • A strong move above PRR2 may indicate a bullish continuation.
    • A break below PRS2 could signal a bearish trend extension.

3.2 Integrating Predictive Ranges into Trading Strategies

  • Range Trading:

    • When price oscillates between PRS1 and PRR1, traders can buy near support and sell near resistance.
    • Can be combined with RSI or MACD for additional confirmation.
  • Breakout Trading:

    • A candle closing beyond PRR2 or PRS2 suggests a potential breakout.
    • Volume analysis can help confirm a breakout’s strength.
  • Multi-Timeframe Analysis:

    • Can be applied to daily charts for identifying long-term levels.
    • Works well on intraday timeframes (5min-15min) for day traders and scalpers.

3.3 Identifying High-Volatility Periods

Since ATR is a key component, Predictive Ranges expands during high volatility and contracts in stable markets. This helps traders anticipate riskier periods and adjust strategies accordingly.

4. Configuring the Indicator in ProRealTime

To maximize its effectiveness, traders should understand the adjustable parameters in ProRealTime.

4.1 Key Customizable Parameters

  • ATR Length (length):

    • Defines how many periods are used to calculate volatility.
    • Higher values create smoother and more stable ranges.
    • Lower values make the ranges more reactive to price movements.
    • A default value of 200 is recommended, but can be adjusted between 50-500.
  • ATR Multiplier (mult):

    • Controls the width of support and resistance zones.
    • A higher multiplier (8-10) results in wider ranges, suitable for volatile assets.
    • A lower multiplier (3-5) creates narrower zones, useful for stable markets.
    • Default setting is 6, but can be adjusted as needed.

4.2 Adjusting Colors and Transparency

  • Resistance Zone (PRR2 – PRR1): Red
  • Support Zone (PRS1 – PRS2): Green

4.3 Recommended Timeframes for Different Trading Styles

Trading Style Recommended Timeframe ATR Length ATR Multiplier
Scalping 1-5 min 50-100 4-6
Day Trading 15-60 min 100-200 5-8
Swing Trading 4H – Daily 200-400 6-10
Investing Daily – Weekly 400+ 8-12

Testing different settings is recommended to find the best configuration for each asset and market condition.

5. Conclusion

The Predictive Ranges indicator is a powerful tool for identifying dynamic support and resistance zones based on market volatility. Its flexibility makes it suitable for scalping, day trading, and swing trading across various assets.

With its adjustable parameters, traders can customize the indicator in ProRealTime to match their specific trading style and market conditions.

📌 To start using Predictive Ranges, simply insert the code into ProBuilder and test different configurations to find the best setup for your strategy.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. pierre66 • 91 days ago #

    Bravo à toi , c’est un super indicateur, très visuel est ce que tu as déjà un screener par exemple pour un départ de breakout sur PrR1ou prR2….? merci pour ton retour

  2. Annchow8052014 • 90 days ago #

    Your indicator is quite good for me, thanks.

  3. geroniman • 85 days ago #

    merci Ivan, super indicatuer. Les cours vont souvent toucher 50% des zones vertes ou rouges. est il possible de rajouter un trait pointillé sur ces 50%? Muchas gracias !!!!

    • Iván • 84 days ago #

      Pour ajouter une ligne supplémentaire, il suffit de créer une nouvelle variable, par exemple:

      prR3=avg+holdAtr*1.5
      prS3=avg-holdAtr*1.5

  4. Maurizio A. • 81 days ago #

    excellent indicateur ! comment puis-je modifier le code pour afficher uniquement les derniers support et résistance ?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
JanWd Tried the code, nice concept, seems to work quit well for US/EUR 2hrs, Other markets seems n...
JR1976 Simple and nice code , congrats !!! Seems work well with TIme frame 1 h
phanz Hi all, Sorry revisiting an old post. This algo is simple, and simplicity is the ultimate ...
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
ullle73 why not use 1h chart? has 95% hitrate
ullle73 i see most of positions are only 1 pip before exit?
Jean-Pierre Poulain When I buy and when I sell ?
Nicolas The featured image of the post do not deserve the indicator you are right, I attached other ...
Nicolas It is described in the post already :) The BUY/SELL signals are quite similar of what you ca...
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
fabio407 Thanks, Nicolas. Very useful. Would you tell me where to find what result conveys the functi...
Nicolas This is not an instruction of the programming language but a variable from this indicator (l...
fabio407 OK. I didn't notice it. Many thanks, Nicolas!
albertocampagna Sei grande Nicolas :-)
SAcht Dear Nicolas, Great work, thank you very much!I would love to use the indicator in ProScree...
SAcht btw: The above-posted ProScreener is supposed to show stocks for which the center line has i...
Wilko And not only readable.... makes it much easier to iterate different entry/exit-conditions, d...
IGOSNELL Hi Interesting strategy, when I used $ M-R Dif EURUSD M15 Long if does not enter any positi...
ilvillans HI, I modified the system, from good results but from this error: Replace the variables wit...
victormork Hi, I would just like to share my own take on this strategy. I'm using 30 min on EURUSD but ...
mckubik Thanks. I will run a Test. 
poonsl2828 Hi! bjoern May i know what timing should i change for time zone (Singapore (GMT +8:00) ...
Nicolas si il n'y a pas de stoploss définit dans le code, alors c'est normal :)
bertrandpinoy bonjour merci pour la réponse. Oui b sur ... est il possible que le SL soit coder sous une a...
Nicolas ok mais pourquoi poser la question ici ? Pour des questions non spécifique à cette article, ...
julien1978 The ADR value that is plotted intraday does not match the value of the regular ATR indicator...
Fab666 I've tried to get a fix for this also but no luck, it doesn't print the correct data as far ...
Seabiscuit Hi! With the new PRT update, this indicator does not work anymore
Guibourse Hi ! I am asking once again for your help : would it be possible to use the ATR as a "take p...
Tradingrob Many thanks for the indicator, however if the price is below the indicator, then the indicat...
aldtrading Merci pour ton travail ! J'ai de bons résultats en utilisant cet indicateur
Nicolas Use the wrench of the price chart! Upper left of the window
Dymjohn The wrench shows options for the components of the indicator not how to show in the main cha...
Nicolas http://www.prorealcode.com/topic/overlapping-indicators/  
Doctrading Hello,  The strategy should be improved, no doubt. But it was just one of my ideas, which h...
ALEALE Yes Nicolas is very difficult, macro economic data can destroy any work!!  
styrke depends which.. I personally think that it's much more easier to trade on XBTUSD, try to co...
David Thanks for the explanation Nicolas.
freecat1899 Hello, I wanted to create a percent ADR based on this indicator, so I wrote this code that I...
revstrat At first glance, I see this mistake. You shouldn't average the highs and the lows. You shoul...
GraHal Ooops got that excited I sent that last one twice! ha (and can't delete it, sorry) I got it...
Eric n = 3  dont forget to allow 3 contract in proorder
UkCoopDownUnder Tried EURUSD GMT and GMT -1, as far back as I can go, Nov 2018 on 15mn Tf, 22% loss
Investment Account Wow great thanks ... looks good! Do I set the colour shades up from within the indicator 's...
avatar
Anonymous Thanks for your comments and yes, that is exactly how I set up the colour levels.
Vish Thanks I have added this in my watch list. Has anyone tried it yet ? Does it work on currenc...
Nicolas
9 years ago
trabucaire Hello, what does it mean the 20 and 40 number on this code ? Thank you !
robertogozzi I modified it to make parameters customizable and to Draw a Grey candlestick when a range is...
PeterClothier Hi, I downloaded this indicator and imported it. I tried adding it to a chart , and it hasn'...
Nicolas Don't add it on the price, so just don't use the price setting to add the indicator.

Top