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

Re: Plot Daily,Weekly,Monthly



PureBytes Links

Trading Reference Links

Only plots1-4 are allowed in an indicator.  Create three separate indicators
as follows.  Set maxbarsback to auto-detect, scale to same as symbol for all
three indicators.

{ Indicator name: DailyHiLo }
Inputs: DaysAgo( 1 ) ;

Plot1( HighD( DaysAgo ), "DailyHi" ) ;
Plot2( LowD( DaysAgo ), "DailyLo" ) ;

{ Indicator name: WeeklyHiLo }
Inputs: WeeksAgo( 1 ) ;

Plot1( HighW( WeeksAgo ), "WeeklyHi" ) ;
Plot2( LowW( WeeksAgo ), "WeeklyLo" ) ;

{ Indicator name: MnthlyHiLo }
Inputs: MnthsAgo( 1 ) ;

Plot1( HighM( MnthsAgo ), "MnthlyHi" ) ;
Plot2( LowM( MnthsAgo ), "MnthlyLo" ) ;


Best regards,

Benjamin Blanco,
EasyLanguageŽ Specialist
( former TradeStation Technologies, Inc. employee of six years )
http://www.blancofamily.net/ezlang.htm

EasyLanguage is a registered trademarks of TradeStation Technologies, Inc.

----- Original Message -----
From: "Matt Bowen" <mattbowen@xxxxxxxxxxxxx>
To: <Omega-list@xxxxxxxxxx>
Sent: Monday, September 02, 2002 8:09 PM
Subject: Fw: Plot Daily,Weekly,Monthly


I'm trying to get TradeStation 6 to plot horizontal lines for the following:

Daily High and Daily Low
Weekly High and Weekly Low
Monthly High and Monthly Low

The horizontal line plot  should show me where these lines are on intraday
charts. In other words, if I'm on a 15 minute chart and I change it to a 60-
minute chart I should be able to see the same lines (just on a higher time
frame).

Any help with the code below is greatly appreciate...Thanks in advance!

=====================================================

inputs: High_Color( Blue ), Low_Color( Red );
variables: HighD( 0 ), LowD( 999999 ) ; HighW(0), LowW(999999),
HighM(0), LowM(999999);

{ Setup }
if Time = Sess1EndTime then
begin
HighD = 0 ;
LowD = 999999 ;
HighW = 0;
LowW = 999999;
HighM = 0;
LowM= 999999;
end ;

{ Calculation & Plot }
if Date = CurrentDate and Time >= Sess1StartTime and
Time <= Sess1EndTime then begin

HighD ( 1 );
LowD ( 1 ) ;
HighW (1);
LowW (1);
HighM (1);
LowM (1);

Plot1( HighD, "DayHigh", High_Color ) ;
Plot2( LowD, "DayLow", Low_Color ) ;
Plot3( HighW, "WeeklyHigh", High_Color ) ;
Plot4( LowW, "WeeklyLow", Low_Color ) ;
Plot5( HighM, "MonthlyHigh", High_Color ) ;
Plot6( LowM, "MonthlyLow", Low_Color ) ;
end ;



----- Original Message -----
From: "Matt Bowen" <mattbowen@xxxxxxxxxxxxx>
To: <Omega-list@xxxxxxxxxx>
Sent: Sunday, September 01, 2002 1:47 PM
Subject: Plot Daily,Weekly,Monthly


> Does anybody know how to plot the daily, weekly and monthly
> (continuous lines) on to a intraday 60-minute chart?
> In other words, say you have a blank 60-min chart and you want
> to plot a continuous line from last month's lowest low and the highest
> high (previous month). Next, you do the same for the weekly and for
> the daily bars. The end result should look like this...
> Here's what it looks like on CQG: http://www.quanbeck.com
>
>
>