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

Sv: Sv: understanding easylanguage code



PureBytes Links

Trading Reference Links

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Den 2006-02-23 22.14.11 skrev DH:
There are no recursive calls in your code and TS doesn't normally run
recursive calcs. When you open a new chart or apply a new indicator,
EL
steps through all the bars, one at a time, until it gets to the end
of
the chart. It skips the first (maxbarsback) number of bars and then
runs
the code on every bar after that. You must have applied the code to a
chart containing 255 + maxbarsback bars since you got 255 lines of
debug
output. Your code only needs to look back one bar (MXAverage[1]) so,
if
you didn't specify maxbarsback and let TS set it automatically,
maxbarsback = 1 and your chart must have 256 total bars.

--
  Dennis


hm, so what does MXAverage[1] actually do? i thought i was a function call with the same parameters as the first call.
what i can't grasp is how many bars the function use to calculate
the final XAverage value, all 255 dosen't seem logical.

- -- .-.-.-..---..----..---. Mikael Göransson
| | | || |'_| || || |-< http://www.mgor.se
`-'-'-'`-'-/`----'`-'`-' micke@xxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFD/vWkVBSPWpaZs/0RAv5eAKCfG1mvf68DEFbgr9WFar/FAnzT/wCgkGsO
XVWZZuIMrkxK9w3t2Zm23Ho=
=7H/U
-----END PGP SIGNATURE-----