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

RE: omega question



PureBytes Links

Trading Reference Links

> [mailto:owner-realtraders@xxxxxxxxxxxxxx]On Behalf Of Bob Fulks

> Vars: SaveBar(0);
>
> {Save bar number of the bar you want}
> If <condition> then SaveBar = CurrentBar;
>

Saaayyyy... does that mean EasyLanguage retains the contents of
variables from bar to bar???  So, if <condition> is met on Day 1,
SaveBar will still have the value it was originally assigned on Day 2
(assuming no reassignment)?  I had assumed (probably naively) that
variables were reset on each bar's execution, since it sort of looks
like the variables are redefined at each bar.  Not that I should expect
Omega's language to behave like a normal structured programming
language, but I guess I got careless here.

Sticks
--
Troutman, Defender of Sticks               troutman@xxxxxxxxxxxxxxxxxxx
        (aka)                           http://www.defendercapital.com/
Jonathan Matte, President                    No banner ads, no cookies,
Defender Capital Management, Inc.                   no sekrit sniffers!
Introducing Broker, Commodity Trading Advisor