Yes I counted them by clicking in the trace window, holding down Ctrl+A, Right 
Click and Copy, and paste into a text editor. 200 lines exactly (once its done 
printing it takes about a minute).

The only line of code in my AFL is: _TRACE("test");

That's it. 200 times, on a chart with 5000 minute bars, EURUSD, coming from 
IQFeed.

Btw, I used SetBarsRequired(0,0); and that didn't change anything in terms of 
the number of times "test" was printed.

Incidentally when I changed _TRACE to printf, it was printed only once in the 
interpretation window, no matter what I did (scrolling, updating minutes, etc.).

So at this point none of this is making sense.

If loading a chart is a single event that should only fire off the AFL one 
time, why is TRACE printing 200 times??

--- In [email protected], "sidhartha70" <sidharth...@...> wrote:
>
> As you know progster, it's hard to say unless you have the code & chart in 
> front of you.
> 
> 200 times... exactly?? has Conrad counted them...? I think you'd struggle to 
> count to 200 in the log window>trace for example while continuous new 
> instances of the trace are coming in and the window is scrolling...
> 
> In a nutshell there's no point speculating specifically as to why or what is 
> happening because there are simply too many unknown variables... hence the 
> advice has to be a general nature.
> 
> --- In [email protected], "progster01" <progster@> wrote:
> >
> > 
> > It would be really great if someone could provide an accurate, direct 
> > answer to the two specific questions below.
> > 
> > It's really starting to look like _nobody_ actually knows (I know I sure 
> > don't!).
> > 
> > --- In [email protected], "Conrad Joach" <consolejoker@> wrote:
> > >
> > > Why is it printing 200 times for a chart with ~83 bars in it? I have even 
> > > set barsrequired prior and forward to 0, and it still prints 200 times.
> > > 
> > > And as far as chart refresh events, does clearing the trace window count? 
> > > Because if I clear the trace window, it reprints everything 200 times 
> > > again.
> > >
> >
>


Reply via email to