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

[amibroker] Re: INSIDE DAYS



PureBytes Links

Trading Reference Links


Maybe this would help,

/* Connors and Raschke Historical Volatility System
    For further explanation, refer to "Street Smarts"
    from Connors and Raschke.
    Ported from Metastock code by Daniel Ervi           */
NumColumns = 7;
VolRatio =  StDev(log(C/Ref(C,-1)),6) / StDev(log(C/Ref(C,-1)),100);
NORMVolRatio =  ((VolRatio - LLV(VolRatio,100)) / (HHV(VolRatio,100) -
LLV(VolRatio,100)))*100;
Column0 =  VolRatio;
Column0Name = "VolRatio";
NR4Day = ((H - L) < Ref(LLV(H-L,3),-1));
Column1 =  NR4Day;
Column1Name = "Nr4Day";
InsideDay = (H < Ref(High,-1)) AND (Low > Ref(Low,-1));
Column2 =  InsideDay;
Column2Name = "Inside Day";
Column3 =  High + 0.125;
Column3Name = "Buy Stop";
Column4 =  Low - 0.125;
Column4Name = "Sell Stop";
Column5 =  Low;
Column5Name = "Low";
Column6 =  High;
Column6Name = "High";
Buy = ((VolRatio <= 0.5) OR (NR4Day == 1 OR InsideDay == 1));
Filter = Buy;  
/* Plot(VolRatio, "HVR", 4, 1+4);  /*RED -TOP*/
//Plot(VolRatio, "HVR", 1, 1);  /*RED -TOP*/
Plot(NORMVolRatio, "NORMHVR", 1, 1);  /*RED -TOP*/
//Plot(1.5,"HighVol",2,1);
//Plot(0.5,"LowVol",2,1);
AddColumn(Column0,"VolRatio");

rgds, Pal
--- In amibroker@xxxxxxxxxxxxxxx, "renilange" <reni.lange@xxxx> wrote:
> 
> Is it possible to show NR4 / narrowest range of last 4 days??
> Regards  Reni
> 
> --- In amibroker@xxxxxxxxxxxxxxx, kaveman perth <kavemanperth@xxxx> 
> wrote:
> > Inside days is fairly easy
> > Plotshapes(shapeuparrow*inside(), colorblue, 0, L, -10 );
> > 
> > the other would depend on how you define "closer" but similar to 
> above
> > with your conditions in place of Inside()
> > 
> > 
> > On Thu, 11 Nov 2004 04:47:21 -0000, renilange <reni.lange@xxxx> 
> wrote:
> > > 
> > > 
> > > On a daily price chart:I would like to plot arrows to show
> > > inside days and plot another type of arrow to show days that 
> start
> > > and end closr to the same price.
> > > 
> > > Could you help me??  Thank you.  Reni
> > > 
> > > 
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > > 
> > > Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/