OPEN-SOURCE SCRIPT
Mirror Bias

See the market from the other side.
Mirror Bias is a visual context indicator designed to challenge directional bias by displaying price action as a true vertical reflection of the underlying chart.
Instead of trying to predict whether the market is bullish or bearish, Mirror Bias asks a different question:
"Would this chart look the same to me if I couldn't rely on the usual visual direction of price?"
How it works
Mirror Bias mathematically reflects the OHLC data across a horizontal axis, i.e.,:
Pine Script®
Because the transformation is applied to the actual OHLC values, the candles retain their original proportions, structure, gaps, wicks, and relationships. Time remains unchanged; only the vertical orientation is reversed.
This is a true geometric mirror of price action.
Why Mirror Bias is different
Some indicators described as "inverted candles" use a reciprocal transformation such as:
Pine Script®
That is a nonlinear inverse-price transformation and is useful for certain comparative applications, but it is not a geometric reflection of the chart. TradingView seems to be lacking a true mirror of price action so I am adding this for public use.
Mirror Bias takes a different approach: the shape of the market is preserved while its visual orientation is reversed.
Use it as a bias-checking tool
Markets can be surprisingly difficult to evaluate objectively when our brains are conditioned to associate:
Mirror Bias provides an alternate visual perspective that can make familiar structures feel unfamiliar again.
Try analyzing the mirrored chart before looking back at the original chart. You may notice:
Optional contextual tools
Mirror Bias can remain completely clean and minimal, or additional context can be enabled when needed:
All contextual elements are transformed into the same mirrored coordinate system so they remain consistent with the visual perspective.
A note on interpretation
The Mirror Bias script's purpose is perspective.
Use it to step outside an established narrative, question your assumptions, and compare your first impression with what you see when the same market is presented from the opposite visual direction.
Does your interpretation change simply because the chart was facing the other way?
Mirror Bias is a visual context indicator designed to challenge directional bias by displaying price action as a true vertical reflection of the underlying chart.
Instead of trying to predict whether the market is bullish or bearish, Mirror Bias asks a different question:
"Would this chart look the same to me if I couldn't rely on the usual visual direction of price?"
How it works
Mirror Bias mathematically reflects the OHLC data across a horizontal axis, i.e.,:
Because the transformation is applied to the actual OHLC values, the candles retain their original proportions, structure, gaps, wicks, and relationships. Time remains unchanged; only the vertical orientation is reversed.
This is a true geometric mirror of price action.
Why Mirror Bias is different
Some indicators described as "inverted candles" use a reciprocal transformation such as:
That is a nonlinear inverse-price transformation and is useful for certain comparative applications, but it is not a geometric reflection of the chart. TradingView seems to be lacking a true mirror of price action so I am adding this for public use.
Mirror Bias takes a different approach: the shape of the market is preserved while its visual orientation is reversed.
Use it as a bias-checking tool
Markets can be surprisingly difficult to evaluate objectively when our brains are conditioned to associate:
- Rising charts with bullishness
- Falling charts with bearishness
- Green candles with opportunity
- Red candles with danger
Mirror Bias provides an alternate visual perspective that can make familiar structures feel unfamiliar again.
Try analyzing the mirrored chart before looking back at the original chart. You may notice:
- Trend structure you hadn't consciously recognized
- Support and resistance relationships from a different perspective
- Pullbacks that look different when the visual direction is reversed
- How strongly candle colors influence your interpretation
- Whether your market view is based on structure or simply visual habit
Optional contextual tools
Mirror Bias can remain completely clean and minimal, or additional context can be enabled when needed:
- Swing Structure: Displays confirmed HH, HL, LH, and LL labels from the original price action.
- Daily Open: Mirrors the current session's daily open.
- Previous Day High / Low: Mirrors the prior day's key levels.
- VWAP: Mirrors session VWAP on intraday charts.
- 20 / 50 / 200 EMA: Adds mirrored moving-average context.
- Original Direction: Optionally reveals the underlying market's relationship to a selected EMA.
- Candle Color Modes: Preserve the original colors, invert them, or use neutral candles.
All contextual elements are transformed into the same mirrored coordinate system so they remain consistent with the visual perspective.
A note on interpretation
The Mirror Bias script's purpose is perspective.
Use it to step outside an established narrative, question your assumptions, and compare your first impression with what you see when the same market is presented from the opposite visual direction.
Does your interpretation change simply because the chart was facing the other way?
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.