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

Re: EasyLanguage question



PureBytes Links

Trading Reference Links

Your indicator code is going to get run every bar.  The reserved words like
"open", "marketposition", and "date" are going to automatically change each
bar.  Somewhere in your code you will have one or more statements assigning
values to your variables, unless these are in some conditional block of code
(inside an If statement, for example) they will be run each turn and may
change the value of your variable.

I'd recommend heavy use of the Print statement so you can see what is going
on in your program.  My programs are littered with them when first written
so I can figure out what is going wrong.  (Nothing ever works right at first
and if it does, you didn't check it thoroughly enough.)  TS is pretty slim
on the debug features.  I never used so many debug print statements since
Applesoft BASIC on my IIe.

Aaron Schindler



----- Original Message -----
From: "Max Pierson" <maxpi_44@xxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Monday, October 01, 2001 9:08 PM
Subject: EasyLanguage question


> I'm writing some indicators and having problems
> getting code to work well, have a basic question or
> two; do variables keep their values from bar to bar?
> Same question regarding Arrays?
>
> Max
>
>