Displays volume data in panel on bottom right of screen. Shows current bar, change from last bar and average of last 20 bars. This number can be changed in settings if you wish to have the average calculated on a different amount of bars.
This script shows the difference between a future's continuous current contract (e. g. CL1!) and the continuous next contract (e. g. CL2!). Normally, the next contract is more expensive ("Contango" - shown in green). If the next contract is cheaper, the difference is negative ("Backwardation" - shown in red).
A change between Contango and Backwardation...
Chart Timeframe Detection - Function
A small and effective function to detect the current chart timeframe in minutes.
It can be used to further detect a specific chart timeframe (a daily timeframe or even a 16h39m timeframe).
The result is returned as integer.