Per commodity trader's request, here is the export of my edited version. This adds a variable to define a trade volume limit value to use in the cum. delta calculation.
I.e. if trade is < 50 contracts, do not add to cum. delta.
if trade is >= 50 contracts, trade is added to cum. delta.
You'll have to manually edit the source to change the limit value (variable is Vol_Lim currently set at 50) to a setting to your liking.
I have not tested this at all. So if anyone does test it, please post with the results.
Comment