PureBytes Links
Trading Reference Links
|
Hi Rajneesh,
Here is the code that I use to plot Volume, MA Volume and OBV in the same
pane:
_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), IIf( C > Ref(C,-1), ParamColor("Up Color",
colorGreen ), ParamColor("Down Color", colorRed ) ), ParamStyle( "Style",
styleHistogram | styleThick, maskHistogram ) );
_SECTION_END();
_SECTION_BEGIN("OBV");
Plot( OBV(), _DEFAULT_NAME(), ParamColor("Color", colorCycle ),
ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("MA");
MP = IIf( Interval()==inWeekly, 10, 50 );
Plot( MA( V, MP ), "VMA(" + MP + ")", ParamColor( "Color", colorCycle ),
ParamStyle("Style") );
_SECTION_END();
As you can see I also change the Moving average calculation from 50 days to
10 weeks depending on the time frame of the chart (thanks to the help of
Graham and others).
Dave
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of rajneesh_dak
Sent: Saturday, February 18, 2006 9:12 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] code for MA (volume)
hi,
how can i add ma(volume) for volume in price chartover volume.
rajneesh
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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:
http://docs.yahoo.com/info/terms/
|