Edmonton Alberta Canada
Experience: Advanced
Platform: NinjaTrader
Trading: Futures
Posts: 10 since May 2014
Thanks Given: 5
Thanks Received: 6
|
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.
Thanks
input price = close;
input VolumeFastLength = 1;
input VolumeSlowLength = 20;
def VolumeOsc = (Average(volume, VolumeFastLength) - Average(volume, VolumeSlowLength)) / Average(volume, VolumeSlowLength);
plot VolumeSpike = VolumeOsc > 1;
VolumeSpike.SetDefaultColor(Color.white);
VolumeSpike.SetLineWeight(1);
VolumeSpike.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
|