OPEN-SOURCE SCRIPT

MultiTFlevels with Volume Display

1. Overview

This indicator is intended for use on trading platforms like TradingView and provides the following features:

Volume Profile Analysis:
Shows cumulative volume delta (CVD) and displays buying and selling volumes.

Historical OHLC Levels:
Plots historical open, high, low, and close levels for various timeframes (e.g., daily, weekly, monthly).

Customizable Settings:
Allows users to toggle different elements and customize display options.

2. Inputs

Timeframe Display Toggles:
Users can choose to display OHLC levels from different timeframes such as previous month, week, day, 4H, 1H, 30M, 15M, and 5M.

CVD Display Toggle: Option to show or hide the Cumulative Volume Delta (CVD).

Line and Label Customization:
leftOffset and rightOffset: Define how far lines are extended left and right from the current bar.
colorMonth, colorWeek, etc.: Customize colors for different timeframe OHLC levels.
labelOffset and rightOffset: Control the positioning of volume labels.

3. Key Features

Cumulative Volume Delta (CVD)

Calculation:
Computes the cumulative volume delta by adding or subtracting the volume based on whether the close price is higher or lower than the open price.

Display:
Shows a label on the chart indicating the current CVD value and whether the market is leaning towards buying or selling.
Historical OHLC Levels

Data Retrieval:
Uses the request.security function to fetch OHLC data from different timeframes (e.g., monthly, weekly, daily).

Plotting:
Draws lines and labels on the chart to represent open, high, low, and close levels for each selected timeframe.



Buying and Selling Volumes

Calculation:
Calculates buying and selling volumes based on whether the close price is higher or lower than the open price.

Display:
Shows labels on the chart for buying and selling volumes.

4. Functions

getOHLC(timeframe)
Retrieves open, high, low, and close values from the specified timeframe.

plotOHLC(show, open, high, low, close, col, prefix)
Draws OHLC lines and labels on the chart for the given timeframe and color.

5. Usage

Chart Overlay: The indicator is overlaid on the main chart (i.e., it appears directly on the price chart).

Historical Analysis:
Useful for analyzing historical price levels and volume dynamics across different timeframes.

Volume Insights:
Helps traders understand the cumulative volume behavior and market sentiment through the CVD and volume labels.


In essence, this indicator provides a comprehensive view of historical price levels across multiple timeframes and the dynamics of market volume through CVD and volume labels. It can be particularly useful for traders looking to combine price action with volume analysis for a more in-depth market assessment.
educationalmultitimeframePivot points and levels

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss