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

[amibroker] Re: barssince question



PureBytes Links

Trading Reference Links

Sorry guys...but its still not working. Here's what I've got:


function T3(price,periods)

{

s = 0.618;

e1=EMA(price,periods);

e2=EMA(e1,Periods);

e3=EMA(e2,Periods);

e4=EMA(e3,Periods);

e5=EMA(e4,Periods);

e6=EMA(e5,Periods);

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;

}

Plot(C,"",1,64);

Plot(T3(C,3),"T3",colorBlue,1);

Plot(t3(C,9),"T3",colorRed,1);

T3A=T3(C,3);

T3B=T3(C,9);

Buy = Cross(T3A,T3B);

PlotShapes(IIf
(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen,0,Graph0,-15);

AlertIf( Buy, "SOUND C:\\Program 
Files\\ahead\\Nero\\Beeth9th.wav", "Audio alert", 1);


I'm at a loss as to why it won't work. Theres been at least 6 
crosses today while I have sat here trying to figure this out.

Jason, I'm confused by the AlertIf( Buy, "SOUND C:\\Program 
Files\\ahead\\Nero\\Beeth9th.wav", "Audio alert", 1);
 code you mentioned.

Any ideas?

Cheers 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

<*> 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/