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

[amibroker] Re: ZigZag



PureBytes Links

Trading Reference Links

Than you for the example Stephane. I was using arg[0].val instead of 
arg[0].array. It's working now.

Ralph

--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset" 
<s.carrasset@xxxx> wrote:
> http://finance.groups.yahoo.com/group/AmiBroker-DLL/
> 
> and for your pb, below an example of calling function 
> 
> AmiVar VCallROC( int NumArgs, AmiVar *ArgsTable )
> { 
>  AmiVar arg[ 3 ];
>  arg[ 0 ].type = VAR_ARRAY;
>  arg[ 0 ].array = ArgsTable[ 0 ].array; 
>  arg[ 1 ].type = VAR_FLOAT;
>  arg[ 1 ].val =  ArgsTable[ 1 ].val;
>   arg[ 2 ].type = VAR_FLOAT;
>   arg[ 2 ].val =  TRUE ;
>  
> AmiVar result = gSite.CallFunction( "ROC", 3, arg );
> return result;
> }
> /*  
> SYNTAX  roc( ARRAY, periods = 12, absmode = False )  
> RETURNS ARRAY  
> FUNCTION  Calculates the periods rate-of-change of ARRAY expressed 
as percentage. 
> if absmode = False the value returned is array - ref( array, -
periods )/ref( array, -periods ) 
> if absmode = True the value returned is array - ref( array, -
periods )/abs( ref( array, -periods ) )  
> */
> 
>   ----- Original Message ----- 
>   From: rkp1 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Tuesday, May 04, 2004 3:57 PM
>   Subject: [amibroker] Re: Calling AFL function from plugin
> 
> 
>   Can you give exact url's? I couldn't find the amibrokerdll group.
> 
>   Ralph
> 
>   --- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset" 
>   <s.carrasset@xxxx> wrote:
>   > amibrokerdll  group
>   > in the file section there are examples of workspace in c++
>   > 
>   > stephane
>   >   ----- Original Message ----- 
>   >   From: rkp1 
>   >   To: amibroker@xxxxxxxxxxxxxxx 
>   >   Sent: Monday, May 03, 2004 6:16 PM
>   >   Subject: [amibroker] Calling AFL function from plugin
>   > 
>   > 
>   >   Hi, I'm trying to call the Median function from my dll and 
keep 
>   >   getting Access Violations. I tried following the ExampleMACD 
>   sample, 
>   >   but could someone give an example with an AFL function that 
>   requires 
>   >   array input?
>   > 
>   >   Thanks in advance,
>   > 
>   >   Ralph
>   > 
>   > 
>   > 
>   >   Send BUG REPORTS to bugs@xxxx
>   >   Send SUGGESTIONS to suggest@xxxx
>   >   -----------------------------------------
>   >   Post AmiQuote-related messages ONLY to: 
amiquote@xxxxxxxxxxxxxxx 
>   >   (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>   >   --------------------------------------------
>   >   Check group FAQ at: 
>   http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
>   > 
>   > 
>   > 
>   > ---------------------------------------------------------------
----
>   -----------
>   >   Yahoo! Groups Links
>   > 
>   >     a.. To visit your group on the web, go to:
>   >     http://groups.yahoo.com/group/amibroker/
>   >       
>   >     b.. To unsubscribe from this group, send an email to:
>   >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>   >       
>   >     c.. Your use of Yahoo! Groups is subject to the Yahoo! 
Terms 
>   of Service. 
>   > 
>   > 
>   > 
>   >   __________ NOD32 1.748 (20040503) Information __________
>   > 
>   >   This message was checked by NOD32 antivirus system.
>   >   http://www.nod32.com
> 
> 
> 
>   Send BUG REPORTS to bugs@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
>   (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>   --------------------------------------------
>   Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
>         Yahoo! Groups Sponsor 
>               ADVERTISEMENT
>              
>        
>        
> 
> 
> -------------------------------------------------------------------
-----------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service. 
> 
> 
> 
>   __________ NOD32 1.749 (20040503) Information __________
> 
>   This message was checked by NOD32 antivirus system.
>   http://www.nod32.com



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/