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

[amibroker] Re: jscript



PureBytes Links

Trading Reference Links

thanks for the tip (I have no experience with jscript only a little 
Java). 

The code runs now but I am not getting the buy signals yet. Must be 
some error somewhere still.

the function itself I also place between 

<%
%>

otherwise it does not seem to work. Is this right?

I managed to make it work if I place a jscript function within the 
AFL (main) code though.

regards

--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> do you have an #include "path to my function.afl";  statement in 
your
> main code?
>  
> d
> 
> -----Original Message-----
> From: ed2000nl [mailto:empottasch@x...] 
> Sent: Monday, June 02, 2003 8:55 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] jscript
> 
> 
> hi,
> 
> I made a function in jscript e.g.
> 
> function test_func(a, b)   
> {
>    .......
>    return .....;
> }
> 
> and saved this as a separate file test_func.afl
> 
> Now I want to use this function within AFL code e.g.
> 
> buy = test_func(a,b);
> 
> did not get it to work. 
> 
> 
> I used in the AFL code:
> 
> EnableScript("jscript");
> <%
> 
> Close = VBArray ( AFL ( "close" ) ).toArray();
> Buy = test_func(Close,30);
> 
> %>
> 
> in the function test_func.afl itself I did not add EnableScript.
> 
> Question: how do I incorporate a jscript function I made myself 
into 
> AFL code?
> 
> thanks, Ed
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor	
>  
> 
<http://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S=17
05
> 632198:HM/A=1524963/R=0/SIG=12ongbbsq/*http://hits.411web.com/cgi-
bin/au
> toredir?camp=556&lineid=3179269&prop=egroupweb&pos=HM> 	
>  
> <http://us.adserver.yahoo.com/l?
M=249982.3179269.4495679.1261774/D=egrou
> pmail/S=:HM/A=1524963/rand=826487792> 	
> 
> 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 
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> .


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/