Hi,

I would like to get intraday Volume-at-Price AND composite
Volume-at-Price on the same chart.  I did build my chart using
PlotVAPOverlayA() and PlotVAPOverlay() function.  I can only see either
one or the other, but not both at the same time?

Here is the intraday VAP:  http://screencast.com/t/YjRiZGU5Nj
<%20%20http://screencast.com/t/YjRiZGU5Nj>

Here is the composite VAP:  http://screencast.com/t/MDkxZTM0OTc
<http://screencast.com/t/MDkxZTM0OTc>

I am not that good in playing with AFL so I'm not sure where the issue
is. Currently running Amibroker 5.20.

Thanks for your help Amibroker's fan!

Michael


Here is the code I use:

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g,
Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C,
1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();


_SECTION_BEGIN("VAP-COMPOSITE");
PlotVAPOverlay( 300, 100, colorDarkBlue,4 );
_SECTION_END();


_SECTION_BEGIN("VAP-INTRADAY");
segments = IIf( Interval() < inDaily, Day(), Month() );
segments = segments != Ref( segments , -1 );

PlotVAPOverlayA( segments , Param("Lines", 300, 100, 1000, 1 ),
Param("Width", 80, 1, 100, 1 ), ParamColor("Color", colorGold ),
ParamToggle("Side", "Left|Right" ) | 2 * ParamToggle("Style",
"Fill|Lines", 0) | 4*ParamToggle("Z-order", "On top|Behind", 1 ) );
Plot(segments, "", colorLightGrey, styleHistogram | styleOwnScale );
_SECTION_END();


Reply via email to