PureBytes Links
Trading Reference Links
|
Okay, I messed up there - but how about 2.5%? Like if the S&P closes at
1000 today, and tomorrow, at around a half-hour before the close, it is
trading 970? That would be outside (to the downside) of the +/- 2.5% zone
around the previous day's close that I provide for in the code. But it
still doesn't work.
And I know why. The problem is with the Time statements, because I
commented them out and now it triggers as it should. But that's useless to
me, because TradeStation only gives the signals on the close itself, at
which point I can no longer place a trade through a floor broker. Which is
why I wanted the half-hour before the close rule in the first place. Any
ideas? Here's the code again:
INPUTS: Pct(.025), Cons(2);
{IF CurrentTime = (Sess1EndTime - 30) THEN begin}
IF Close > Close[1] + (Pct * Close[1])
THEN Sell Cons Contracts at Market;
IF Close < Close[1] - (Pct * Close[1])
THEN Buy Cons Contracts at Market;
IF Date = EntryDate + 1
{AND CurrentTime = (Sess1EndTime - 30)} THEN begin
IF MarketPosition(0) = 1 THEN ExitLong at Market;
IF MarketPosition(0) = -1 THEN ExitShort at Market;
end;
-----Original Message-----
From: Dennis Holverstott <dennis@xxxxxxxxxx>
To: Peter Iovanella <ivo1@xxxxxxxxx>
Cc: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: Thursday, September 10, 1998 1:10 PM
Subject: Re: Quick EL question
>> 2) If so, check to see if the last price is outside of a 25% range of the
>> closing price of the prior day's trading.
><snip>
>> IF Close > Close[1] + (Pct * Close[1])
>
>It's easy to see the problems.
>
>1. Your system, as stated in the text, could never trigger unless the
>price moved 25% in a DAY. I assume you really mean 25% of the day's
>range (high - low).
|