double myValue = (Volume[0] - VSMA(30)[0]) / (VSMA(30)[0]) * (100);
Plot0.Set(myValue);
It plots but I am not getting the correct values...
Basically I want the days current volume to be compared to the 30 day average of volume in a % form so that if the 30 day average is 1 million and today it is trading on 2 million the indicator reads +100. I need this for a market analyzer scan.
perhaps instead of calling the Vol SMA I need to script it all in the same script? Not sure, very new at coding...
If anyone can help I really would appreciate it or if this code is out there already I really need it... Part of me thinks my problems may be coming from "OnBarUpdate"
Thanks for any help!
R.T.
Comment