PureBytes Links
Trading Reference Links
|
Tomasz,
Thank you.
I will take your advice and only let my AFL run in indicator mode.
Best regards,
Dennis
On Sep 4, 2007, at 12:01 PM, Tomasz Janeczko wrote:
> Yes it is designed behaviour.
>
> "Syntax check" that is ALWAYS performed when you applying changes
> involves RUNNING the code. And it is always done using chart ID = 0
> because simply the formula may or may NOT be used as indicator at all.
> Your formula should make NO assumptions on number of executions
> or the order of execution.
> If you are creating code that assumes to be run only as indicator
> you should
> execute it conditionally using Status("action")
>
> http://www.amibroker.com/guide/afl/afl_view.php?status
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Dennis Brown" <see3d@xxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, September 04, 2007 5:23 PM
> Subject: [amibroker] ChartID() ==0 after apply edit for one AFL pass
>
>
>> Hello,
>>
>> I have been writing some AFL that reads and writes files into folders
>> that are tagged with the ChartID() in the name of each. I have
>> noticed that whenever I apply an edit to the AFL of my chart, the AFL
>> runs through one pass (for error checking and "compilation") with the
>> ChartID() returning zero. Then the normal ChartID() is returned
>> after that. I have gone through some pains to reduce the side
>> effects of this which is creating extra folders and files and reading
>> bad information into my chart static variables on this first pass. I
>> check for ChartID()==0 and disable writing critical information and
>> dummy up other critical file read information during that pass.
>>
>> I am curious if others have run into this and how you handled it. I
>> am also curious if this is the "designed in" behavior or an
>> unexpected behavior.
>>
>> PS. My charts are running live in indicator mode while I am editing
>> my AFLs.
>>
>> Thanks for you insights,
>> Dennis
>>
>>
>>
>> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> http://www.amibroker.com/devlog/
>>
>> For other support material please check also:
>> http://www.amibroker.com/support.html
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|