PureBytes Links
Trading Reference Links
|
You could try this
Ms = param("Short",10,5,15,1);
Ml = param("Long",50,40,60,1);
MAs = EMA(c, Ms);
Mal = EMA(c, Ml);
Buy = Cross(MAs,MAl);
Sell = Cross(MAl,MAs);
Plot(C,"price",colorblack,stylebar);
Plot(MAs,"short",colorgreen,styleline);
Plot(MAl,"long",colorred,styleline);
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: theoldchartreader [mailto:theoldchartreader@xxxxxxxxx]
Sent: Sunday, 26 October 2003 12:58 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Optimize Moving avg cross
Hi,
Could some one please tell me how to write the code for a Ma cross
over in Optimize. I was able to do it with a close above the ma, but
I can not figure out how to do it with a fast ma cross over a slower
ma.
thank tou,
Dennis
------------------------ 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/mOAaAA/3exGAA/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/
------------------------ 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/mOAaAA/3exGAA/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/
|