Hi,
Here is the AFL for plotting NR7. The AFL puts a '7' under the NR7 bars. When the Selector line (the vertical line in the chart window) is on the NR7 bar a highlight appears in the chart title with a label *NR7* in Green color. When the line is on any other bar the highlight does not appear. I have attached a screen shot so that you can see this.
The AFL is as follows:
********************************************
_SECTION_BEGIN("NR7");
R = H - L;
NR7 = False;
for(i = 7; i < BarCount; i++)
{ if( R < R[i - 1] AND R < R[i -2] AND R < R[i - 3] AND R < R[i - 4] AND R < R[i - 5] AND R < R[i - 6]) NR7 = True;}
Marker = shapeDigit7 * NR7;
MarkerColor = colorYellow;
MarkerDist = L * 0.995;
_N(Title = StrFormat("{{NAME}}, {{DATE}} ({{INTERVAL}}: {{VALUES}}") + EncodeColor(colorBrightGreen) + WriteIf(NR7, "*NR7*", ""));
PlotOHLC(O, H, L, C, "Close", colorLightGrey, styleBar);
PlotShapes(Marker, MarkerColor, 0, MarkerDist);
_SECTION_END();
************************************************
The screen shot is here:
Regards
-Anant