DYO: Bar's volume from filtered Tick Volumes
|
Q: Is there a way for me to create a DYO filter which will selectively filter and then add the cumulative value of volume that is trading above >20 contracts - on the E Mini contract for each bar as it forms?
A:
Template: 1300-BigBlocks
Use a private GV such as [250] in the example. That way the DYO can be applied to more than one chart. This GV used for the sum needs to be preserved between calculations, and using a GV private to the chart is a way to do that. This sum is reset to zero on the First tick of a new bar by Lines A and B.
Edit the Number field on Line D to be the desired threshold.
Change the Study Scale to a fixed range, and adjust the Scale High as appropriate for the chart you use the DYO with.
Important: On the chart properties, uncheck the Optimized option. Optimized skips calculating on equal price ticks, and with this DYO it needs to calculate on all ticks. Equal price ticks might have a tick volume to be summed.
Sorry, I do not have a way to remember prior results form the DYO for redisplay when the chart is opened again. The image will only show for the data collected while the chart is open.
Template: 1300-BigBlocks
Last modified 1/17/08 5:51 PM
|