PureBytes Links
Trading Reference Links
|
Bruiser,
I have never used the Alert function, but an observation: you have double \\
in the directory path. Shouldnšt they be single \ backslashes...or is this
an Amibroker requirement?
Also, I donšt see where T is anything but = 14 so youšre never going to get
T to cross 0 for your Buy and Sell signals (or did I miss that somewhere?).
Terry
--
> Hi gang, I want to have a audio and visual alert for a cross of the
> zero line on my 14 CCI....but the code below is not working...can
> anyone point out where its wrong?
>
> T = 14;
> Title = "301-4 " + Name () + " " + FullName() + " "
> + "CCI" + " 14 " + "periods:" + WriteVal(T);
> MaxGraph = 5;
> Graph2 = CCI (T);
>
> Uptrend = 100; Downtrend = -100;
>
> Graph2BarColor = IIf (Graph2 > uptrend, colorGreen,
> IIf (Graph2 < downtrend,30,30));
>
> Graph4 = Graph2;
> Graph4Style = 4;
>
>
> Plot(CCI(6),"C2",4);
> Plot(200,"My line",colorRed);
> Plot(-200,"My line",colorRed);
> Plot(100,"My line",colorWhite);
> Plot(-100,"My line",colorWhite);
>
> PlotGrid(50,colorBlack);
> PlotGrid(-50,colorBlack);
>
> LSMA25 = LinearReg( Close, 25 );
>
> mycolor25 = IIf(C<Lsma25, colorRed, 5);
>
>
>
> // Plot 0 Line Ribbon
> Plot(4,"ribbon", IIf (C>LSMA25,
> mycolor25,colorRed),styleArea|styleNoLabel, 1, 1000 );
>
> Plot(4,"ribbon", mycolor25,styleOwnScale|styleArea|styleNoLabel, -
> 0.5, 1000 );
>
> Sell = Cross( 0, T);Buy = Cross( T, 0);
> PlotShapes(shapeDownArrow*Sell,colorRed);
> PlotShapes(shapeUpArrow*Buy,colorGreen);
> AlertIf( Sell, "SOUND F:\\Windows\\Media\\tada.wav", "Audio alert");
> AlertIf( Buy, "SOUND F:\\Windows\\Media\\level_victory.wav", "Audio
> alert");
>
>
> Cheers Bruiser
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|