This function will plot a bar chart of an expression for Weekly or Monthly data based on Daily Close data. For example, for a weekly chart, it will calculate a single spread value for each day of the week, then the following weekly bar will be created:
-
Open price = Monday’s Close price for the calculated spread value.
-
High price = the highest Close price for the calculated spread values for the week (Monday – Friday)
-
Low price = the lowest Close price for the calculated spread values for the week (Monday – Friday)
-
Close price = Friday’s Close price for the calculated spread value.
Parameters:
Expression — data source function. It could be a spread or other calculation.
Example with Defaults: DSpread(QCL@1-EB@1)
Adding the DSpread Study to a Chart
Open a new chart. For the Chart’s Symbol, enter “DSpread(expression)” and press the ENTER key. Change the chart type to a Bar chart and the Interval to either Weekly or Monthly.