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

RE: [amibroker] Volume-Weighted MACD Histogram? Help please!



PureBytes Links

Trading Reference Links


Hello ghoup,What do you mean by 'volume-weighted'?  
If you just want the EMA of volume then it would be:<FONT color=#000000 
size=2>
lEMA = <FONT 
face="Courier New" color=#0000ff size=2>EMA<FONT face="Courier New" 
color=#000000 size=2>(V<FONT 
face="Courier New" color=#000000 size=2>,<FONT face="CourierNew" 
color=#ff00ff size=2>26<FONT face="Courier New" color=#000000 
size=2>);sEMA<FONT 
face="Courier New" color=#000000 size=2> = <FONT face="Courier New" 
color=#0000ff size=2>EMA<FONT face="Courier New" color=#000000 
size=2>(V<FONT 
face="Courier New" color=#000000 size=2>,<FONT face="CourierNew" 
color=#ff00ff size=2>12<FONT face="Courier New" color=#000000 
size=2>);v<FONT face="Courier New" 
color=#000000 size=2>MACD = <FONT color=#000000 
size=2>lEMA-sEMA<FONT face="Courier New" color=#000000 
size=2>;sig<FONT face="Courier New" 
color=#000000 size=2> = <FONT face="Courier New" color=#0000ff 
size=2>EMA(<FONT 
color=#000000 size=2>v<FONT face="Courier New" color=#000000 
size=2>MACD,9<FONT 
face="Courier New" color=#000000 size=2>);
Plot(vMACD,<FONT color=#ff00ff 
size=2>"vMACD",<FONT color=#ff00ff 
size=2>1,<FONT color=#ff00ff 
size=2>1);<FONT color=#0000ff 
size=2>Plot(sig,<FONT color=#ff00ff 
size=2>"Signal",<FONT color=#ff00ff 
size=2>1,<FONT color=#ff00ff 
size=2>8);
Peter 
Gialames
-----Original Message-----From: ghoup@xxxx [<A 
href="">mailto:ghoup@xxxx]Sent: Friday, 
November 30, 2001 12:19 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
[amibroker] Volume-Weighted MACD Histogram? Help please!Hi 
friends,I'm fairly new to AmiBroker and struggling with the syntax 
toaccomplish a MACD Histogram with a volume enhancement:I firstwant 
a standard MACD calc, but with a volume-weighted MA 
likeso:Volume-weighted 26-period EMAVolume-weighted 12-period 
EMAA 9-bar EMA of the Long minus Short EMAThen subtract the Signal 
from the MACD to get the Histogram data. Result is a volume-weighted 
MACD Histogram.How do I do that?  It should be easy for an 
experienced user, whichI'm not!Help, 
thanks!ghoup------------------------ Yahoo! Groups Sponsor 
---------------------~-->Need new boots for winter? Looking for a perfect 
gift for your shoe loving friends?Zappos.com is the perfect fit for allyour 
shoe needs!<A target=_blank 
href="">http://us.click.yahoo.com/iWGL5B/QrSDAA/ySSFAA/dkFolB/TM---------------------------------------------------------------------~->Your 
use of Yahoo! Groups is subject to <A target=_blank 
href="">http://docs.yahoo.com/info/terms/