# Need 52 week high and low price showing Amibroker Exploration AFL

#### wallclimber

##### New Member
Dear Sir,
I need Need 52 week high and low price showing "Amibroker Exploration AFL" . The logic is, afl containing 4 Column. 1st Column shown 52 week high price. 2nd Column shown 52 week low price. 3rd Column shown present/ today's close price and 4th Column shown % Change with 52 week high price and present close price.
I will be grateful if anybody help me.

Thanks with Regards
Wall

#### wallclimber

##### New Member
Seen by 172 but not a single reply !

#### jagankris

##### Well-Known Member
Dear Sir,
I need Need 52 week high and low price showing "Amibroker Exploration AFL" . The logic is, afl containing 4 Column. 1st Column shown 52 week high price. 2nd Column shown 52 week low price. 3rd Column shown present/ today's close price and 4th Column shown % Change with 52 week high price and present close price.
I will be grateful if anybody help me.

Thanks with Regards
Wall
Try this

_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() );

HI = Close > Ref(HHV(High,260),-1);
LW = Close < Ref(LLV(Low,260),-1);
HI1 = Ref(HHV(High,260),-1);
LW1 = Ref(LLV(Low,260),-1);
Filter = HI OR LW;

AddColumn( Ref(HHV(High,260),-1), "52 Week High", 1 );
AddColumn( Ref(LLV(Low,260),-1), "52 Week Low", 1 );
AddColumn(((HI1 - C)/HI1)*100, "% From High", 1.2 );
AddColumn(((C - LW1)/LW1)*100, "% From Low", 1.2 );
_SECTION_END();

Last edited:

#### simple

##### Member
Try this

_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() );

HI = Close > Ref(HHV(High,260),-1);
LW = Close < Ref(LLV(Low,260),-1);
HI1 = Ref(HHV(High,260),-1);
LW1 = Ref(LLV(Low,260),-1);
Filter = HI OR LW;

AddColumn( Ref(HHV(High,260),-1), "52 Week High", 1 );
AddColumn( Ref(LLV(Low,260),-1), "52 Week Low", 1 );