OPEN-SOURCE SCRIPT
OBV + WaveTrend Volume Scalper [GratefulFutures]

This script is a combination script of three different strategies that provides buy and sell signals based on the change of volume with momentum confirmations.

Sources used:
This script relies on the outstanding scripts of the great script writer LazyBear:LazyBear
The following scripts were used in this publication:
1. A modified "On-Balance Volume Oscillator" modified from LazyBear's original script:
tradingview.com/v/Ox9gyUFA/
2. Wavetrend Oscillator with crosses, Author: LazyBear
tradingview.com/v/jFQn4jYZ/
3. Squeeze Momentum Oscillator, Author: LazyBear
tradingview.com/v/nqQ1DT5a/
This script functions based on the following criteria being true:
1. On balance volume oscillator turning from negative to positive (buy) or positive to negative (sell)
2. Squeeze Momentum value is increasing (buy) or decreasing (sell)
3. Wavetrend 1 (wt1) is greater than wavetrend 2 (wt2) (buy)/ Wavetrend 1 (wt1) is less than wavetrend 2 (wt2) (sell)
By combining these factors the indicator is able to signal exactly when net buying turns to net selling (OBV) and when this change is most advantageous to continue based on the momentum and price action of the underlying asset (SQMOMO and Wavetrend).
This allows you to pair volume and price action for a powerful tool to identify where price will reverse or continue providing exceptional entries for short term trades, especially when combined with other aspects such as support and resistance, or volume profile.
How to use:
Simply adjust the settings to your preference and read the given signals as generated.
Settings
There are multiple ways to tune the signals generated. It is set standard for my preferred use on a 1 minute chart.
OBV Oscillator Settings
The first 4 dropdowns in the Inputs section tune the On Balance Volume Oscillator (OBVO) portion of the indicator. You can choose if you want it to calculate based on close, open, high, low, or other value.
The most impactful in the entire settings is going to be the length and smoothing of the OBVO EMA. Making this number lower increasing the sensitivity to changes in volume, making the signals come quicker but is more susceptible to quick fluctuations. A value of between (5-20) is reasonable for the OBVO EMA length. There is a separate smoothing factor titled OBV Smoothing Length and below that, OBV Smoothing Type, a value of (2) is standard with "SMA" for smoothing type with a value of between 2-10 being reasonable. You may also play with these values to see what you like for your trading style.
Wavetrend Settings
The next 3 options are to modify the wavetrend portion of the indicator. I do not modify these from standard, and feel that they work appropriately on all time frames at the following values: n1 length (10), n2 length (20), Wavetrend Signal SMA length (4)
Squeeze Momentum Settings
The following 5 options through the end modify the Squeeze momentum portion of the indicator. The only one that modifies the signals generated is the KC Length, Making this number lower increasing the sensitivity to changes in price action, making the signals come quicker but is more susceptible to quick fluctuations. A value of between (18-25) is reasonable for KC Length.
Style Setting
You may select if you want to see the buy and sell signals. The following 5 options Raw OBV Osc through Squeeze Momentum allow you to see where each specific requirement was met, posted as a vertical line, but for live use it is recommended to turn all of these vertical lines off and only use the buy and sell signals.
Time Frames:
While this script is most effective on shorter time frames (1 minute for scalping and daytrading) it is also viable to use it on longer timeframes, due to the nature of its components being independent of time frame.
Examples of use - (Green and red vertical lines are for visualization purpose and are not part of the script)
SPY 1 Minute (Factory Settings):

SPX 15 minutes (Factory Settings):

Considerations
This script is meant primarily for short term trading, trades on the basis of seconds to minutes primarily. While they can be a good indication of volume lining up with momentum, it is always wise to use them in combination with other factors such as support, resistance, market structure, volume levels, or the many other techniques out there...
As Always... Happy Trading.
-Not_A_Mad_Scientist (GreatfulFutures Trade University)
Sources used:
This script relies on the outstanding scripts of the great script writer LazyBear:LazyBear
The following scripts were used in this publication:
1. A modified "On-Balance Volume Oscillator" modified from LazyBear's original script:
tradingview.com/v/Ox9gyUFA/
2. Wavetrend Oscillator with crosses, Author: LazyBear
tradingview.com/v/jFQn4jYZ/
3. Squeeze Momentum Oscillator, Author: LazyBear
tradingview.com/v/nqQ1DT5a/
This script functions based on the following criteria being true:
1. On balance volume oscillator turning from negative to positive (buy) or positive to negative (sell)
2. Squeeze Momentum value is increasing (buy) or decreasing (sell)
3. Wavetrend 1 (wt1) is greater than wavetrend 2 (wt2) (buy)/ Wavetrend 1 (wt1) is less than wavetrend 2 (wt2) (sell)
By combining these factors the indicator is able to signal exactly when net buying turns to net selling (OBV) and when this change is most advantageous to continue based on the momentum and price action of the underlying asset (SQMOMO and Wavetrend).
This allows you to pair volume and price action for a powerful tool to identify where price will reverse or continue providing exceptional entries for short term trades, especially when combined with other aspects such as support and resistance, or volume profile.
How to use:
Simply adjust the settings to your preference and read the given signals as generated.
Settings
There are multiple ways to tune the signals generated. It is set standard for my preferred use on a 1 minute chart.
OBV Oscillator Settings
The first 4 dropdowns in the Inputs section tune the On Balance Volume Oscillator (OBVO) portion of the indicator. You can choose if you want it to calculate based on close, open, high, low, or other value.
The most impactful in the entire settings is going to be the length and smoothing of the OBVO EMA. Making this number lower increasing the sensitivity to changes in volume, making the signals come quicker but is more susceptible to quick fluctuations. A value of between (5-20) is reasonable for the OBVO EMA length. There is a separate smoothing factor titled OBV Smoothing Length and below that, OBV Smoothing Type, a value of (2) is standard with "SMA" for smoothing type with a value of between 2-10 being reasonable. You may also play with these values to see what you like for your trading style.
Wavetrend Settings
The next 3 options are to modify the wavetrend portion of the indicator. I do not modify these from standard, and feel that they work appropriately on all time frames at the following values: n1 length (10), n2 length (20), Wavetrend Signal SMA length (4)
Squeeze Momentum Settings
The following 5 options through the end modify the Squeeze momentum portion of the indicator. The only one that modifies the signals generated is the KC Length, Making this number lower increasing the sensitivity to changes in price action, making the signals come quicker but is more susceptible to quick fluctuations. A value of between (18-25) is reasonable for KC Length.
Style Setting
You may select if you want to see the buy and sell signals. The following 5 options Raw OBV Osc through Squeeze Momentum allow you to see where each specific requirement was met, posted as a vertical line, but for live use it is recommended to turn all of these vertical lines off and only use the buy and sell signals.
Time Frames:
While this script is most effective on shorter time frames (1 minute for scalping and daytrading) it is also viable to use it on longer timeframes, due to the nature of its components being independent of time frame.
Examples of use - (Green and red vertical lines are for visualization purpose and are not part of the script)
SPY 1 Minute (Factory Settings):
SPX 15 minutes (Factory Settings):
Considerations
This script is meant primarily for short term trading, trades on the basis of seconds to minutes primarily. While they can be a good indication of volume lining up with momentum, it is always wise to use them in combination with other factors such as support, resistance, market structure, volume levels, or the many other techniques out there...
As Always... Happy Trading.
-Not_A_Mad_Scientist (GreatfulFutures Trade University)
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。