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

[amibroker] Re: wma function callback with exception



PureBytes Links

Trading Reference Links

Hi,

Thanks, I will try that!

About amibroker-dll group... I can't do that because:
"Your membership is awaiting approval"

Best Regards,
Cassio

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
> Hello,
> 
> WMA accepts only variable (array) period parameter.
> MA accepts both constant and variable parameter.
> 
> So if you want to call WMA you have to pass array in second
parameter as well.
> 
> BTW: there is amibroker-dll group for DLL discussion.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "cnosshe" <cnosshe@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, June 27, 2005 9:44 PM
> Subject: [amibroker] wma function callback with exception
> 
> 
> > Hi everybody,
> > 
> > I'm working with ADK, and I can't callback WMA but I can callback MA,
> > and both have the same imput parameters:
> > -ma(ARRAY, periods)
> > -wma(ARRAY, periods)
> > 
> > And the only difference when I call them in my code is the string name
> > (for those who have ADK):
> > gSite.CallFunction( "ma", 2, arg );
> > gSite.CallFunction( "wma", 2, arg );
> > 
> > But when I call wma with my own function, I get exception:
> > Error 47.
> > Exception occurred during AFL formula execution at address: 42D476,
> > code: C0000005
> > 
> > I've uploaded my dll in:
> > http://finance.groups.yahoo.com/group/amibroker/files/
> > with name Test.dll
> > 
> > -Just put the Test.dll into AmiBroker/Plugins
> > -Run Amibroker
> > -Go to Analysis>Commentary
> > -put:
> > test = 0;
> > test[1]=100;
> > teste = ma_call(teste,5);
> > 
> > and after that:
> > test = 0;
> > test[1]=100;
> > teste = wma_call(teste,5);
> > 
> > In my machine, the first test is ok, the second generates exception
> > ma_call is just a callback for MA
> > wma_call is just a callback for WMA
> > 
> > If you can test it for me in your machine, I would appreciate if you 
> > could report the results to me.
> > 
> > Thanks,
> > Cassio
> > 
> > 
> > 
> > 
> > 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 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 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/

<*> 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/