PureBytes Links
Trading Reference Links
|
Folks,
I understand that variables are initialized once per strategy, on the
first bar I would assume. This is clear for variables appearing at
the beginning of the strategy (global) but how do local variables
behave?
Suppose you had this chunk of code:
var:
xUp(0), xDown(0);
{ Entry Rules }
if MarketPosition = 0 then begin
var:
n1(0),n2(0),decipart(0),wholepart(0),ema(0),trigger(0);
When are n1, n2, etc. initialized?
Once per strategy?
Every time the condition is true?
Thanks, Joel
--
http://wagerlabs.com/
|