PureBytes Links
Trading Reference Links
|
The
way I would do it is first get it running (as you have) in the main prog. Then
if you want to make it into an include file I'd put the <% and %> in there
too and yes if your function is in script then you want it between those two -
they tell AB that it's script type code and not AFL.
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>d
<FONT
face=Tahoma size=2>-----Original Message-----From: ed2000nl
[mailto:empottasch@xxxxxxxxx] Sent: Monday, June 02, 2003 12:14
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re:
jscriptthanks 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@xxxx]
> 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 > > <<A
href="">http://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S=1705>
632198:HM/A=1524963/R=0/SIG=12ongbbsq/*<A
href="">http://hits.411web.com/cgi-bin/au>
toredir?camp=556&lineid=3179269&prop=egroupweb&pos=HM>
> > <<A
href="">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: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)>
--------------------------------------------> Check group FAQ
at:> <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service> <<A
href="">http://docs.yahoo.com/info/terms/>
.Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
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 the Yahoo! Terms of Service.
|