Thanks Barry... I think i've got somewhere near the bottom of it. I'm
not sure it's my code so much as what I'm doing to make AmiBroker
excute the code and thus create the file.

I get different results if I simply drag the code onto a chart vs
running it through a backtest (over all quotations)...

I'm a bit thrown because I thought SetBarRequired(100000,0) would
force it to cover the entire history if I dragged it onto a chart...
but doesn't seem to...

I suppose my general question is, when running tests of this nature
(outputting .csv files) over the ENTIRE history for a symbol, then
what's the best way to get AB to excute the code to achieve this...?

Many Thanks

--- In [email protected], "Barry Scarborough" <[EMAIL PROTECTED]>
wrote:
>
> What kind of weird results? Send me the formula at 
> [EMAIL PROTECTED], tell me what  you are trying to do, unless it 
> is obvious and I will debug it for you.
> 
> Barry
> 
> --- In [email protected], "sidhartha70" <sidhartha70@> 
> wrote:
> >
> > Hi,
> > 
> > I'm writing to a .csv file within the usual looping structure of,
> > 
> > for (i=0;i<barcount;i++)
> > {
> > 
> > }
> > 
> > I've SetBarsRequired(100000,0) at the start... I'm getting some
> > strange values when I check the .csv file. Everytime I run the AFL I
> > end up with slightly different results in the .csv.
> > 
> > I think it may be something to do with using Barcount... should I be
> > using BarIndex() if I want to go back to the beginning of the entire
> > history...? Does SetBarsRequired not make using BarCount ok...?
> > 
> > Thanks
> >
>


Reply via email to