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

[EquisMetaStock Group] Re: Zero Error Problem



PureBytes Links

Trading Reference Links

Try this code:

---8<--------------------
periods:=Input("Enter the number of periods:",1,260,14);

divisor:=HHV(H,periods)-C;
divisor:=If(divisor=0,1,divisor);

(HHV(H,periods)-LLV(L,periods))/divisor
---8<--------------------


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



--- In equismetastock@xxxxxxxxxxxxxxx, "formulaprimer" 
<formulaprimer@xxxx> wrote:
> NumPeriods:= Input("Enter the number of periods:",3,50,14);
> ((HHV(H,NumPeriods) - LLV(L,NumPeriods))/(HHV(H,NumPeriods) - C));
> 
> I'm getting a zero error for the above formula. I forgot the trick
> to fix this. Can someone remind me thanks.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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/