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

[amibroker] Re: can some one help to code this



PureBytes Links

Trading Reference Links

Hi,

I only purchased Amibroker on Saturday night. If you try what I have 
below it will give you the bars since the time the ROC > 10%.

I haven't played with dates in Amibroker yet. If you know the date of 
the last bar and you can subtract bsR1 from it you ave your answer.

Regards
Steve

R1= HOLD(ROC(C,10)>10,20);
//D1=Valuewhen(R1,DateNum());

// this will bars since the most recent time ROC > 10%
BSR1 BarsSince(Cross(R1,0.5));

Filter=R1;
Addcolumn(R1,"ROC_10%");
Addcolumn(BSR1,"Bars Since R1");



--- In amibroker@xxxxxxxxxxxxxxx, "ramvilas" <vilasram@xxx> wrote:
>
> thanx lot STEVE
> I have tried this but not giving me required result.I need the 
dates 
> on which the stocks hit more than 10% when i scan or explore.
> I tried like the following but it is giving me all todays date. 
> R1= HOLD(ROC(C,10)>10,20);
> D1=Valuewhen(R1,DateNum());
> Filter=R1;
> Addcolumn(R1,"ROC_10%");
> Addcolumn(D1,"Date");
> 
> Can u modify please.
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "dawsonsg" <dawsonsg@> wrote:
> >
> > Sorry, should have been
> > 
> > Hold(Roc(Close,10)>10,20)
> > 
> > Steve
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "dawsonsg" <dawsonsg@> wrote:
> > >
> > > Try
> > > 
> > > Hold(Roc(Close,10),20)
> > > 
> > > 
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, "ramvilas" <vilasram@> wrote:
> > > >
> > > > I want to scan my database(EOD) for last 20 bars to find if 
ROC 
> > OF 
> > > ANY 
> > > > ONE BAR IS GREATER THAN 10%. please help me.
> > > >
> > >
> >
>




Please note that this group is for discussion between users only.

To get 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/