PureBytes Links
Trading Reference Links
|
Dean,
The color parameter of the Plot function is the third item (5 and 7 respectively in the paste below). To change the colors just change the numbers or use the reserved words as described in AB help manual.
Plot(zerolagMACD,"",5,4);Plot(zerolagtrig,"",7,4);Dean Hodgins <deanhodgins@xxxxxxxxx> wrote:
First post here and easy question I'm sure. I scooped this zero lag indicator from afl library but can't figure out how to tweak colors assigned to lines plotted.Is there some way to change/customize colors. Any help much appreciated - thanksDean Hodgins/*Xero Lag MACD(p,q,r)*///based on ZeroLag EMA - see Technical Analysis of Stocks and Commodities,April 2000p = Param("P",12,3,36,2);q = Param("Q",26,3,52,2);r = Param("R",9,3,15,1);EMA1= EMA(Close,p);EMA2= EMA(EMA1,p);Difference= EMA1 - EMA2;ZeroLagEMAp= EMA1 + Difference;//---------------------------------------EMA1= EMA(Close,q);EMA2= EMA(EMA1,q);Difference= EMA1 - EMA2;ZeroLagEMAq= EMA1 + Difference;//---------------------------------------ZeroLagMACD=ZeroLagEMAp -
ZeroLagEMAq;//---------------------------------------// Signal lineEMA1= EMA(ZeroLagMACD,r);EMA2= EMA(EMA1,r);Difference= EMA1 - EMA2;ZeroLagTRIG= EMA1 + Difference;Plot(zerolagMACD,"",5,4);Plot(zerolagtrig,"",7,4);//===========================end zeroLagMACDSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
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.
|