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

[amibroker] Re: Please help me with this AFL



PureBytes Links

Trading Reference Links

> number Of bars it was down, just before the buy cross

What does this mean? What's "it", and what do you mean by "down"?

Regards,
GP


--- In amibroker@xxxxxxxxxxxxxxx, "K. Karunakaran" <osp2osp@xxx> wrote:
>
> Hi,
> 
> eventB=Hold(Cross(EMA(C,10),EMA(C,200)),13);
> eventS=Hold(Cross(EMA(C,200),EMA(C,10)),13);
> 
> BarBB=BarsSince(eventB); - to know how many bars since the recent 
> cross
> BarSS=BarsSince(eventS); - to know how many bars since the recent 
> cross
> 
> BeforeBuyCross= number Of bars it was down, just before the buy cross
> BeforeSellCross= number Of bars it was up, just before the sell cross
> 
> 
> Filter=eventB OR eventS;
> 
> AddColumn( DateTime(), "Date", formatDateTime ); = the Date AND time 
> when the Cross Happend
> 
> -----------------------------
> 
> Except the first two lines everything seems to be wrong, please help 
> me.
> 
> Warm Regards.
> 
> K Karunakaran
>




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/