[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] 4MACD



PureBytes Links

Trading Reference Links

Also see:



Rik Rasmussen




On Sun, Oct 5, 2008 at 5:47 PM, MillowenaJuno <millowena@xxxxxxxx> wrote:
Wow!
 
That was fast!
 
Thanks, Henrik!
 
M
----- Original Message -----
Sent: Sunday, October 05, 2008 4:54 PM
Subject: [amibroker] 4MACD

_SECTION_BEGIN("4MACD");
/*  Ken's Challenge*/
//=Red===================
Gr1 = MACD(17,8);
Gr2 = Signal(17,8,5);
Diffr = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffr)))
*Diffr,"Diff",colorRed,2+4);

//=Green===================
Gr1 = MACD(5,10);
Gr2 = Signal(5,10,5);
Diffg = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffg)))
*Diffg,"Diff",colorBrightGreen,2+4);

//=Blue===================
Gr1 = MACD(17,14);
Gr2 = Signal(17,14,7);
Diffb = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffb)))
*Diffb,"Diff",colorBlue,2+4);

//=Yellow===================
Gr1 = MACD(10,16);
Gr2 = Signal(10,16,5);
Diffy = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffy)))
*Diffy,"Diff",colorYellow,2+4);

Plot(0,"",7,4);
GraphXSpace=5;

// END CODE
      /*  Ken's Challenge*/
//=Red===================
Gr1 = MACD(17,8);
Gr2 = Signal(17,8,5);
Diffr = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffr)))
*Diffr,"Diff",colorRed,2+4);

//=Green===================
Gr1 = MACD(5,10);
Gr2 = Signal(5,10,5);
Diffg = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffg)))
*Diffg,"Diff",colorBrightGreen,2+4);

//=Blue===================
Gr1 = MACD(17,14);
Gr2 = Signal(17,14,7);
Diffb = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffb)))
*Diffb,"Diff",colorBlue,2+4);

//=Yellow===================
Gr1 = MACD(10,16);
Gr2 = Signal(10,16,5);
Diffy = Gr1-Gr2;
Plot((LastValue(Highest(diffr))/LastValue(Highest(diffy)))
*Diffy,"Diff",colorYellow,2+4);

Plot(0,"",7,4);
GraphXSpace=5;

// END CODE
_SECTION_END();



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.173 / Virus Database: 270.7.6/1709 - Release Date: 10/5/2008 9:20 AM



____________________________________________________________
Click here to find experienced pros to help with your home improvement project.


__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___