Overview: The Differentiated Buy Pressure indicator is a custom Pine Script™ indicator designed to measure and visualize buy and sell pressure in the market. It calculates buy pressure based on a combination of volume, range, and gap, and provides a differentiated buy pressure which is shifted by 90°, offering predictive insights.
Inputs:
Window Size: The window size for average calculation (default: 20). Show Overlay: Option to show the price overlay (default: false). Overlay Boost Factor: Boosting factor for overlaying the price (default: 0.01). Calculations:
Relative Range: Calculated as (high - low) / close. Average Range: Simple moving average of the relative range over the specified window. Average Volume: Simple moving average of the volume over the specified window. Relative Gap: Calculated as open / close[1]. Average Gap: Simple moving average of the relative gap over the specified window. Buy Pressure: Calculated using the formula:
Zero Line: A horizontal line at zero for reference. Buy Pressure: Plotted in blue, representing the calculated buy pressure. Differentiated Buy Pressure: Plotted in red, representing the differentiated buy pressure. Overlay: Optionally plots the price overlay boosted by the differentiated buy pressure. Labels:
Labels are created to display the buy pressure and differentiated buy pressure values on the chart. Usage: This indicator helps traders visualize the buy and sell pressure in the market. Positive values indicate buy pressure, while negative values indicate sell pressure. The differentiated buy pressure, shifted by 90°, provides predictive insights into future market movements.
This documentation provides a comprehensive overview of the Differentiated Buy Pressure indicator, explaining its purpose, inputs, calculations, and usage.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. Você pode favoritá-lo para usá-lo em um gráfico.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.