Anant,
Wonderful is all I can say. Thanks a ton for this one.
BUT
One - or rather 2 small details needed with this are :
1. NR4 (on same lines as NR7) and
2. NR1 or rather an Inside Day
If these are added too, then it would be wonderfully wonderful
Wonderful is all I can say. Thanks a ton for this one.
BUT
One - or rather 2 small details needed with this are :
1. NR4 (on same lines as NR7) and
2. NR1 or rather an Inside Day
If these are added too, then it would be wonderfully wonderful
Hello Murtaza Bhai,
I have modified the AFL which I have posted above so that it can be used for charting as well as exploration. I have already attached the chart above. Here I am attaching the screen shot of the exploration results.
Hope this AFL is useful to all those work with AmiBroker.
******************************************************
_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;}
if(Status("action") == actionIndicator)
{
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);
}
if(Status("action") == actionExplore)
{
Filter = NR7;
SetOption("NoDefaultColumns", True)
AddTextColumn(Name(), "Symbol");
AddColumn(DateTime(), "NR7 Date", formatDateTime);
AddColumn(H, "High Price", 6.2);
AddColumn(L, "Low Price", 6.2);
AddColumn(R, "Range", 6.2);
}
_SECTION_END();
****************************************************
Regards
-Anant
I have modified the AFL which I have posted above so that it can be used for charting as well as exploration. I have already attached the chart above. Here I am attaching the screen shot of the exploration results.
Hope this AFL is useful to all those work with AmiBroker.
******************************************************
_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;}
if(Status("action") == actionIndicator)
{
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);
}
if(Status("action") == actionExplore)
{
Filter = NR7;
SetOption("NoDefaultColumns", True)
AddTextColumn(Name(), "Symbol");
AddColumn(DateTime(), "NR7 Date", formatDateTime);
AddColumn(H, "High Price", 6.2);
AddColumn(L, "Low Price", 6.2);
AddColumn(R, "Range", 6.2);
}
_SECTION_END();
****************************************************
Regards
-Anant