PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>Reni,
you
would use the built in Cross() and plotshapes() functions.
try....
<FONT face=Arial color=#0000ff
size=2>
<FONT
face="Courier New">(C,"C",colorBlack,styleCandle);
x=<FONT
color=#0000ff>EMA(<FONT
size=2>Open<FONT
size=2>,8<FONT color=#282828
size=2>);
y=<FONT
color=#0000ff>EMA(<FONT
size=2>C<FONT
size=2>,8<FONT color=#282828
size=2>);<FONT color=#0000ff
size=2>
Plot<FONT color=#282828
size=2>(x,"Open-EMA5"<FONT
color=#282828 size=2>,4<FONT
color=#282828 size=2>,1<FONT
color=#282828 size=2>);<FONT color=#0000ff
size=2>
Plot<FONT color=#282828
size=2>(y,"Close-EMA5"<FONT
color=#282828 size=2>,5<FONT
color=#282828 size=2>,1<FONT
color=#282828 size=2>);<FONT face=Arial
size=2>
Sell<FONT
size=2>=Cross<FONT
color=#0000ff>(y,x);
Buy<FONT
size=2>=Cross<FONT
color=#0000ff>(x,y);
PlotShapes<FONT
color=#282828 size=2>(IIf<FONT
color=#282828 size=2>(Buy<FONT
face=Arial>,<FONT
size=2>shapeUpArrow<FONT color=#282828
size=2>,shapeNone<FONT
color=#282828 size=2>) ,<FONT
size=2>colorBrightGreen<FONT color=#282828
size=2>,0<FONT color=#282828
size=2>);
PlotShapes<FONT
color=#282828 size=2>(IIf<FONT
color=#282828 size=2>(Sell<FONT
face=Arial>,<FONT
size=2>shapeDownArrow<FONT color=#282828
size=2>,shapeNone<FONT
color=#282828 size=2>),colorRed<FONT
face=Arial>,<FONT color=#ff00ff
size=2>0<FONT
face=Arial>);
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: renilange
[mailto:reni.lange@xxxxxxxx]Sent: Thursday, February 26, 2004 12:14
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] arrows
on price chartHi, I hope somebody can help a
newbee...I saw on this forum an interesting formula: one EMA (of close) and
another EMA (of open )
:
Plot(C,"C",colorBlack,styleCandle);
How can I plot arrows when : EMA of Close crosses above EMA of Open
(GREEN) and EMA of Close crosses below ...a red one. .Thxs a lot for
your help.ReniSend 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
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
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 the Yahoo! Terms of Service.
|