I've updated this indicator to use a different approach. It now shows daily volume of various contracts months for an instrument. Highlights the contract with the highest volume, if another contract has higher volume then that on the chart. When this happens, then it's time to rollover.
- Make sure you choose an explicit session template for the chart. Do not choose <Use Instrument Settings>
- Make sure at least 3 valid future contract months are defined in your Instrument Manager default instrument list
- Add an optional comma separated list of future contracts for your instrument in 'Contracts List' parameter Ex: "CL 01-12, CL 02-12, CL 03-12". If blank, the next 3 future contracts will be used. These contracts must be defined in your default instruments list
- Add the current contract name to the parameter 'Current Contract'. If blank, the current chart contract will be used.
The indicator requires that your broker sends daily volume data as a separate message. I use it with Mirus and Interactive Brokers. I don't know if all brokers do this.
Warning:
This indicator uses un-supported code, namely using variables in the Add() method. This may have unpredictable results in NT behavior, like a frozen chart. I have put in code to try to prevent this, and tested successfully with various instruments. I can't guarantee this for every instrument and every configuration, so please test in your environment before using live.
VIP Only, please do not distribute outside of the Elite Circle.
Mike's version, posted in June of 2009, was downloaded almost 700 times!
It colors the volume bars based on a sophisticated linear regression analysis without using bid ask volume data. It corresponds well with Delta Momentum generated from GomRecorder buy/sell volume.
I applied Richard's optimization method from his article, aboot the right way to call external indicators, at MoveTheMarkets.com. (eh?)
This greatly improves the performance, so much so that in NT7 it can run with CalculateOnBarClose = false. However, DO NOT run it this way. CoBC must be true for it to calculate correctly... for now.