Friday 18 October 2019

Displayed Volume in candle shape for Amibroker (AFL)

Here is an indicator that displays volume in candle shape. The standard way of displaying volume in histogram form making the bars too narrow. The new form seems more user friendly, as least to me :).

 Displayed  Volume in candle shape for Amibroker (AFL)


_SECTION_BEGIN( "Volume" );
ShowVolume  = ParamToggle( "Show Volume","No|Yes" , 1 );
if ( ShowVolume )
{
    VolColor = ( C >= O)*ParamColor ("UpColor" ,colorGreen) +
                   ( C < O)*ParamColor( "DnColor" ,colorRed) ;

    PlotOHLC(0, V, 0, V, "V", VolColor , styleOwnScale|styleCandle,  20) ;
}
_SECTION_END();

No comments:

Post a Comment

Thanks