Ah - I see. I guess that's what I was looking for. Thanks!
So is it correct if I say that printf has no effect at all if used in the backtest code? --- In [email protected], Tomasz Janeczko <gro...@...> wrote: > > Hello, > > Sure _TRACE() provides that. > http://www.amibroker.com/guide/afl/afl_view.php?_trace > > If you are using CBT and "detailed result" you can also use > RawTextOutput method > from backtester interface. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-05-19 00:21, rise_t575 wrote: > > > > Thank you for your efforts Mike! > > Tomasz, > > > > Is there a way for some free text output from within the backtesting afl > > code? > > > > Thanks in advance! > > > > > > --- In [email protected], Tomasz Janeczko<groups@> wrote: > > > >> Hello, > >> > >> Yes printf either prints to commentary window (if formula is applied in > >> commentary window) > >> or to interpretation window (if formula is applied as chart) > >> > >> Best regards, > >> Tomasz Janeczko > >> amibroker.com > >> > >> On 2010-05-18 23:59, Mike wrote: > >> > >>> WriteIf goes to the Commentary window (see Tools menu). I've never used > >>> it myself. Nor have I used AlertIf. So, I'm not much help for either of > >>> those, I'm afraid. > >>> > >>> Quick and dirty: > >>> > >>> Plot(IsNull(EPSRank), ...); > >>> > >>> But, of course, if plotting were enough you could simply have plotted > >>> EPSRank itself and seen that there were no values. > >>> > >>> Hopefully that'll at least be enough to point you in a direction. > >>> > >>> Mike > >>> > >>> --- In [email protected], "rise_t575"<rise_t@> wrote: > >>> > >>> > >>>> Thanks a lot Mike, > >>>> > >>>> IsNull is working perfectly with the selection critera; > >>>> but I cannot get this writeif-thing working; if it prints something > >>>> somewhere, I at least cannot find it... > >>>> > >>>> I've tried a simple test, and the actual thing - in both cases I see > >>>> nothing: > >>>> > >>>> printf("Test"); > >>>> > >>>> printf(WriteIf(IsNull(EPSRank), "Warning: EPSRank data not > >>>> available.","OK")); > >>>> > >>>> I apologize for my stupidity as I am sure this is very simple... > >>>> > >>>> > >>>> > >>>> --- In [email protected], "Mike"<sfclimbers@> wrote: > >>>> > >>>> > >>>>> Try IsNull to recognize when the data is non existent. > >>>>> > >>>>> http://www.amibroker.com/guide/afl/afl_view.php?id=216 > >>>>> > >>>>> If that works, you could use WriteIf as shown in the example of IsNull. > >>>>> > >>>>> Alternatively, you could play with AlertIf to prompt you when it finds > >>>>> a null value. Note, that you would probably only want to fire the alert > >>>>> once, so if going that route you would probably want to use a static > >>>>> variable to track whether or not the alert was fired. > >>>>> > >>>>> Mike > >>>>> > >>>>> --- In [email protected], "rise_t575"<rise_t@> wrote: > >>>>> > >>>>> > >>>>>> Hi again, > >>>>>> > >>>>>> Sorry for the strange title, but I unfortunately I don't know of a > >>>>>> better way to express this... > >>>>>> > >>>>>> I've just run a backtest of a time range pre-2000 with QP data and did > >>>>>> not get one single trade (worked perfectly with post-2000 data). > >>>>>> > >>>>>> I've isolated the problem, but I don't know of a way to solve this > >>>>>> nicely. > >>>>>> > >>>>>> I use a couple of criteria for the entry signal, which I have arranged > >>>>>> for convenient access as parameters in the "Parameters" Window. > >>>>>> > >>>>>> One of them is EPS Rank, and the QP database doesn't contain any EPS > >>>>>> Rank data pre-2000. That's no problem for me right know, as I want to > >>>>>> leave that criteria out of the picture for that backtest, so I've > >>>>>> changed the Minimum EPS Rank parameter to>= 0, which essentially > >>>>>> cancels that criteria out (or so I thought). But AB doesn't let me do > >>>>>> it that way. > >>>>>> > >>>>>> 1) Is there some way to change my code in a universal way (i. e. that > >>>>>> I don't have to mess around with my code in the future for such cases) > >>>>>> that ignores criteria for which there is no historical data? > >>>>>> > >>>>>> 2) Additionally, a "perfect" solution for this would contain some form > >>>>>> of warning when running the backtest. How could I accomplish this? > >>>>>> > >>>>>> Thanks very much in advance! > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>> > >>>> > >>> > >>> > >>> ------------------------------------ > >>> > >>> **** IMPORTANT PLEASE READ **** > >>> This group is for the discussion between users only. > >>> This is *NOT* technical support channel. > >>> > >>> TO GET TECHNICAL SUPPORT send an e-mail directly to > >>> SUPPORT {at} amibroker.com > >>> > >>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > >>> http://www.amibroker.com/feedback/ > >>> (submissions sent via other channels won't be considered) > >>> > >>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >>> http://www.amibroker.com/devlog/ > >>> > >>> Yahoo! Groups Links > >>> > >>> > >>> > >>> > >>> > >>> > >> > > > > > > > > ------------------------------------ > > > > **** IMPORTANT PLEASE READ **** > > This group is for the discussion between users only. > > This is *NOT* technical support channel. > > > > TO GET TECHNICAL SUPPORT send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > > http://www.amibroker.com/feedback/ > > (submissions sent via other channels won't be considered) > > > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > > http://www.amibroker.com/devlog/ > > > > Yahoo! Groups Links > > > > > > > > > > >
