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

Re: Plotting horizontal lines for one day only.



PureBytes Links

Trading Reference Links

On Mon, 18 Nov 2002, Jbclem wrote:

> I'd like to plot 3 horizontal lines on a chart, with inputs that I would
> change each day), and I'd like them to cover market hours only(E-mini from
> 6:30 PST to 1:15 PST) each day.  This is what I have so far, but it doesn't
> pass
> verification...
> 
> Inputs: Pitbull(900),
>            ValArTop(895),
>            ValArBot(890);
> 
> IF CurrentBar=1 and IF Date>Date[1] then Begin
> Value1= Pitbull;
> Value2=ValArTop;
> Value3=ValArBot;
> End;
> 
> Plot1(Value1,"PitBullAvg");
> Plot2(Value6="ValueAreaTop");
> Plot3(Value7="ValueAreaBottom")
> 
> 
> The IF Current Bar and IF Date>Date[1] were snipped from different lines in
> another ela.  I don't really know how to use them or the Value1...Value3
> below.  Would someone set me straight on this.

Is this what you're looking for:

inputs: pitbull(800), valartop(895), valarbot(890);

if time >= 630 and time <= 1315 then begin
	plot1(pitbul);
	plot2(valartop);
	plot3(valarbot);
end;