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

Re: TradeStation Study



PureBytes Links

Trading Reference Links

Study attached will put a show-me on Friday (or the last day of the week)
where the specified conditions have been met.  The only thing complicated
about this sort of study is that some weeks have holidays so if you simply
do your analysis where the day of week is Friday then you miss the weeks
where Friday is a holiday.

To use put your daily data as data1, insert the same data as data2 but
format to weekly and insert volume and use format data to indicate that the
volume relates to the weekly data.

Inputs: Power(5),Level(.5);
Vars: BarNum(0),AvgVol(0),WDate(0);

WDate=Date of Data2;
If WDate<>WDate[1] then begin {start if new weekly bar has formed}
     BarNum=CurrentBar;
     If BarNum[1]>0 then AvgVol=Volume of Data2/(BarNum-BarNum[1]);
     {adjust volume for short weeks}
     If AvgVol[1]>0 then begin
          Condition1=Close>Highest(High,9)[1] of Data2 and
AvgVol>AvgVol[1]*1.2 and
          Close>Average(Close,30) of Data2;
     end;
end else Condition1=False;

If Condition1 then begin
 Plot1(High,"New High");
 Alert=True;
End;

Good luck.
-----Original Message-----
From: Michael Harris <eagleinc@xxxxxxxxx>
To: Peter Gibson <Peter_Gibson@xxxxxxxxxxxxxx>
Cc: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: April 24, 1998 7:15 AM
Subject: TradeStation Study


>Peter:
>
>I saw your concise system re: "EZ Counter" and was hoping you might be
>able to help me with a study, only if it's not too time consuming for
>you.
>
>I want to look at a study, for example a Show Me, that would indicate
>whenever the following conditions were met.  I will be using daily data
>for this.
>
>The conditions are:
>1. The weekly close is higher than any high that has occurred during the
>past 9 weeks.
>
>2. Current week's volume is 1.2 times last week's volume.
>
>3. The weekly close is greater than the 30-week simple moving average.
>
>Thank you very much.
>
>Mike
>
>
>