[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coloring built-in Volume charts



PureBytes Links

Trading Reference Links

Hello,

I have modified Tomasz's built-in volume chart to color up/down bar 
as follow; However It does not seem to work. Anyone sees the 
obvious. Thanks



upvol = C > Ref( C, -1 ); // todayVolume is higher than yesterday
downvol = C < Ref( C, -1 ); // todayVolume is lowerr than yesterday


//--Indicator-End-- -- do not remove this line
//Plot( Volume,"Volume", -8, 4 );

/* Colourized price bars drawn here */
Graph0 = Volume;
Graph0Style = 128; // Bar Graph
barcolor = IIf( downvol, 4, IIf( upvol, 8, 9 ) );
Graph0BarColor = ValueWhen( barcolor != 0, barcolor );



"(Interpretation is not available yet)";