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

Re: [amibroker] How to Detect Crossing Trendline



PureBytes Links

Trading Reference Links

needs chartID to identify which chart it is coming from when used in AA
study( STUDYID, CHARTID ) 

On 9/16/05, Bob Krishfield <bobkrish@xxxxxxxxxxxx> wrote:
> I can't get the study function to work for me to detect crossing a
> trend line.  I have a watchlist of stocks and setup trendlines on most
> of these charts.
> 
> My simple AFL program is:
>    //test of studies
> 
>    //for AA scan
>    myline      = Study("SL");
>    Sell = Cross(myline,Close);
> 
>    //for commentary window
>    printf(" Stoploss " + WriteIf(sell," yes ", " no ") );
> 
>    //for explore
>    Filter=1;
>    AddColumn(Sell,"Sell Alert",1.0);
> 
> I've run scans, explores, and commentary runs - with no hits, even
> when I've forced trendlines to cross the close. Help?
> 
> Bob K.
> 
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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