PureBytes Links
Trading Reference Links
|
"I've drawn two trendlines on my chart that I labelled 'DN' using
the 'Properties' dialogue that pops up when you doubleclick a
trendline you've drawn."
There's your problem: Study() only recognizes the 1st instance of a
Study ID, so only the 1st assignment of "DN" is recognized by AFL.
You'll have to give the 2nd "DN" line another 2-character id, such
as "D2", and use additional AFL code to test its properties.
Bill
--- In amibroker@xxxxxxxxxxxxxxx, "acesheet" <acesheet@xxxx> wrote:
> Can more than one trendline of each type (per stock analyzed) be
> used in Scans, Explorations and Backtesting?
>
> I've been messing around with the feature and I can't seem to get
> AFL to recognize more than one trendline of each label type at a
> time.
>
> For instance the following code would be a very simple trendline
> break buy and sell system:
>
> DTL=Study("DN");
> UTL=Study("UP");
>
> Buy = Cross( High, DTL+.1 );
> Sell = Cross( UTL-.1, Low );
> Short=0;
> Cover=0;
>
> I've drawn two trendlines on my chart that I labelled "DN" using
> the "Properties" dialogue that pops up when you doubleclick a
> trendline you've drawn. I also set two others up labelled "UP" to
> give sell signals for the downtrend break signals.
>
> When I run a scan or a backtest AFL only recognizes one set of
> trendlines, but I've labelled them all.
>
> Can someone explain what I'm doing wrong, or am I even doing
> anything wrong?
>
> Tnaks.
>
> -ace
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|