|December 6th, 2014, 11:56 AM||#1 (permalink)|
edmonton alberta canada
Futures Experience: Intermediate
Favorite Futures: es
Posts: 2 since May 2014
Thanks: 0 given, 1 received
Hey all, would appreciate some assistance with the following tos code.
The code plots volume spikes on the upper part of the chart, just under the corresponding candle.
My objective is to have the code display only during regular market hours, as premarket plotting creates a lot of excess noise on the chart.
input price = close;
input VolumeFastLength = 1;
input VolumeSlowLength = 20;
def VolumeOsc = (Average(volume, VolumeFastLength) - Average(volume, VolumeSlowLength)) / Average(volume, VolumeSlowLength);
plot VolumeSpike = VolumeOsc > 1;