PureBytes Links
Trading Reference Links
|
Thank you very much Preston
gv
----- Original Message -----
From: "pumrysh" <no_reply@xxxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Sunday, September 28, 2008 10:37 PM
Subject: [EquisMetaStock Group] Re: Which is better - Referring to
acustomformula or writing it down in an expert
> gv,
>
> In reference to your questions:
>
> 1. If you are not limited by space then put the code in the expert.
>
> 2. There have been several solutions to the division by zero problem.
> Without seeing your code its hard to tell which will work for you.
> The solutions have been to use an if argument with the result being
> greater zero, +prev-prev , a max argument, and applying a moving
> average. Below is a bit of code from our archives that uses the max
> argument.
>
> ------
>
> Let me also address another potential problem...the division by zero
> error.
>
> Yesterday the question was asked about the problem and the solution
> was to use a MAX argument to solve the problem. I tried your formula
> and did not get the error. If you are getting the error then I would
> guess that it is coming from a stray parenthesis mark that is in the
> wrong place...again this supports Lionel's suggestion.
>
> Lets rewrite your formula and use:
>
> Numerator/Max(Denominator,.0000001)
>
> to see if we can remove your errors. We will also clean up the
> formula a bit to see if we can eliminate any confusion. Like this:
>
> Per1:=Input("length of stoch",1,100,14);
> Per2:=Input("length of ma1",1,100,3);
> Per3:=Input("length of ma2",1,100,3);
> Numer:=Close - LLV(Low,per1);
> Denom:=HHV(High,per1) - LLV(Low,per1);
> Sto:=(Numer/Max(Denom,.0000001))*100;
> Mov(Mov(Sto,Per2,S),Per3,S);{end}
>
>
> ---------------
>
> See if that doesn't solve your problem.
>
>
> Preston
>
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Vasanth Mohan G Buddaan"
> <vgbudawn@xxx> wrote:
>>
>> I have 2 requests to make;
>>
>> (1) Which is better for the MS / could make it work faster -
> referring to a custom indicator in an expert or writing down the
> entire formula in it ?
>>
>> (2) I am getting an error message 'Division by Zero ..... 8 times'
> but seemingly there is no error in the formula and the denominator
> can not be zero. Also the indicator seems to be plotted well enough.
> What could be the reasons for this error.
>>
>> Help will be much appreciated.
>> gv
>>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|