Hi Rolf,
I'm a bit of a newbie to AB as well, but I have worked as a programmer for a while. What I do with my custom indicators is put them in an "include" file in the include subdirectory and then use the "#include <myCustom.afl>" directive in the file in which I will refer to that indicator. This won't give you code completion, but it means you only have to write the indicator once. Not sure if you can get code completion on custom indicators. I'm sort of assuming no, simply because in AB there is no "formal declaration" of functions - let alone indicators, and you'd need some sort of formal declaration so that the editor would recognise the arguments that the function requires. To a newbie AB can seem complex, but trust me, languages which include formal declarations can become very, very complex quickly, so I suspect that there is balance between ease of use, steepness of the learning curve, execution speed and flexibiliity. Hope this helps a bit. RZ ________________________________ From: rolf.spuler <[email protected]> To: [email protected] Sent: Mon, 21 December, 2009 3:53:17 AM Subject: [amibroker] How to use custom indicator Hello I have a beginner question but I could not figure out from the user guide what I am doing wrong. I coded my custom indicator. It is showing up in the Custom folder and I can attach it to a chart. But when I try to write a simple buy/sell script in the AFL Editor it does not recognize my indicator (syntax error). It also does not show up in the auto-completion drop down (typing first char and pressing ctrl + space). Did I miss something or do I have to include the indicator somehow? Thanks for any help Rolf __________________________________________________________________________________ See what's on at the movies in your area. Find out now: http://au.movies.yahoo.com/session-times/
