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

Re: Local variable initialization



PureBytes Links

Trading Reference Links

I suspect they will all initialize on the first bar. I've never tried
putting a var statement inside an if/then but I know you can put them at
the bottom of the code and they will still initialize before the code
runs. It would be easy to test with a simple indicator and an if/then
that never comes true.

if false then begin
  var: n1(10);
end;
plot1(n1, "test");

First see if it will even verify and, if it does, see if it will plot.

-- 
  Dennis