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

[amibroker] 4MACD



PureBytes Links

Trading Reference Links

_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();

__._,_.___

**** 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

__,_._,___