lostcoastsurf
Member
I have a "spike" volume study I place on my chart and I would like the Painted study to not interfere with viewing the candles forming. Is there a way to place the study behind/underneath the candles on a chart.
Volume spike study:
Volume spike study:
Code:
input length = 50;
plot VolAvg = Average(volume, length);
VolAvg.SetDefaultColor(GetColor(7));
input type = { default SMP, EXP } ;
#input length1 = 20 ;
input hotPct = 70.0 ;
def ma =
if type == type.SMP then
SimpleMovingAvg(volume, length)
else
MovAvgExponential(volume, length);
plot hv =
if 100 * ((volume / ma)-1 ) >= hotPct then
ma
else
Double.NaN;
hv.SetDefaultColor( Color.WHITE);
hv.SetLineWeight(5) ;
hv.SetPaintingStrategy( PaintingStrategy.HISTOGRAM);