PureBytes Links
Trading Reference Links
|
Hello,
> What I don't understand is how afl works in Real Time as each bar is
> created? Is the entire afl program run over and over again as each
> new bar is completed? Is the program running at all during the
> creation of a bar? I currently do not use the
> RT version so I cannot test these questions.
Yes AFL program is running during creation of bar when
new ticks arrive. It happens with each new tick but not more often than
"intraday refresh interval" set in Tools->Preferences->Intraday.
Minimum execution interval is 1 second.
> Can AlertIF trigger an alert once a price is
> touched but before the bar is completed?
Yes.
> Also, are variables that are not arrays (global, strings, etc)
> implemented as true variables or are they implemented as arrays that
> have the same value throughout the array?
There are three types of variables:
numbers, arrays and strings
they are separate and implemented differently.
So numerical variable is just one 32-bit floating point number that
takes just 4 bytes of memory
String variable consists of as many bytes as the string length (plus one for terminating zero)
Arrays take ( 4 * array size ) bytes.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "m_visto" <mvisto@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 04, 2005 7:45 AM
Subject: [amibroker] AFL Fundamental Questions
> Hello,
>
> I am looking to understand how afl code executes. I understand that
> code runs sequentially line by line from the beginning of the code
> file to the end. I understand Procedures and Functions, Looping
> Methods, etc.
>
> What I don't understand is how afl works in Real Time as each bar is
> created? Is the entire afl program run over and over again as each
> new bar is completed? Is the program running at all during the
> creation of a bar? Can AlertIF trigger an alert once a price is
> touched but before the bar is completed? I currently do not use the
> RT version so I cannot test these questions.
>
> Also, are variables that are not arrays (global, strings, etc)
> implemented as true variables or are they implemented as arrays that
> have the same value throughout the array?
>
> Thanks,
>
> Marty.
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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 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/
<*> 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/
|