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

Re: [amibroker] How to use custom indicator


  • Date: Mon, 21 Dec 2009 14:12:14 -0800 (PST)
  • From: i cs <ics4mer@xxxxxxxxxxxx>
  • Subject: Re: [amibroker] How to use custom indicator

PureBytes Links

Trading Reference Links



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 <rolf.spuler@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
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.

__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___