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

RE: [EquisMetaStock Group] How many IF() functions can I nest in a custom indicator??



PureBytes Links

Trading Reference Links

Title: Message
Thanks Roy,
 
Certainly a whole easier and faster than multiple indicators with 12 IF statements in each one.
 
The old KISS principle wins again.
 
Regards,
Mike
 
-----Original Message-----
From: Roy Larsen [mailto:rlarsen@xxxxxxxxxxxxxx]
Sent: Wednesday, 2 March 2005 4:44 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: Re: [EquisMetaStock Group] How many IF() functions can I nest in a custom indicator??

Hi Mike


You could try to do it this way

(DayCount = x1)*y1 + (DayCount = x2)*y2 + (DayCount = x3)*y3 +...


Kind regards

Roy Larsen
www.metastocktips.co.nz
Free formulas and MS links





----- Original Message -----
From: "Mike Sloane" <mfsloane@xxxxxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 02, 2005 6:18 PM
Subject: RE: [EquisMetaStock Group] How many IF() functions can I nest in a custom indicator??


> Thanks for the explanation Roy; that explains what I was getting.
>
> For some reason I thought it was around 20 and I was using a very simple
> piece of code to plot a custom indicator (if(DayCount = x1, y1, if(
> DayCount  = x2, y2 . . .  etc) and it certainly threw a wobbly at 20;
> just spun the wheels and I evetually had to reboot to get it out of the
> loop.
>
> Regards,
> Miike
>
>
>
> -----Original Message-----
> From: Roy Larsen [mailto:rlarsen@xxxxxxxxxxxxxx]
> Sent: Wednesday, 2 March 2005 10:57 AM
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: Re: [EquisMetaStock Group] How many IF() functions can I nest
> in a custom indicator??
>
>
> Hi Mike
>
>
> I think MetaStock throws a wobbly when you get to 13 or 14 nested If()
> functions. If there's a PREV
> in the code somewhere then MS will error sooner rather than later.
> Remember that MetaStock processes
> the innermost parentheses first, which means it starts with the
> innermost If(). I don't think
> there's a documented limit, but I take 12 as a practical limit (13
> choices?).
>
>
> Kind regards
>
> Roy Larsen
> www.metastocktips.co.nz
> Free formulas and MS links
>
>
>
>
>
> ----- Original Message -----
> From: "Mike Sloane" <mfsloane@xxxxxxxxxxxxxx>
> To: <equismetastock@xxxxxxxxxxxxxxx>
> Sent: Wednesday, March 02, 2005 10:11 AM
> Subject: [EquisMetaStock Group] How many IF() functions can I nest in a
> custom indicator??
>
>
>>I am sure someone out there knows the answer off the top of their head.
>>
>> How many IF() functions can I nest in a custom indicator??
>>
>> Thanks in advance,
>> Mike Sloane
>>
>
>
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
> <http://us.ard.yahoo.com/SIG=12910soek/M=298184.6018725.7038619.3001176/
> D=groups/S=1705375617:HM/EXP=1109807829/A=2593423/R=0/SIG=11el9gslf/*htt
> p://www.netflix.com/Default?mqso=60190075> click here
>
> <http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
> s/S=:HM/A=2593423/rand=915134642>
>
>
>  _____ 
>
> 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
> <mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>

>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>
>
>



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links