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

Re: EL question - static variables - clarification



PureBytes Links

Trading Reference Links

At 4:58 PM -0700 8/10/01, cash@xxxxxxxxxxx wrote:

>In the following code, I want the variables ThirtyMinHi, ThirtyMinLo,
>WentLong, WentShort to be what I call "static".
>
>For example, if I set WentLong in bar 45 of an intraday chart and
>don't do anything after it, at bar 100 (for example) I want to be
>able to just get the value of WentLong and not have to reference the
>bar on which I set it (or worry about keeping track of that).

In EasyLanguage, all variables are "static" so will do what you require.

If initialized to some value, they will retain that value until they
are changed on some subsequent bar.

Bob Fulks