Volume accumulation on past range [TCS] | VTAThe indicator calculates buy and sell volume values for different look-back periods based on the high, low, close, and tick volume data of the chart.
The range can be selected by adding the end date and the look-back period, which starts from the end date. It can calculate a maximum of 100 candlesticks.
The calculated buy and sell volume values are stored in separate variables, representing cumulative volume values over their respective look-back periods. It's important to note that the provided code calculates the buy and sell volume values individually for each look-back period and then sums them.
This information can be useful in understanding who is in control of the market during the selected range. The 'heatmap' is particularly helpful in identifying areas of high or low trading activity, which can help define support and resistance levels.
For example, if there is a greater accumulation of bullish volume than bearish volume and a break occurs in a resistance area, it may present a good entry opportunity.
Please note that this indicator is for educational purposes only and should not be used for trading without further testing and analysis.