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:
2. Wavetrend Oscillator with crosses, Author: LazyBear
3. Squeeze Momentum Oscillator, Author: LazyBear
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)
Onbalancevolumeflow
OBV based on MADescription:
This indicator calculates On-Balance Volume (OBV) based on the direction of a Simple Moving Average (SMA). Instead of using price movements, this OBV adds or subtracts volume depending on whether the SMA is rising or falling.
SMA-based OBV: When the SMA rises, the volume is added to the OBV. When the SMA falls, the volume is subtracted from the OBV. This allows traders to observe cumulative volume in relation to the wave patterns created by the SMA.
SMA Period: The period of the SMA can be customized, allowing traders to adjust it according to the wave size they want to observe.
While the cumulative volume indicator already exists, traders who analyze volume patterns can use this indicator to more easily conduct volume analysis across different wave sizes.
Inputs:
SMA Period: Defines the lookback period for calculating the Simple Moving Average (default is 25).
Ideal for:
Traders who want to analyze volume flow relative to moving average trends, rather than price movements. This can help identify underlying strength or weakness in market trends.
説明:
このインジケーターは、単純移動平均(SMA)の方向に基づいてオンバランス・ボリューム(OBV)を計算します。価格の動きではなく、SMAが上昇しているときは出来高を加算し、SMAが下降しているときは出来高を減算します。
SMA基準のOBV: SMAが上昇している場合はOBVに出来高が加算され、SMAが下降している場合は出来高が減算されます。これにより、SMAが作る波形に即した累積出来高を観察することができます。
SMA期間: トレーダーが見たい波のサイズ感に応じて、SMAの期間をカスタマイズできます。
既に累積出来高(Cumulative Volume)というインジケーターは存在しますが、波形を基に出来高を分析しているトレーダーは、このインジケーターを使うことで、様々なサイズの波形に即した出来高分析をより簡単に行うことができます。
入力項目:
SMA期間: 単純移動平均の計算に使用される期間を定義します(デフォルトは25)。
適しているトレーダー:
より波形に即した累積出来高分析を重視するトレーダーに最適です。

