Without wanting to state the obvious, your code is trying to access an element of an array of either zero or more than barcount-1.
I assume the error is occuring somewhere within the for...next loop where array elements are accessed in the format array[i]...? --- In [email protected], "foxblade2000invest" <[EMAIL PROTECTED]> wrote: > > I've not directed this directly to Howard who I don't want to hassle > (but feel free to help out Howard......:-) > > I'm running Monte Carlo analysis as suggested on pg 303 of the book. > I've input my own system - other than that I'm sure it's as > described in the book. > > When I press optimize, the process starts but before a full run is > complete, I get the following error message; > > > > "NormCDF[57]=-0.176; > > NormCDF[58]=-0.202; > > NormCDF[59]=-0.228; > > NormCDF[6 > --------^ > > Error 10. > Subscript out of range. > You must not access array elements outside 0..(BarCount-1) range2 > > > > > Can anyone help? > > Thanks, > Rich >
