You can use SetBarsRequired() and make it do whatever you want...
--- In [email protected], "levibreidenbach" <lev...@...> wrote:
>
> If the active symbol has a barcount of 200, and I then use setforeign
> function to work with another array (which has a barcount of 1104), will I be
> able to access all 1104 bars, or only the 200 because that is what is
> initially loaded?
>
> The reason I would like to access all bars is to loop through them and do
> some calculations that I would like to be the same for all symbols. These
> calculations are based on a specific starting value (say 10,000), and if I
> start calculation at the 'zero' bar and barcount is different for each
> symbol, the calculation is always different for different symbols.
>
> I know I didn't explain this too well, but any help would be appreciated. If
> I can clarify anything, let me know.
>
> Thanks
>
> Levi
>