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

Re: EL question



PureBytes Links

Trading Reference Links

At 12:02 PM -0400 9/18/98, David Butcher wrote:

>Can Tradestation, in a showme study, understand the concept "the next bar" ?
>
>Example:  I want a certain event to occur and then, on the Next Trading Bar
>(not the previous), I want another even to happen to make the ShowMe a valid
>one.
>
>I know that  this would constitute the previous bar   [1]    example:
>Value1 > Value1[1].
>
>I assume there is an easy way to ask EL to interpret this.


The way you could do this is to write the ShowMe as of this bar and the bar
before this one.

Condition1 = Close > Open;   {Today's condition}
Condition2 = Open = High;    {Yesterday's condition}

if Condition1 and Condition2[1] then Plot1(....);

Bob Fulks