Stochastic Potential Zones
Stochastic Potential Zones
Most indicators try to tell you where price is.
This one tries to tell you where price is most likely to settle.
That is the whole point.
The math comes from stochastic stability and risk dominance.
In simple terms, a system can have two stable outcomes, but one of them is usually easier to reach and easier to defend. Over time, that easier state tends to dominate.
This script applies that exact idea to price.
The indicator builds two structural basins from recent pivots:
the bull basin forms around the latest meaningful swing low
the bear basin forms around the latest meaningful swing high
Those are not random zones. They are the two structural areas the market is most likely to coordinate around.
Then the script asks the important question:
Which side is easier for the market to coordinate around right now?
To answer that, each side gets a resistance score.
Bull resistance rises when:
price is still far from the bullish basin
short-term trend is leaning down
the current candle impulse is working against buyers
higher timeframes are not supportive
Bear resistance rises for the opposite reasons.
Volume can reduce that resistance.
That matters because if price is already pushing into a basin with participation behind it, the market has an easier time committing to that side.
So the script is not just checking location. It is checking how difficult it is for the market to “choose” each side.
Once those resistance scores are calculated, they are converted into stochastic potential:
lower resistance = higher potential
higher resistance = lower potential
That gives you two live readings:
Bull Pot
Bear Pot
These are the core outputs of the model.
From there, the indicator defines the current state:
if Bull Pot clearly exceeds Bear Pot, the market is in a Bull Convention
if Bear Pot clearly exceeds Bull Pot, the market is in a Bear Convention
if neither side has enough advantage, the market is Contested
This is where the indicator becomes practical.
It stops being a mathematical idea and becomes a market map.
The silver line is the separatrix.
That is the decision boundary between the two structural states.
It is the line that says: above here, the bullish basin has the easier path; below here, the bearish basin has the easier path; around here, the market is still arguing.
That is one of the most important visuals in the script.
The small flip markers show when the dominant basin changes.
These are not “buy” and “sell” buttons.
They are structural state changes.
That is a big difference.
A flip tells you the easier convention has changed. What you do with that information still depends on price action, context, and execution.
So how do you actually use it?
Use the basins as structural context.
Use the separatrix as a live decision boundary.
Use the table to see whether one side is genuinely dominant or whether the market is still contested.
And use the flip markers as confirmation that the structural preference has changed, not as a signal to trade blindly.
If i was to try and sum it up In one sentence:
Stochastic Potential Zones shows which structural side of the market is currently easier to sustain, and where the live boundary between those competing states sits.
Advice to myself for the future to become better:
I would love to hear your thoughts and opinions on this indicator. I tried going into detail through images on how the indicator may look like in certain states.
I know i used the bar replay and obviously cherry-picked certain conditions. However, it is just to give you an example of how the indicator would look like in real market time.
Wskaźnik Pine Script®






















