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

Re: [amibroker] Example of a VB User defined function...



PureBytes Links

Trading Reference Links


Thanks Steve got it to work ..
 
Now you have done it ( shown you vb skills) we will 
be looking forward to some hot new code from you :)
 
 
Thanks David
 
 
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Steve Wiser 

To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Thursday, May 31, 2001 7:12 
AM
Subject: Re: [amibroker] Example of a VB 
User defined function...
Hello All:I know that my first message with only 
code  was very cryptic but I wanted to share it since it was somewhat of 
a learning breakthrough for me.  I know I could have coded this without 
the function call but the function call is what I was experimenting 
with.What this functionality allows for is the recursion functionto 
be used now inside a particular set of VB code.  Since a function can be 
called then if should follow that it can call itself.  Well VBScript 
allows this construct anyway.  Now the Metastock "PREV" function canbe 
coded using this feature.I hope this is clear.  Steve 
WAt 06:49 PM 5/30/01 +0000, you wrote:
<BLOCKQUOTE class=cite cite 
type="cite">EnableScript("vbscript");<%close = AFL( "close" ) 
factor = 0.09var1=closeSetValue CloseFunction 
SetValue(Close)   for i = 1 to UBound( close 
)      var1( i )= factor * close( i ) + (1 - 
factor) * var1( i -1 )   next end 
functionAFL.Var("graph0") = closeAFL.Var("graph1") = 
var1%>WriteVal( graph1 );Your 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.