PureBytes Links
Trading Reference Links
|
Unfortunately MetaStock will always display all decimal places in
indicator and exploration values. There is a way to restrict decimal
place output only in the Expert Commentary.
The best solution is to round-off decimal places.
Try this indicator example from
http://www.metastocktools.com/#metastock :
===================================
Round to nearest decimal or integer
===================================
---8<---------------------------------------
{ Rounds off data array to nearest specified
decimal place [+x] or integer [-x].
©Copyright 2004~2006 Jose Silva.
For personal use only.
http://www.metastocktools.com }
{ Sample Data Array to be rounded }
val:=Mov(C,21,E);
{ User inputs }
x:=Input("Round to nearest decimal [+x] or integer [-x]",-10,10,1);
plot:=Input("Data output: [1]Rounded, [2]Original",1,2,1);
{ Rounding engine }
rounded:=Int(val*Exp(Log(10)*Int(x))+.5)
/Exp(Log(10)*Int(x));
{ Plot in own window }
If(plot=1,rounded,val)
---8<---------------------------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, bill rook
<zipple_acre_udder@xxx> wrote:
>
>
>
> Hi Group
>
> I m getting too many decimal plcaes on my Bollinger?RSI?slope
> scans.
>
> Is there a way of not having so many?
>
> Regards
>
> Bill
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|