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

[amibroker] How to Detect Crossing Trendline



PureBytes Links

Trading Reference Links

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.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Put more honey in your pocket. (money matters made easy).
http://us.click.yahoo.com/r7D80C/dlQLAA/cosFAA/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/