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

Re: variable



PureBytes Links

Trading Reference Links

At 5:28 PM +0300 5/20/01, ja@xxxxxxxxxxxx wrote:

>Can anyone here tell me how to define a variable which will not get reset to the default value at each bar...? I.e. it should keep it's value until changed by the code when certain if/then conditions are met...
>
>Any help much appreciated...

Variables are not set to their default values on each bar. They are initialized to the value specified in the "Vars:" statement and retain that value until reassigned a new value. That new value is retained until again reassigned. 

Bob Fulks