Hi Friends,
This code helps in NR7 exploration and the result gives the follow
Symbol - Nr7date - HighPrice - LowPrice - Range.
Can somebody please add a code where I will be getting the 4 day High and low price of the stock and total volume in the explore code.
It should throw out the result like this :
Symbol - Nr7date - HighPrice - LowPrice - Range - 4 Day High - 4 Day Low - TotalVolume - Close Price
Below is the Nr7 Code :
_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
This code helps in NR7 exploration and the result gives the follow
Symbol - Nr7date - HighPrice - LowPrice - Range.
Can somebody please add a code where I will be getting the 4 day High and low price of the stock and total volume in the explore code.
It should throw out the result like this :
Symbol - Nr7date - HighPrice - LowPrice - Range - 4 Day High - 4 Day Low - TotalVolume - Close Price
Below is the Nr7 Code :
_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