PureBytes Links
Trading Reference Links
|
TJ-
This is good news. I could feel myself being sucked into the vortex of trying to code a system that I understood poorly.
Thanks,
-Tom McDaniel
Tomasz Janeczko wrote:
> Dear Tom,
>
> As I wrote some time ago AmiBroker is array-based
> language. This means that single statement can process
> the whole array in one run.
> Statements are executed once, line by line.
>
> There is a nice article by Geoff Mulhall in newsletter 9/2001
> (http://www.amibroker.com/newsletter/09-2001.html)
> explaining the way AFL works.
>
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
>
> ----- Original Message -----
> From: "Tom McDaniel" <tmtempe@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, August 28, 2001 4:13 PM
> Subject: Re: [amibroker] Re: Any Trade Station Coders Out There?
>
> > Dimitris-
> >
> > Thanks for your interest and help.
> >
> > When I couldn't get "<>" to work I "brute forced" the comparison. Later
> > I found the "!=" comparison operator in the documentation. Thanks.
> >
> > I presume the second instance of arc tangent should be converted from
> > radians to degrees as well. Is the line
> >
> > "Phase = Iif(I1 != 0, 57.3 * Atan(Q1/I1), Phase);"
> >
> > appropriate for this? (If I do this it appears to create large
> > oscillations in the MAMA and FAMA so something must still be wrong!)
> >
> > I remain concerned about the initialization of variables and the
> > sequence of the calculations (Your initial comment) I basically
> > converted the TradeStation code line by line. I am unclear about the
> > order that is required in AFL. Does AFL process each line of code for
> > every bar sequentially and then proceed to the next line of code? If
> > so, then the order of the calculations definitely needs to be rearranged
> > so that all of the predecessor calculations are done first before they
> > are called If, on the other hand, the entire AFL code is run for each
> > day in sequence then the current order seems acceptable because Var(-x)
> > will have been computed x passes before.
> >
> > The TradeStation code appears to be an implied loop as the first line is
> >
> > "If CurrentBar > 5 then begin"
> >
> > and the final line is "End;". There is no explicit incrementation of
> > this loop but this implies to me that TradeStation goes through the
> > entire code before stepping to the next bar.
> >
> > AFL seems to require and accept the initialization that I did to run but
> > maybe the initialization that I have done is incorrect. What is the
> > correct way to do this?
> >
> > Best regards and thanks for your help.
> > -Tom McDaniel
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|