Dear Friends fo Amibroker,
i think the Volume at Price is a very powerful indicator, so my dream is to explore all sp500 stocks for a volume price at price, which is the highest value of the last 260 trading days.
so often at these level a nice bottom is found.
at first, here is the indicator i found in internet. instead of the year --> we need 260 bars.
is that possible? becaus in january we only have a few days to watch....
_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");
segments = IIf( Interval() < inDaily, Hour(), year() );
segments = segments != Ref( segments , -1 );
PlotVAPOverlayA( segments , Param("Lines", 300, 10, 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, "", colorDarkGrey, styleHistogram | styleOwnScale );
_SECTION_END();
then here is mey try to code that, buy it doesnt work very well....
can you make it better please?
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("VAP");
segments = IIf( Interval() < inDaily, Day(), Year() );
segments = segments != Ref( segments , -1 );
_SECTION_END();
c1 = HHV(segments, 260);
c2 = segments =c1;
Filter= c2;
for example check the ticker mkc, here on the highest vap values a nice bottom was formed then the rallye began... thats i wanna find.
thanks for your great help