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

Re: [amibroker] AmiBroker API question



PureBytes Links

Trading Reference Links

Hello,

"range" is default name for second numeric parameter that
AmiBroker comes up with automatically if you don't provide your own name.

This is typical name of 2nd parameter for functions like MA, EMA, WMA, ROC, RSIa
Since your MOMA is (probably) also a kind of average, then "range" 
just follows the same convention which is good.

If you want your own name instead you should provide it in the function table.

If your function table has an entry like this:

"MOMA", { VMOMA, 1, 0, 1, 0 , NULL }, 

You may change it to :

"MOMA( array, bars = 10 )", { VMOMA, 1, 0, 1, 0 , NULL }, 

to have "bars" instead of default "range".

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "dmorrill_2004" <dmorrill_2004@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, March 05, 2005 9:50 PM
Subject: [amibroker] AmiBroker API question


> 
> 
> I've used the low-level AmiBroker API to create an AFL function 
> plugin in C, and it seems to work fine. However, I notice that in 
> the AFL editor when I type in my function name, the tooltip help for 
> the function says "MOMA( ARRAY, range = 10 )" (where "MOMA" is the 
> name of my AFL function written in C).
> 
> My question is, where does the label 'range' come from? My argument 
> really is the number of bars to use, but I don't see anything in the 
> API document that says how I can label the arguments to the 
> function. The standard AFL functions like 'Plot' have useful labels 
> for their arguments. Perhaps the internal functions don't use the 
> same API as plugins? Can anyone shed any light on this? Thanks...
> 
> Dave Morrill
> 
> 
> 
> 
> 
> 
> 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 --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/