[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Plotshapes above H offset at all time frames.



PureBytes Links

Trading Reference Links

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;



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/