Hi,
I downloaded the NRx formula from the library and changed the
plotshapes to go with an an offset so all NRx's are above the High.
This all works well on a two day 15 min graph, but as soon as I change
to a 1 day interval, all plotshapes are squised together. Is there a
way to make the offset dynamic so it changes with the intervals on the
graph. The offset is measured in pixels this I might need to change to
something else. TohMz who created this formula had the NR4 below the
low, the NR7 above the High, and the NR1 smack in the middle of HIgh
and Low. This works in all time frames, but I would like to have all
NRx above the H and obviously all visible at the same time. 

Thanks.

Juliette.  


_N(Title = StrFormat("{{NAME}}- {{INTERVAL}} {{DATE}} O= %g, H= %g, L=
%g, C= %g (%.1f%%) V= " +WriteVal( V, 1.0 ) +"\n{{VALUES}}", O, H, L,
C, SelectedValue( ROC( C, 1 )) ));
PriceStyle = GetPriceStyle();
PriceStyleOpt = ParamStyle("Style") | PriceStyle;

if (PriceStyle==styleCandle)
   Plot( C, "", colorBlack,  PriceStyleOpt); 
else
   Plot( C, "", IIf( Close >= Ref(C, -1), colorBlue, colorRed ),
PriceStyleOpt);


NRx = ParamList("4 or 7 Days Narrow Range", "All|NR4|NR7");

rang=High-Low;

if (NRx=="NR4" OR NRx=="All")
{
   nr4=IIf(rang==LLV(rang,4),shapeDigit4,shapeNone);
   PlotShapes(nr4,colorRed,0, offset = H+175);
}

if (NRx=="NR7" OR NRx=="All")
{
   nr7=IIf(rang==LLV(rang,7),shapeDigit7,shapeNone);
   PlotShapes(nr7,colorGreen,0, offset= H + 250);

}

InsideBar = Inside() OR (Ref(H, -1)==H AND Ref(L, -1)<L) OR (Ref(H,
-1)>H AND Ref(L, -1)==L);
nr1=IIf(InsideBar, shapeDigit1,shapeNone);

PlotShapes(nr1,colorYellow,0, Offset =H +100);
GraphXSpace = 5;


Reply via email to