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

[amibroker] Re: AFL Runtime error - Frustrating



PureBytes Links

Trading Reference Links

Terry / Ara,

All I can suggest is getting a copy of DebugView 
http://www.sysinternals.com/ and utilizing the _Trace function in AFL.

You can use it to display AFL progress or the values of datanames etc.

It can be VERY HELPFUL in situations like this.

--- In amibroker@xxxxxxxxxxxxxxx, Terry <MagicTH@xxxx> wrote:
> I have a similar problem when using loops. You have some kind of 
error
> somewhere in the loop and the compiler points to the last brace } 
as the
> problem. Technically correct, but when thereıs 100 lines of code in 
the loop
> itıs hard to find the actual problem.
> 
> I have even had no error message come up when there is, in fact, an 
error.
> One error message came up saying I was using arrays where a number 
was
> required. I deleted the last line of code which made the error go 
away. I
> tried this since it was the last line of code that caused the error 
to
> appear. The code then ran, but still did not work correctly. 
Eventually I
> found the problem (it was an array without a [I] reference), but 
itıs weird
> that deleting a perfectly good line of code caused the compiler 
error to go
> away. 
> 
> Note, this was already reported on ticket number [#13386] which I 
have not
> heard back on any resolution.
> 
> Terry
> --
> 
> > Thomasz,
> > 
> > Here is the problem code ...
> > 
> > The way I see the error is that it appears in the interpretation 
window.
> > 
> > This code is designed to generate trade signals and send them to 
broker via
> > NinjaTrader.
> > It uaes a Ninja Simulator when Autotest =0, so Ninja Tradeer is 
not
> > necessary.
> > 
> > From the parameter box, the backtest and Autotest parms should be 
left on
> > "0"
> > 
> > The reset should be activated each time you start testing a 
series of dates.
> > 
> > The error is reproducible when the trade closes an existing 
position.
> > 
> > I am testing with NQ1600 from from 5/19/04 to 6/04/04. Trade goes 
nong on
> > 5/20 and closes position on 6/04.
> > 
> > Problem shows on 6/04.... as an error 11 (too many arguments) 
message in
> > Interpretation window.  No other hint.
> > 
> > Should be reporducible with any price data.
> > 
> > The trigger for signals is a simple stochastic, displayed on 
prices.
> > 
> > Title line display trade status
> > 
> > Thanks
> > 
> > Ara
> > 
> > 
> > ----- Original Message -----
> > From: "Tomasz Janeczko" <amibroker@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Wednesday, September 08, 2004 11:06 AM
> > Subject: Re: [amibroker] AFL Runtime error - Frustrating
> > 
> > 
> >> > Hello,
> >> >
> >> > Too many arguments means exactly this: that you have provided 
too many
> > arguments in the function call.
> >> > The cursor should mark the function where you made such 
mistake.
> >> > In case of further problems please send the formula for 
checking.
> >> >
> >> > Best regards,
> >> > Tomasz Janeczko
> >> > amibroker.com
> >> > ----- Original Message -----
> >> > From: "Ara Kaloustian" <ara1@xxxx>
> >> > To: "AB-Main" <amibroker@xxxxxxxxxxxxxxx>
> >> > Sent: Wednesday, September 08, 2004 7:55 PM
> >> > Subject: [amibroker] AFL Runtime error - Frustrating
> >> >
> >> >
> >>> > >
> >>> > > I am getting an error during normal running of the code... 
even though
> > the code was accepted OK when I pressed "Apply".
> >>> > >
> >>> > >
> >>> > > Error 11
> >>> > > Too many arguments
> >>> > >
> >>> > > and AB points to the end of the code
> >>> > >
> >>> > >
> >>> > > With this information it's very difficult to debug and find 
problems
> >>> > >
> >>> > > Is there a way to get better definition of where the 
problem is?
> >>> > >
> >>> > > Ara
> >>> > >
> >>> > > [Non-text portions of this message have been removed]
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > Check AmiBroker web page at:
> >>> > > http://www.amibroker.com/
> >>> > >
> >>> > > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >>> > > Yahoo! Groups Links
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >> >
> >> >
> >> >
> >> > Check AmiBroker web page at:
> >> > http://www.amibroker.com/
> >> >
> >> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> > 
> > 
> > [Non-text portions of this message have been removed]
> > 
> > 
> > 
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> > 
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > 
> > 
> > Yahoo! Groups Sponsor
> >  
> >  ADVERTISEMENT
> >  
> > 
<http://us.ard.yahoo.com/SIG=12969hq9h/M=295196.4901138.6071305.300117
6/D=grou
> > 
ps/S=1705632198:HM/EXP=1094757724/A=2128215/R=0/SIG=10se96mf6/*http://
companio
> > n.yahoo.com>  
> > 
> > 
> > Yahoo! Groups Links
> > * To visit your group on the web, go to:
> > * http://groups.yahoo.com/group/amibroker/
> > *  
> > * To unsubscribe from this group, send an email to:
> > * amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> > *  
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service
> > <http://docs.yahoo.com/info/terms/> .
> > 
> 
> 
> -- 
> Terry
> 
> 
> 
> [Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/