hi friends
Here is an afl which plots 9month high,6month high,3 months high as lines on daily chart.
BUT SOMETHING IS AMISS as you use bar replay as highs keep shifting.
can somebody comment and fix the mistakes!
Here is an afl which plots 9month high,6month high,3 months high as lines on daily chart.
BUT SOMETHING IS AMISS as you use bar replay as highs keep shifting.
can somebody comment and fix the mistakes!
HTML:
IIf(H>Ref(HHV(H, 9*20), -1),Plot (9,"9",colorRed),Plot( 0,"0",colorCustom12));
IIf(H>Ref(HHV(H, 125), -1), Plot (6,"6",colorGreen),Plot( 0,"0",colorBlue));
IIf(H>Ref(HHV(H, 3*20), -1), Plot (3,"3",colorBlue),Plot( 0,"0",colorBlue));
_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 | styleOwnScale | GetPriceStyle() );
_SECTION_END();
Last edited: