PureBytes Links
Trading Reference Links
|
Hi Maurice,
Thanks for the offer. I'll give it another try soon and if I hit a
brick wall I'll drop you a note.
Cheers
Charles
--- In amibroker@xxxxxxxxxxxxxxx, das300@xxxx wrote:
>
> HI Tomasz,
> I think some of the skills of the guys are fair and struggle with
the
> programmers mindset. I think if you can see this it will help you
> attract more users. As I am an avg to skilled tech minded guy
> (engineer) I realise the intelligence of yourself and many other
guys
> can look at this as petty. Getting used to the language ,format and
> what the processor looks for and where are the keys for the more
> basic guys understanding the basic operation on what is a very cool
> program. The fact that it can do almost anything makes it open
> architectured but this can be intimidating at first for the semi
> programmer type mind" I come from metastock and it just fell short
of
> what I wanted and AB is way more powerful. However , the drag and
> drop onto highlight feature is simple in meta ..so its trying to
get
> that balance of no auto no programming versus flexibility....
>
>
> PS charles if u get stuck I can help u slowly..as I just worked it
> out tonight myself.
> das300@xxxx
> maurice
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko"
<amibroker@xxxx>
> wrote:
> > Charles,
> >
> > It is very simple.
> > Writing functions is explained in
> > http://www.amibroker.com/guide/a_language.html
> >
> > If you want to write a lot of your functions,
> > I suggest to create the file called
> > "MyFunctions.afl"
> > inside
> > "AFL\Include" subfolder (under AB directory).
> >
> > In this file place all functions you want to re-use later.
> >
> > As per your example:
> > You want to create function called
> > "dasesfunct" that does returns (H+L) / 2 ;
> >
> > So you open
> > MyFunctions.afl file
> > and type
> >
> > function dasesfunct()
> > {
> > return (H+L)/2;
> > }
> >
> > now you save your changes to MyFunctions.afl
> >
> >
> > Later in ANY formula you like you write #include
> > statement and you can use all functions that
> > are declared in MyFunctions.afl file:
> >
> > #include <MyFunctions.afl>
> >
> > // example of calling your custom function
> > myarray = dasesfunct();
> >
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message -----
> > From: "charleslsbrowne" <cbrowne@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Friday, October 22, 2004 8:57 AM
> > Subject: [amibroker] Re: how to call created Functions
> >
> >
> > >
> > >
> > >
> > > Hi Maurice,
> > >
> > > I am new to AB and am struggling with same issue. There seems
to
> be
> > > no examples in the help files on how to create and call user
> defined
> > > functions. I suspect the clue lies in understanding the
#include
> > > statement.
> > >
> > > Take a look at post number 70294 (Re: Chart sheets and default
> > > display period)
> > >
> > > It seems that user functions/s are coded separately in the
> #include
> > > file. The path is specified in Tools>Preferences. This file is
> then
> > > pulled in at run time.
> > >
> > > Best wishes
> > >
> > > Charles
> > >
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, das300@xxxx wrote:
> > >>
> > >> HI ,
> > >> QUESTION 1 ) How do I call a function I built into another
> function
> > > I
> > >> am creating ?
> > >>
> > >>
> > >> QUESTION 1 ) description --------------------------------------
->
> > >> I am able to call a function that exists in AB eg:
> > >> RSI(14);
> > >>
> > >> My difficulty is say i have a function "dasesfunc"
> > >>
> > >> dasesfunct
> > >>
> > >> DS = (H+L) / 2 ;
> > >>
> > >> lets say I have a new function " newfunct " that uses
> dasesfunct..
> > >>
> > >> newfunct
> > >>
> > >> DS + ATR(14) / DS is the function above /
> > >>
> > >> How do I call it into this function ????
> > >>
> > >> regards
> > >> das300
> > >> maurice
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > >
> > > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|