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

[amibroker] Re: IPO First Trading Signal



PureBytes Links

Trading Reference Links

That is absolutely my stumbling block, trying to do everything at
once, instead of taking step by step. Hopefully soon I can be a
contributor.
Thanks Again Graham

All The Best
AB


--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> It is just a matter of finding the bar of the first signal. This is a
> matter of determining what function can provide you with the
> information you need. To me, Cum is a good one as it counts the
> signals since the start of the data, and will be ==1 when the first
> signal is found. This process I feel is the main stumbling block for
> all novice users wanting to write AFL. You have to ask yourself what
> are the basic steps to defining what you want. Do not try to do the
> whole thing in one, but take it a bit at a time
> 
> CountSig = cum(buy);
> FirstSig = CountSig==1 and ref(CountSig,-1)==0;
> FirstBar = valuewhen(firstsig,barindex());
> 
> -- 
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://www.aflwriting.com
> 
> 
> 
> On 01/06/07, fblackes <fblackes@xxx> wrote:
> > Graham came up with perfect solution for the question I posted
> > earlier, re date of First signal.
> >   What I also was trying to do was to find the number of days/bars it
> > took the IPO (any recent IPO last 2- 3 years) to trigger first signal
> > in my system( eg crossBBandTop).
> > I've tried Barssince,DateTimetoStr.  As you can tell my programming
> > are horrible, but definitely trying to learn, any nudge in right
> > direction would be great.
> >
> >
> >
> > Thanks
> > AB
> >
> >
> >
> > 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
> >
> >
> >
> >
>




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/