OPEN-SOURCE SCRIPT
Hybrid Oscillator

Hybrid Oscillator
Hybrid Oscillator is a visual oscillator designed to read momentum pressure, overbought conditions, oversold conditions, oscillator crosses, extreme zones and directional fading inside a separate chart pane.
the indicator combines a selected oscillator engine with a smoothed wave, a secondary cross line, gradient zones, level dots and alert conditions.
the goal is to help traders understand when momentum is expanding, when it is reaching an extreme area, when it is cooling down, and when the main oscillator line crosses its reference line.
this tool is not a trading strategy. it does not place trades, does not guarantee reversals and does not predict future price movement. it is a technical analysis tool for market context, momentum reading and visual confirmation.
main concept
the oscillator moves between 0 and 100.
values near the upper zone show stronger upside pressure or overbought conditions.
values near the lower zone show stronger downside pressure or oversold conditions.
the main oscillator line is the active momentum wave.
the real cross line is a smoother reference line.
when the main oscillator crosses above the real cross line, momentum may be recovering or shifting upward.
when the main oscillator crosses below the real cross line, momentum may be weakening or shifting downward.
what the indicator displays
main oscillator line
real cross line
upper and lower gradient zones
overbought level
oversold level
extreme overbought level
extreme oversold level
mid upper level
mid lower level
top extreme dots
bottom extreme dots
real cross dots
level lines
alert conditions
oscillator engines
the script includes several oscillator calculation modes.
rsi
uses relative strength index behavior.
this mode is useful for reading classic momentum strength and overbought or oversold behavior.
stochastic
uses stochastic positioning.
this mode focuses on where price is closing compared to its recent high and low range.
hybrid rsi plus stochastic
uses rsi first, then applies a stochastic calculation to the rsi behavior.
this mode focuses on momentum position inside the rsi range and gives a more reactive exhaustion style.
cci normalized
uses commodity channel index behavior and normalizes it into a 0 to 100 style range.
this mode can be useful for reading broader deviation and momentum pressure.
how the real cross line works
the real cross line is a smoothed version of the active oscillator.
it is not a separate oscillator type. it follows the selected engine.
if rsi mode is selected, the cross line follows the rsi-based oscillator.
if stochastic mode is selected, the cross line follows the stochastic-based oscillator.
if hybrid mode is selected, the cross line follows the hybrid oscillator.
if cci normalized mode is selected, the cross line follows the normalized cci oscillator.
the cross dots are based on the actual intersection between the main oscillator and the real cross line.
orange cross dots show an upward cross.
magenta cross dots show a downward cross.
input guide
source
selects the price source used by the oscillator.
common choices are close, hl2, hlc3 or ohlc4.
close is simple and reactive.
hlc3 is smoother because it includes high, low and close.
length
controls the base oscillator calculation period.
a lower value makes the oscillator faster and more sensitive.
a higher value makes the oscillator smoother and slower.
smoothing
controls the smoothing applied to the final oscillator.
a lower value reacts faster.
a higher value reduces noise but adds more delay.
oscillator type
selects the calculation engine.
rsi is classic momentum.
stochastic is range position.
hybrid rsi plus stochastic is a more sensitive momentum range model.
cci normalized is a deviation-based momentum model.
extreme overbought
sets the upper extreme zone.
when the oscillator reaches this area, upside momentum is considered stretched.
overbought
sets the main upper warning level.
crossing this level can mark a strong bullish extension.
mid upper
sets the upper midline reference.
this can be used to detect smaller upward crosses around the upper balance area.
mid lower
sets the lower midline reference.
this can be used to detect smaller downward crosses around the lower balance area.
oversold
sets the main lower warning level.
crossing this level can mark a strong bearish extension.
extreme oversold
sets the lower extreme zone.
when the oscillator reaches this area, downside momentum is considered stretched.
enable gradient fills
turns the upper and lower visual gradient zones on or off.
when enabled, the oscillator pane becomes easier to read visually.
gradient layers
controls the number of visual layers used for the gradient style.
more layers create a smoother visual feel.
show level cross dots
shows or hides the dots created by cross conditions and extreme conditions.
show real cross line
shows or hides the smoother cross reference line.
this line is useful when you want to see exactly where the oscillator cross dots come from.
show level lines
shows or hides the horizontal reference lines.
these lines help identify overbought, oversold, extreme and midpoint areas.
oscillator line width
controls the thickness of the main oscillator line.
higher values make the oscillator more visible.
lower values keep the chart cleaner.
how to read the dots
top extreme dots
these appear when the oscillator is inside the extreme overbought zone.
they indicate strong upside extension.
they do not mean price must reverse immediately.
bottom extreme dots
these appear when the oscillator is inside the extreme oversold zone.
they indicate strong downside extension.
they do not mean price must reverse immediately.
orange cross dots
these appear when the main oscillator crosses above the real cross line.
they can show a possible upward momentum shift.
magenta cross dots
these appear when the main oscillator crosses below the real cross line.
they can show a possible downward momentum shift.
important note about dots
cross dots are not automatic buy or sell signals.
they show technical events inside the oscillator.
always confirm with trend, support and resistance, candle close, volume and risk management.
alerts
the script includes alert conditions for:
cross above the real cross line
cross below the real cross line
cross above overbought
cross below oversold
cross above extreme overbought
cross below extreme oversold
recommended beginner alert use
start with real cross up and real cross down.
use overbought and oversold alerts only as context.
use extreme alerts as exhaustion warnings, not direct trade signals.
avoid activating every alert at once if you want a clean workflow.
beginner tutorial
step 1: start with the default oscillator type
begin with hybrid rsi plus stochastic.
this mode gives a balanced view between momentum and range behavior.
step 2: keep the default levels
use the default overbought, oversold and extreme levels first.
do not change too many settings before understanding the oscillator behavior.
step 3: enable the real cross line
turn on the real cross line to see where cross dots come from.
when the oscillator crosses above the line, upward momentum may be improving.
when the oscillator crosses below the line, momentum may be weakening.
step 4: read the zones
above overbought, the market is showing strong upside momentum.
below oversold, the market is showing strong downside momentum.
inside the middle area, the market is more balanced.
step 5: read extremes carefully
extreme overbought can show strong bullish pressure.
extreme oversold can show strong bearish pressure.
an extreme does not guarantee a reversal.
strong markets can stay extreme longer than expected.
step 6: confirm with price action
before using any oscillator event, check the main chart.
look for:
trend direction
support and resistance
market structure
candle close
volume reaction
higher timeframe context
risk to reward
step 7: keep the chart clean
do not use every signal as an entry.
focus on the main oscillator, real cross line, extreme zones and a few important dots.
example 1: upward cross from the lower zone
the oscillator is near the oversold area.
then it crosses above the real cross line.
an orange dot appears at the real cross.
this can suggest that downside momentum is cooling and upward pressure may be starting.
a beginner should wait for price confirmation, such as a higher low, bullish candle close or break of short-term resistance.
example 2: downward cross from the upper zone
the oscillator is near the overbought area.
then it crosses below the real cross line.
a magenta dot appears at the real cross.
this can suggest that upside momentum is weakening.
a beginner should wait for price confirmation, such as rejection, lower high or break of short-term support.
example 3: extreme overbought continuation
the oscillator reaches the extreme overbought zone.
top extreme dots appear.
this means momentum is very strong to the upside.
it does not mean a sell signal is confirmed.
in a strong trend, the oscillator can remain high while price continues moving upward.
example 4: extreme oversold continuation
the oscillator reaches the extreme oversold zone.
bottom extreme dots appear.
this means momentum is very strong to the downside.
it does not mean a buy signal is confirmed.
in a strong downtrend, the oscillator can remain low while price continues moving downward.
example 5: using the cross line for timing
price is near support.
the oscillator is low.
the oscillator crosses above the real cross line.
an orange dot appears.
this can be used as an early momentum recovery warning, but the trader should still wait for price structure confirmation before making a decision.
example 6: using overbought as context
price is in an uptrend.
the oscillator crosses above the overbought level.
this confirms strong bullish pressure.
instead of shorting immediately, a beginner can watch for continuation or wait for a later loss of momentum.
best use cases
momentum reading
overbought and oversold context
detecting oscillator cross events
watching exhaustion zones
supporting reversal analysis
supporting trend continuation analysis
building alert-based watchlists
confirming price action with momentum context
recommended beginner setup
oscillator type: hybrid rsi plus stochastic
length: 14
smoothing: 3
show real cross line: on
show level cross dots: on
show level lines: on
enable gradient fills: on
use cross dots as warnings
use extreme dots as context
confirm every idea on the price chart
practical workflow
first, identify the current trend on the main chart.
second, check whether the oscillator is near the upper, middle or lower zone.
third, watch the real cross line.
fourth, note any orange or magenta cross dot.
fifth, check whether price confirms the oscillator event.
sixth, define invalidation and risk before any trade idea.
seventh, avoid taking signals against a strong trend without extra confirmation.
limitations
the oscillator is based on historical price data.
signals can appear late during fast moves.
extreme zones can stay extreme during strong trends.
cross dots are momentum events, not guaranteed reversals.
the tool should not be used alone.
risk note
this indicator is designed for technical analysis and educational market study. it does not provide financial advice, investment advice or guaranteed trading signals. all dots, levels, crosses, alerts and visual zones are references that require independent confirmation and proper risk management.
Hybrid Oscillator is a visual oscillator designed to read momentum pressure, overbought conditions, oversold conditions, oscillator crosses, extreme zones and directional fading inside a separate chart pane.
the indicator combines a selected oscillator engine with a smoothed wave, a secondary cross line, gradient zones, level dots and alert conditions.
the goal is to help traders understand when momentum is expanding, when it is reaching an extreme area, when it is cooling down, and when the main oscillator line crosses its reference line.
this tool is not a trading strategy. it does not place trades, does not guarantee reversals and does not predict future price movement. it is a technical analysis tool for market context, momentum reading and visual confirmation.
main concept
the oscillator moves between 0 and 100.
values near the upper zone show stronger upside pressure or overbought conditions.
values near the lower zone show stronger downside pressure or oversold conditions.
the main oscillator line is the active momentum wave.
the real cross line is a smoother reference line.
when the main oscillator crosses above the real cross line, momentum may be recovering or shifting upward.
when the main oscillator crosses below the real cross line, momentum may be weakening or shifting downward.
what the indicator displays
main oscillator line
real cross line
upper and lower gradient zones
overbought level
oversold level
extreme overbought level
extreme oversold level
mid upper level
mid lower level
top extreme dots
bottom extreme dots
real cross dots
level lines
alert conditions
oscillator engines
the script includes several oscillator calculation modes.
rsi
uses relative strength index behavior.
this mode is useful for reading classic momentum strength and overbought or oversold behavior.
stochastic
uses stochastic positioning.
this mode focuses on where price is closing compared to its recent high and low range.
hybrid rsi plus stochastic
uses rsi first, then applies a stochastic calculation to the rsi behavior.
this mode focuses on momentum position inside the rsi range and gives a more reactive exhaustion style.
cci normalized
uses commodity channel index behavior and normalizes it into a 0 to 100 style range.
this mode can be useful for reading broader deviation and momentum pressure.
how the real cross line works
the real cross line is a smoothed version of the active oscillator.
it is not a separate oscillator type. it follows the selected engine.
if rsi mode is selected, the cross line follows the rsi-based oscillator.
if stochastic mode is selected, the cross line follows the stochastic-based oscillator.
if hybrid mode is selected, the cross line follows the hybrid oscillator.
if cci normalized mode is selected, the cross line follows the normalized cci oscillator.
the cross dots are based on the actual intersection between the main oscillator and the real cross line.
orange cross dots show an upward cross.
magenta cross dots show a downward cross.
input guide
source
selects the price source used by the oscillator.
common choices are close, hl2, hlc3 or ohlc4.
close is simple and reactive.
hlc3 is smoother because it includes high, low and close.
length
controls the base oscillator calculation period.
a lower value makes the oscillator faster and more sensitive.
a higher value makes the oscillator smoother and slower.
smoothing
controls the smoothing applied to the final oscillator.
a lower value reacts faster.
a higher value reduces noise but adds more delay.
oscillator type
selects the calculation engine.
rsi is classic momentum.
stochastic is range position.
hybrid rsi plus stochastic is a more sensitive momentum range model.
cci normalized is a deviation-based momentum model.
extreme overbought
sets the upper extreme zone.
when the oscillator reaches this area, upside momentum is considered stretched.
overbought
sets the main upper warning level.
crossing this level can mark a strong bullish extension.
mid upper
sets the upper midline reference.
this can be used to detect smaller upward crosses around the upper balance area.
mid lower
sets the lower midline reference.
this can be used to detect smaller downward crosses around the lower balance area.
oversold
sets the main lower warning level.
crossing this level can mark a strong bearish extension.
extreme oversold
sets the lower extreme zone.
when the oscillator reaches this area, downside momentum is considered stretched.
enable gradient fills
turns the upper and lower visual gradient zones on or off.
when enabled, the oscillator pane becomes easier to read visually.
gradient layers
controls the number of visual layers used for the gradient style.
more layers create a smoother visual feel.
show level cross dots
shows or hides the dots created by cross conditions and extreme conditions.
show real cross line
shows or hides the smoother cross reference line.
this line is useful when you want to see exactly where the oscillator cross dots come from.
show level lines
shows or hides the horizontal reference lines.
these lines help identify overbought, oversold, extreme and midpoint areas.
oscillator line width
controls the thickness of the main oscillator line.
higher values make the oscillator more visible.
lower values keep the chart cleaner.
how to read the dots
top extreme dots
these appear when the oscillator is inside the extreme overbought zone.
they indicate strong upside extension.
they do not mean price must reverse immediately.
bottom extreme dots
these appear when the oscillator is inside the extreme oversold zone.
they indicate strong downside extension.
they do not mean price must reverse immediately.
orange cross dots
these appear when the main oscillator crosses above the real cross line.
they can show a possible upward momentum shift.
magenta cross dots
these appear when the main oscillator crosses below the real cross line.
they can show a possible downward momentum shift.
important note about dots
cross dots are not automatic buy or sell signals.
they show technical events inside the oscillator.
always confirm with trend, support and resistance, candle close, volume and risk management.
alerts
the script includes alert conditions for:
cross above the real cross line
cross below the real cross line
cross above overbought
cross below oversold
cross above extreme overbought
cross below extreme oversold
recommended beginner alert use
start with real cross up and real cross down.
use overbought and oversold alerts only as context.
use extreme alerts as exhaustion warnings, not direct trade signals.
avoid activating every alert at once if you want a clean workflow.
beginner tutorial
step 1: start with the default oscillator type
begin with hybrid rsi plus stochastic.
this mode gives a balanced view between momentum and range behavior.
step 2: keep the default levels
use the default overbought, oversold and extreme levels first.
do not change too many settings before understanding the oscillator behavior.
step 3: enable the real cross line
turn on the real cross line to see where cross dots come from.
when the oscillator crosses above the line, upward momentum may be improving.
when the oscillator crosses below the line, momentum may be weakening.
step 4: read the zones
above overbought, the market is showing strong upside momentum.
below oversold, the market is showing strong downside momentum.
inside the middle area, the market is more balanced.
step 5: read extremes carefully
extreme overbought can show strong bullish pressure.
extreme oversold can show strong bearish pressure.
an extreme does not guarantee a reversal.
strong markets can stay extreme longer than expected.
step 6: confirm with price action
before using any oscillator event, check the main chart.
look for:
trend direction
support and resistance
market structure
candle close
volume reaction
higher timeframe context
risk to reward
step 7: keep the chart clean
do not use every signal as an entry.
focus on the main oscillator, real cross line, extreme zones and a few important dots.
example 1: upward cross from the lower zone
the oscillator is near the oversold area.
then it crosses above the real cross line.
an orange dot appears at the real cross.
this can suggest that downside momentum is cooling and upward pressure may be starting.
a beginner should wait for price confirmation, such as a higher low, bullish candle close or break of short-term resistance.
example 2: downward cross from the upper zone
the oscillator is near the overbought area.
then it crosses below the real cross line.
a magenta dot appears at the real cross.
this can suggest that upside momentum is weakening.
a beginner should wait for price confirmation, such as rejection, lower high or break of short-term support.
example 3: extreme overbought continuation
the oscillator reaches the extreme overbought zone.
top extreme dots appear.
this means momentum is very strong to the upside.
it does not mean a sell signal is confirmed.
in a strong trend, the oscillator can remain high while price continues moving upward.
example 4: extreme oversold continuation
the oscillator reaches the extreme oversold zone.
bottom extreme dots appear.
this means momentum is very strong to the downside.
it does not mean a buy signal is confirmed.
in a strong downtrend, the oscillator can remain low while price continues moving downward.
example 5: using the cross line for timing
price is near support.
the oscillator is low.
the oscillator crosses above the real cross line.
an orange dot appears.
this can be used as an early momentum recovery warning, but the trader should still wait for price structure confirmation before making a decision.
example 6: using overbought as context
price is in an uptrend.
the oscillator crosses above the overbought level.
this confirms strong bullish pressure.
instead of shorting immediately, a beginner can watch for continuation or wait for a later loss of momentum.
best use cases
momentum reading
overbought and oversold context
detecting oscillator cross events
watching exhaustion zones
supporting reversal analysis
supporting trend continuation analysis
building alert-based watchlists
confirming price action with momentum context
recommended beginner setup
oscillator type: hybrid rsi plus stochastic
length: 14
smoothing: 3
show real cross line: on
show level cross dots: on
show level lines: on
enable gradient fills: on
use cross dots as warnings
use extreme dots as context
confirm every idea on the price chart
practical workflow
first, identify the current trend on the main chart.
second, check whether the oscillator is near the upper, middle or lower zone.
third, watch the real cross line.
fourth, note any orange or magenta cross dot.
fifth, check whether price confirms the oscillator event.
sixth, define invalidation and risk before any trade idea.
seventh, avoid taking signals against a strong trend without extra confirmation.
limitations
the oscillator is based on historical price data.
signals can appear late during fast moves.
extreme zones can stay extreme during strong trends.
cross dots are momentum events, not guaranteed reversals.
the tool should not be used alone.
risk note
this indicator is designed for technical analysis and educational market study. it does not provide financial advice, investment advice or guaranteed trading signals. all dots, levels, crosses, alerts and visual zones are references that require independent confirmation and proper risk management.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
Light the candle that sleeps within you.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
Light the candle that sleeps within you.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.