PureBytes Links
Trading Reference Links
|
Anthony,
Thanks for the example. The next thing I wanted to
try was PlotShapes... so your example was very timely
Ara
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Anthony Faragasso
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Friday, March 07, 2003 4:53
AM
Subject: Re: [amibroker] Trendline
Studies
Ara, Here is a little example that might help. load
into Indicator builder. Sell=Cross(MA(C,10),C);//Notice the position
of the variables Buy=Cross(C,MA(C,10));//Notice the position of the
variables Plot(C,"",colorBlack,styleCandle);
Plot(MA(C,10),"",colorYellow,styleLine);
//PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen);
//PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed); SO=ATR(1);
//Shapes offset PlotShapes(Buy, colorGreen, 0,C-SO );
PlotShapes(Sell*2, colorRed, 0,C+SO ); -------Original
Message------- From: amibroker@xxxxxxxxxxxxxxx Date: Friday, March
07, 2003 00:35:04 To: AmiBroker - BB Subject: [amibroker] Trendline
Studies My first attempt at creating a line study was not very good..
Used the code below to find cross of Low Price and Trendline
(seeattachment) with exploration. AA Settings for 10 days of
exploration Line #1 - Did not detect the cross for Line #1. Line#2 -
Detected the cross, but gave the wrong date. The date detected was2/28 (as
printed in exploration). The date on the chart is 2/27. (Tried changing
the line position so it would cross on various dates. Cannot detect a
cross for any point prior to 2/27). Anyone else having problems with
line studies? Ara Short = Cross(Low,Study("UP")); Filter =
Short; AddColumn(Close,"Close"); Yahoo! Groups Sponsor
ADVERTISEMENT Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
----------------------------------------- Post AmiQuote-related
messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)
-------------------------------------------- Check group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaqhtml
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|