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

[amibroker] Re: Strange behavior writing to a .csv file



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "Barry Scarborough" <razzbarry@xxx>
wrote:
>
> What kind of weird results? Send me the formula at 
> razzbarry@xxx, tell me what  you are trying to do, unless it 
> is obvious and I will debug it for you.
> 
> Barry
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "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
> >
>



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/