OPEN-SOURCE SCRIPT

CRR Range Timer (Recarga)

55
What this indicator does (CRR Range Timer – “Recarga”)
In simple words:


Defines a price range (your “reload zone”)


You set:


Zona Low → bottom of the range (e.g. 4210.0)


Zona High → top of the range (e.g. 4220.0)


Optional Tolerancia in ticks, to make the zone a bit wider.




The script automatically calculates zonaMin and zonaMax and checks if the current close is inside that zone.




Counts how long price stays inside that range


If close is inside the zone → enRango = true.


It counts consecutive bars inside the zone: barrasEnRango.


It converts that into time:


Uses your chart timeframe (timeframe.in_seconds(timeframe.period))


Calculates total seconds → minutes → then splits into:


Days (d)


Hours (h)


Minutes (m)






Example text: 2d 5h 30m means price has been stuck inside that range for 2 days, 5 hours and 30 minutes.




Shows a HUD table with the range information
It creates a small table (HUD) on the chart (position configurable: top/bottom left/center/right) with:


Header row


"CRR RANGE TIMER"


"Recarga"


Symbol (e.g. XAUUSD)




Row 2


"Estado" → status: "En RANGO" (inside) or "Fuera RANGO" (outside), with green/red color


The time it has been in range: Xd Yh Zm




Row 3


"Zona" → the exact price range zonaMin - zonaMax


"Barras: N" → number of bars inside the range






Draws a text label on the chart near price
When price is inside the zone and Mostrar texto sobre el precio is ON:


It shows a label like:
Recarga: 0d 3h 15m
Zona: 4210.00 - 4220.00


The label moves with the latest bar near the current price.




Optional background highlight


When mostrarBg is true and price is inside the range, the background of the chart in that bar is tinted (teal, very transparent).


This visually marks the “reload” area so you can see clearly when the market is stuck there.





How to use it to trade and “win” (trading logic idea)
This tool is not a buy/sell signal by itself.
It is a timer of accumulation / ranging in a specific price zone.
Think of it like this:

“The more time price spends inside a narrow zone, the stronger the potential move when it finally breaks out.”

Main use cases


Detect long consolidations before a big move


Choose an important zone: for example a NY range, a London range, or a zone between two key levels (support/resistance, supply/demand, OB, etc).


Set Zona Low and Zona High around that area.


Let the indicator count time:


If the HUD shows only a few minutes/bars, it’s a fresh range.


If the HUD shows many hours or even days, the market is “charging” (recargando) in that zone.




Trading idea:


You wait for a strong breakout of that zone after a good amount of “recarga” time.


The longer the recarga, the more aggressive the move can be when it finally escapes.




Filter bad trades inside dead ranges


Many traders lose money trading inside choppy ranges, especially in NY afternoon or Asia when the market is asleep.


With this indicator:


If you see the HUD saying En RANGO and 0d 2h 45m for example,


You know the market has been stuck almost 3 hours there.




You can create a rule for yourself:


“No new trades when price is inside my recarga box for more than X minutes/hours.”




That protects you from overtrading in low-volatility chop.




Objective measure of “how long it has been loading”
Instead of “it feels like it’s ranging”, you have a number:


On a 5m chart:


12 bars in range = 60 minutes


48 bars in range = 4 hours




On a 15m chart:


16 bars in range = 4 hours




The indicator does this math for you and displays it clearly.





Simple trading playbook example
You can adapt, but here’s a very simple way to use it:


Define your key zone


Use an important range: yesterday’s NY range, an accumulation box around a key level, or a consolidation before news.


Set Zona Low and Zona High to cover that area.


Optionally add Tolerancia (a few ticks) so small spikes don’t reset the timer.




Wait for recarga


Watch the HUD:


If time < 30–60 minutes → market still “loading”, small opportunities.


If time ≥ 2–4 hours (depending on timeframe and instrument) → stronger compression, potential for bigger breakout.






Plan your trade around the breakout


Don’t chase random candles inside the range.


Wait for:


A clear close above the high of the zone → bullish breakout idea.


A clear close below the low of the zone → bearish breakout idea.




Combine with your other tools (volume, structure, SMC, your CRR dashboard, etc) to confirm direction.




Risk management


Your stop can be placed:


Just inside the box (back inside the range = invalid breakout).




Target:


Previous swing levels, liquidity pools, or a multiple of your risk (1:2, 1:3, etc).

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.