I get the registered enum value by opening a chart and look the the Data Series. Under type, I count the order number of the custom bar type that appears in the dropdown box.
Say this is 16.
I then added this:
else if (State == State.Configure)
{
AddVolumetric("ES 06-23", (BarsPeriodType)16, 100, VolumetricDeltaType.BidAsk, 1);
}
Error on calling 'OnStateChange' method: '16' cannot be used as base bars period type for 'Volumetric'.
I would appreciate any advise on how to add a custom bar to AddVolumetric().

Comment