PureBytes Links
Trading Reference Links
|
Hello,
1.
a) JScript is case-sensitive therefore you have to make
sure that you use exactly the same function name
(myFunction in both places)
b)
#included files may get cached. If you change #included file
you have to change the formula
in AA window too to ensure that new version is re-included.
c) although not available to TRIAL users, new beta versions
include user-definable functions in native AFL level
(no script required at all)
2.
There is a typo in manual.
Instead of
PositionSize = MarginRequirement = 1;
you should use:
PositionSize = MarginDeposit = 1;
to get points-only test.
3. What data source are you using?
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Spyros Raftopoulos" <raftsp@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, May 15, 2003 1:55 PM
Subject: [amibroker] #include AND points-only test
> Hello,
>
> I am currently trying the software (v.4.30) but I have various
> problems:
>
> Problem 1.
> I am trying to call "myFunction" from within another function.
> This is what I have done:
> First I created a function named "myFunction" like this:
>
> EnableScript("jscript");
> <%
> function myFunction(x1,x2,x3,x4)
> {
> return (x1 + x2 + x3 + x4) / 4;
> }
> %>
>
> I have never used jave before in my life, so I just followed the
> example given. I hope that what I have written is meaningful.
>
> I saved it in C:\Program files\Amibroker\Afl
> Please notice that I have checked that a function called "myFunction"
> exists there indeed!
>
> Then I tried the calling formula:
>
> #include "C:\Program files\Amibroker\Afl\myFunction.afl";
> script = GetScriptObject();
> Graph0 = script.myFunction(Open,High,Low,Close);
>
> The problem is that each time I click 'Apply' I get this error:
>
> Method/function 'myFunction' does not exist at line 3, column 96:
>
>
> Graph0 = script.myFunction(Open,High,Low,Close)
> ----------------------------------------------^
>
> Problem 2.
> So far I have not managed to do a "Points-Only" test, according to
> the instructions given. The tester keeps buying and selling dozens of
> shares or contracts depending on the equity, regardless of what I
> have written in the code. What should I do to for a points-only test
> on ES (emini S&P500)?
>
> Problem 3.
> I have periodical freezings, rubbish on the main chart etc.
>
> Could the downloaded file be corrupted?
> A problematic installation maybe?
>
> Thanks
>
> Spyros
>
>
>
>
> 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/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/aM1XQD/od7FAA/uetFAA/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/
|