PureBytes Links
Trading Reference Links
|
Bruiser,
Me thinks I assumed too much.
Your error probably pointed to T3, i.e.,
Buy = Cross( T3(
---------------------^
Error 23.
Syntax error
AB says it doesn't recognize T3, so you failed to define that function.
try adding
------
function T3(price,len,amp)
{
s = amp;
e1=EMA(price,len); e2=EMA(e1,len);
e3=EMA(e2,len); e4=EMA(e3,len);
e5=EMA(e4,len); e6=EMA(e5,len);
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;
-----
before
Buy = Cross( T3(C,3),T3(C,9) );
Bob
-----Original Message-----
From: bruiserbbq [mailto:bruiserbbq@xxxxxxxxxxxx]
Sent: Wednesday, April 28, 2004 5:03 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: What's wrong with this formula?
I tried your suggestion Bob...but I got this error:
Line 1, Column 16:
Buy = Cross( T3(
--------------^
Error 23.
Syntax error
Here's the formula so far:
Buy = Cross( T3(C,3),T3(C,9) );
AlertIf( Buy, "SOUND C:\\Program
Files\\ahead\\Nero\\Beeth9th.wav", "Audio alert", 2 );
Thanks Bruiser
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
------------------------ 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/
|