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

Re: coloring built-in Volume charts



PureBytes Links

Trading Reference Links

Yes, It works. Thanks very much Frank.

--- In amibroker@xxxx, Frank <fesnay@xxxx> wrote:
> Try this:
> 
> upvol = C > Ref( C, -1 ); // todayVolume is higher than yesterday
> downvol = C < Ref( C, -1 ); // todayVolume is lowerr than yesterday
> 
> barcolor = IIf( downvol, 4, IIf( upvol, 8, 9 ) );
> 
> /* Colourized price bars drawn here */
> //Graph0BarColor = barcolor;
> Graph0Style = 2+4; // Bar Graph
> Graph0BarColor = barcolor;
> Graph0 = Volume;
> 
> //--Indicator-End-- -- do not remove this line
> //Plot( Volume,"Volume", -8, 4 );
> 
> Two major changes -
> the //--Indicator-End-- has to be AFTER all coding.
> change the barchart to a histrogram. That is the "2" + "4" for fat.
> 
> Frank
> 
> At 06:47 PM 7/2/02 +0000, you wrote:
> >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)"
> >
> >
> > 
> >
> >Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> >