PureBytes Links
Trading Reference Links
|
Steve
thanks and it is s almost perfect.
The only issue that i have is that when there is a clipped vol, it
appears to be in exponentiation. for eg
a vol 2291255.000000 apprears as 2.291262+006. I dont know why
sometimes my volume has 6 decimal places. i tried to change the title
to reflect Title = "Volume " + int(Volume); but it did not help.
smaller vol are ok but when they exceed 7 digits before the decimal
places, it starts expontiation. any ideas here.
I use dtniq.
--- In amibroker@xxxxxxxxxxxxxxx, "Steve Dugas" <sjdugas@xxx> wrote:
>
> Wouldn't you basically just want to cap the big-volume days? You
could try
> playing with this to see if it gives what you want...
>
> Steve
>
> AvgVol = LastValue( MA( Volume, status( "LastVisibleBar" ) - status
(
> "FirstVisibleBar" ) ) );
> VolCap = AvgVol * 3;
> VolPlot = Min( Volume, VolCap );
> VolClipped = VolPlot == VolCap;
> UpDay = Close > Open;
> VolColor = IIf( UpDay AND VolClipped, colorBrightGreen,
> IIf( UpDay, colorGreen,
> IIF( VolClipped, colorRose, colorRed ) ) );
> Plot( VolPlot, "Volume", VolColor, styleHistogram );
> Title = "Volume " + Volume;
>
> ----- Original Message -----
> From: "murthysuresh" <money@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Saturday, March 01, 2008 6:41 PM
> Subject: [amibroker] not sure if the scaling works well.
>
>
> >I am tring to make sure the scaling works well. i always had
trouble
> > on charts when there are 1-2 vol bars that are > 7 times 15 day ma
> > volume. the subsequent volume bars become tiny as you can see from
> > the default volume chart in the attached example.
> > i divided the volume by 5 and when i print the scaled volume, it
> > looks much better.
> > as my scaling parameters in the default vol chart is automatic, i
am
> > not sure why it cannot scale properly.
> >
> > i am looking for some smart ideas how i can make the scaled vol
print
> > the regular volume numbers.
> >
> > http://screencast.com/t/GdWaqr8E9f
> >
> > my code in both cases are
> >
> > default volume bars
> > Plot( Volume, _DEFAULT_NAME(), IIf( C > O, ParamColor("Up Color",
> > colorGreen ), ParamColor("Down Color", colorRed ) ), ParamStyle
> > ( "Style", styleHistogram | styleThick, maskHistogram ) );
> >
> > scaled volume bars
> > VMovingAvg=MA(V,15);
> > relVol=V/VMovingAvg;
> >
> >
> > Plot( relVol ,"ScaledVolume", IIf( C > O, ParamColor("Up Color",
> > colorGreen ), ParamColor("Down Color", colorRed ) ), ParamStyle
> > ( "Style", styleHistogram | styleThick, maskHistogram ) );
> >
> >
> >
> >
> >
> >
> > 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 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
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
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 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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|