PureBytes Links
Trading Reference Links
|
Arun,
I'm sure there are other ways to do this but I wanted to give you
something to work with. See if this does what you want:
Preston
plot:=Input("plot:[1] 1st [2] 2nd [3] 3rd ",1,3,1);
{ 1st set of variables }
x1:=formula1;
x2:=formula2;
x3:=formula3;
{ 2nd set of variables }
y4:=formula4;
y5:=formula5;
y6:=formula6;
y7:=formula7;
y8:=formula8;
{ 3rd set of variables }
z1:=formula9;
z2:=formula10;
z3:=formula11;
z4:=formula12;
z5:=formula13;
z6:=formula14;
z7:=formula15;
z8:=formula16;
z9:=formula17;
{ Plot }
If(plot=1,x1,If(plot=2,y1,z1));
If(plot=1,x2,If(plot=2,y2,z2));
If(plot=1,x3,If(plot=2,y3,z3));
If(plot=2,y4,z4);
If(plot=2,y5,z5);
If(plot=2,y6,z6);
If(plot=2,y7,z7);
If(plot=2,y8,z8);
If(plot=2,y8,z9); {end}
--- In equismetastock@xxxxxxxxxxxxxxx, "arun103" <arun103@xxx> wrote:
>
> In the following example I want to plot as follows:
>
> 1) Plot all 3 variables of 1st set if input=1
> 2) Plot all 5 variables of 2nd set if input=2
> 3) Plot all 9 variables of 3rd set if input=3
>
> Is it possible to plot these using the if function? Will somebody
> please demonstrate.
>
> Thanks in advance
>
> Arun
>
>
> -------------------------------------------------------------------
--
>
> plot:=Input("plot: 1-1st set 2-2nd set 3-3rd set",1,3,1);
>
>
> { 1st set of variables }
>
> x1:=formula1;
> x2:=formula2;
> x3:=formula3;
>
>
> { 2nd set of variables }
>
> y4:=formula4;
> y5:=formula5;
> y6:=formula6;
> y7:=formula7;
> y8:=formula8;
>
>
> { 3rd set of variables }
>
> z1:=formula9;
> z2:=formula10;
> z3:=formula11;
> z4:=formula12;
> z5:=formula13;
> z6:=formula14;
> z7:=formula15;
> z8:=formula16;
> z9:=formula17
>
>
> { Plot }
>
> If(plot=1, x1, If(plot=2, y4, z1))) {?};
> ........?
> -------------------------------------------------------------------
--
>
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/
|