[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

I'm using TS4 and trying to plot 3 horizontal lines(at inputs that I will
manually change each day) from the beginning of the market session to the
end of the market session.

This what I have so far.  This produces 3 lines(plots) that go across the
chart for the duration of the market session.  But they all show a value of
Zero(0) at the first bar of the market session and no value for the rest of
the bars of that market session, even though the plots stretch across the
chart for the duration of the market session.  And instead of plotting on
the inputed date(021118) they plot on the previous day(021115).  I think
this is progress...

======================================================
 Inputs: Pitbull(905.00),ValArTop(895), ValArBot(890), TodDate(021118);

IF DATE=TodDate then begin
Value1=Pitbull;
Value2=ValArTop;
Value3=ValArBot;
End;

IF (Time=Sess1FirstBarTime) then begin
Plot1(Value1,"PitBullAvg");
Plot2(Value2,"ValueAreaTop");
Plot3(Value3,"ValueAreaBot");
End;
====================================================

John

----- Original Message -----
From: "Jbclem" <jbclem@xxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Monday, November 18, 2002 7:15 PM
Subject: Plotting horizontal lines for one day only.


> 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.
>
> Thanks,  John
>
>
>
>