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

Re: Drawing the line... (1/1)



PureBytes Links

Trading Reference Links

bobr

----- Original Message -----
From: "Ian Waugh" <ianwaugh@xxxxxxxxx>
To: <bobrabcd@xxxxxxxxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Wednesday, March 26, 2003 7:14 AM
Subject: Re: Drawing the line... (1/1)


> Hi Bob,
>        That's the sort of thing I want on one line BUT I want to draw
> perhaps 6 parallel horizontal lines. I attach an example produced using
> two indicators (using points rather than lines to make the plots easier
> to see). It would be much more convenient, not to say neater, if this
> could be done from one piece of code.
>
> Ian
>
> > Is this the sort of thing you are wanting to do?  This was done in
> > TS2000i
> > using the setplotcolor(plot#,color) function.
> > This bar has 6 colors representing 6 value ranges.  It could have as
> > many
> > colors as there are in easylanguage and as many as 4 bars times the
> > number
> > of colors in one indicator.  You could arrange the colors as in the
> > rainbow
> > or in a heatmap sequence.
> >
> > example for one line:
> > plot1(X,"");  {X can be plot series}
> > If plot1>=20 then setplotcolor(1,red);
> > If plot1>=10 and plot1<20 then setplotcolor(1,magenta);
> > If plot1>=0 and plot1<10 then setplotcolor(1,yellow);
> > If plot1<0 and plot1>=-10 then setplotcolor(1,darkgreen);
> > If plot1<-10 and plot1>=-15 then setplotcolor(1,cyan);
> > If plot1<15 then setplotcolor(1,blue);
> >
> > bobr
> >
> > --- Original Message -----
> > From: "Ian Waugh" <ianwaugh@xxxxxxxxx>
> > To: <omega-list@xxxxxxxxxx>
> > Cc: <ianwaugh@xxxxxxxxxxxxxxxxxxx>
> > Sent: Wednesday, March 26, 2003 3:48 AM
> > Subject: Re: Drawing the line...
> >
> >
> > > Many thanks to Gary for clarification here.
> > >
> > > However, I am obliged to ask if it's possible to plot, say, 6
> > > different
> > > values per bar on a chart using one piece of code? I know that EL
> > > only
> > > allows 4 plot statements is one indicator but are there any clever
> > > ways
> > > around this other than using two indicators?
> > >
> > > Ian
> > >
> >
> >

Attachment:
setplotcolor3.gif
Description: GIF image
Attachment:

Attachment: Description: "Description: GIF image"

Attachment: Description: "setplotcolor2.gif"