PureBytes Links
Trading Reference Links
|
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 (see
attachment) 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 was
2/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. Can
not 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: 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.
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/
|