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

Re: Signal Lim. - Stuck



PureBytes Links

Trading Reference Links

CurrentBar is a function with no history (no past values available).

There is a function called "BarNumber" that returns the same value
but does have history. You could probably use that, too.

Equating it to a variable creates a variable with history and it
appears that some code you use requires past values of CurrentBar.

Confusing - I know. Just another of those TradeStation anomalies...

Bob Fulks



At 6:53 AM -0700 8/28/01, D Wear wrote:

>Bob, I tried your suggestion for the below code...
>
>And it works!  Thanks! 
>
>I don't know why it works but it does.
>Currentbar returns a numerical value - why should it
>have to be assigned to another variable?
>Confusing.
>
>-----------------------------
>
>If I put this statement in alone, it produces a MBB
>error:
>Value31 = Currentbar - Value30;
>
>Try this:
>
>CB = CurrentBar;
>Value31 = CB - Value30