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

Re[2]: [EquisMetaStock Group] Decimal places



PureBytes Links

Trading Reference Links

Jose:
     Thank you !
// Pablo

JS> Unfortunately MetaStock will always display all decimal places in 
JS> indicator and exploration values.  There is a way to restrict decimal 
JS> place output only in the Expert Commentary.

JS> The best solution is to round-off decimal places.
JS> Try this indicator example from
JS> http://www.metastocktools.com/#metastock :


JS> ===================================
JS> Round to nearest decimal or integer
JS> ===================================
JS> ---8<---------------------------------------

JS> { Rounds off data array to nearest specified
JS>   decimal place [+x] or integer [-x].

JS>  ©Copyright 2004~2006 Jose Silva.
JS>   For personal use only.
JS>   http://www.metastocktools.com }

JS> { Sample Data Array to be rounded }
JS> val:=Mov(C,21,E);

JS> { User inputs }
JS> x:=Input("Round to nearest  decimal [+x]  or integer [-x]",-10,10,1);
JS> plot:=Input("Data output:  [1]Rounded,  [2]Original",1,2,1);

JS> { Rounding engine }
JS> rounded:=Int(val*Exp(Log(10)*Int(x))+.5)
JS>  /Exp(Log(10)*Int(x));

JS> { Plot in own window }
JS> If(plot=1,rounded,val)

JS> ---8<---------------------------------------


JS> jose '-)
JS> http://www.metastocktools.com





JS> --- In equismetastock@xxxxxxxxxxxxxxx, bill rook 
JS> <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










 
JS> Yahoo! Groups Links







Pablo Bozzolo

---
Contact info:

Movil: 221 5384617
E-mail: italoarg76@xxxxxxxx
MSN: italoarg76@xxxxxxxxxxx
ICQ: 77207033




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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/