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

[EquisMetaStock Group] Re: Simple Program Question



PureBytes Links

Trading Reference Links


Try this indicator:

---8<-------------------
val:=Input("arbitrary value",.000001,999999,10);

incorrect:=(val-C)/C*100;
correct:=(C-val)/val*100;

correct
---8<-------------------


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



--- In equismetastock@xxxxxxxxxxxxxxx, "RevolutioW" <revolutiow@xxxx> 
wrote:
> Hi!
>  
> I am traying to program MS to calculate the percentual variation
> with close of last date (EOD) with other specific and arbitraru
> value.
>  
> Like this: I choose 10 and the last close was 8 
> I want to calculate this: ((10-8)/8)*100
>  
> Anyone knows how to do it?
> I am using MS 9
> Thank´s





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/