PureBytes Links
Trading Reference Links
|
Since the error occurs in Line 1, the T3() should have been defined.
T3() is not a built-in AFL function.
It is a user-defined function.
You should write the whole definition formula before the use of the
application.
If you want to avoid this, you may use #include statement.
Here is an example:
I have saved the
//The Ti3 function
function T3(array,p,s)
{
e1=EMA(array,p);
e2=EMA(e1,p);
e3=EMA(e2,p);
e4=EMA(e3,p);
e5=EMA(e4,p);
e6=EMA(e5,p);
c1=-s*s*s;
c2=3*s*s+3*s*s*s;
c3=-6*s*s-3*s-3*s*s*s;
c4=1+3*s+s*s*s+3*s*s;
Ti3=c1*e6+c2*e5+c3*e4+c4*e3;
return Ti3;
}
in my H/D as C:\Ti3\Ti3Ctfunctions.afl
Now, whenever I need a T3 call, I simply write in IB the
#include "C:\Ti3\Ti3Ctfunctions.afl";
array=C;p=10;s=0.8;
Plot(array,"array",1,8);
Plot(t3(array,p,s)," ",5,1);
You may add more t3 s for various array,p,s values.
I hope it is more clear now.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "bruiserbbq" <bruiserbbq@xxxx>
wrote:
> Hey Bob...still got an error:
>
> Line 1, Column 16:
> Buy = Cross( T3(
> --------------^
>
> Error 23.
> Syntax error
>
>
> Buy = Cross( T3(C,3,.7),T3(C,9,.7) );
> AlertIf( Buy, "SOUND C:\\Program
> Files\\ahead\\Nero\\Beeth9th.wav", "Audio alert", 2 );
>
>
> Don't I need to tell it about T3? What about "T3" in there
> somewhere?
>
> Confused....Bruiser
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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
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/
|