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

Re: El Code for drawing a horizontal line



PureBytes Links

Trading Reference Links

At 12:08 AM -0700 8/13/01, erwilm45@xxxxxxxxx wrote:

>I'm trying to draw a horizontal line at the price
>level of the close 15 bars back, and from 15 bars back
>to the current bar via EL code. I'd like the one line
>to update automatically rather than drawing a new line
>with each new bar. I've been working with the TL
>functions but have not found a way to efficiently
>accomplish this.  Any help is greatly appreciated.

You can use a loop to plot points back in time. Something
like this (untested):

  Vars: MyPrice(0);

  MyPrice = Close[15];

  for j = 0 to 15 begin
     Plot1[j](MyPrice, "1");
  end;

You will need to plot points, not a line, but it should look OK.

Bob Fulks