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

[EquisMetaStock Group] Re: Plotting a set of variables at a time by input function



PureBytes Links

Trading Reference Links

Arun,

You're welcome. You never mentioned what the formulas were. If they 
are moving averages then reusing a previous plot is one way to hide a 
plot. Another is to use the close. 

Oscillators can be hidden a little differently. Let's say you had a 
RSI and were going to plot horizontal lines at 30 and 70. Using 30 
and 70 as the last If statement option would allow you to have those 
values on a chart without having to drop horizontals.

Certainly was an interesting exercise. I'm still looking for other 
ways to solve the problem and if I run across anything I'll let you 
know.


Preston



--- In equismetastock@xxxxxxxxxxxxxxx, "arun103" <arun103@xxx> wrote:
>
> Preston, thanks for your help. Probably double plot is the only way 
> to plot correctly. With the other methods I can plot the variables 
> correctly but I get an additional plot at zero.
> 
> Kind regards
> 
> Arun
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
> >
> > Arun,
> > 
> > Skip the last one! This one plots correctly. 
> > 
> > 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=3,z1,If(plot=2,y4,x1));
> > If(plot=3,z2,If(plot=2,y5,x2));
> > If(plot=3,z3,If(plot=2,y6,x3));
> > If(plot=3,z4,If(plot=2,y7,x3));
> > If(plot=3,z5,If(plot=2,y8,x3));
> > If(plot=3,z6,If(plot=2,y4,x1));
> > If(plot=3,z7,If(plot=2,y4,x1));
> > If(plot=3,z8,If(plot=2,y5,x2));
> > If(plot=3,z9,If(plot=2,y5,x2)); {end}
> > 
> > 
> > 
> > The problem is the number of formulas and the fact that we have 
> odd 
> > sets...3 in set 1, 5 in set 2, and 9 in set 3.
> > 
> > The output of the indicator is correct although several of the 
> > formulas are used and plotted more than once. Its a solution but 
> not 
> > the best one. I'll continue to think about this and see if I can 
> > come up with something else.
> > 
> > Preston
> > 
> > 
> > 
> > 
> > --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
> > >
> > > 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@> 
> 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/