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

Re: Local variable initialization



PureBytes Links

Trading Reference Links

This code will delay the strategy until 200 bars are collected, right?

On Mar 22, 2007, at 5:17 PM, Bob Fulks wrote:

Most of the code I see has initialization problems, indicating that most people do not understand this. For example:

   Var: Avg(0);

   Avg = XAverage(Close, 200);

Avg starts at zero and takes hundreds of bars to reach near the correct value.

--
http://wagerlabs.com/