PureBytes Links
Trading Reference Links
|
Andre,
All back-slashes within a string must be doubled:
AlertIf( buysignal, "SOUND C:\\Documents and Settings\\ANDRE DE
HAVILLAND\\Desktop\\fanfare3.wav", "Audio alert", 0);
(this got me quite a few times)...
Walt
--- In amibroker@xxxxxxxxxxxxxxx, "andre7120"
<andre.dehavilland@xxxx> wrote:
>
> Hi all
>
> Im having some real problems setting up an alert for my trading
> system. Ive had help from Marcin at Amibroker but its still not
> working. My system is to monitor the Golden Cross and Dead Cross
for
> 9 and 18 EMA`s . I have been trying for days to get the alert to
> work on this criteria
> MY formula is
>
> if(InWatchList(0)){
>
> buysignal = Cross( EMA(Close,9), EMA(Close,18) );
>
> sellsignal = Cross(EMA(Close, 18), EMA(Close, 9));
>
> AlertIf( buysignal, "SOUND C:\\Documents and Settings\ANDRE DE
> HAVILLAND\Desktop\fanfare3.wav", "Audio alert", 0);
>
> AlertIf( sellsignal, "SOUND C:\\Documents and Settings\ANDRE DE
> HAVILLAND\Desktop\fanfare3.wav", "Audio alert", 0);}
>
> //--Indicator-End--
>
>
> And I also have a different version in Auto Analysis checking
> watchlist 0 at 1 minute intervals
>
>
> Buy = Cross( EMA(Close,9), EMA(Close,18) );
> AlertIf( Buy, "SOUND C:\\Documents and Settings\ANDRE DE
> HAVILLAND\Desktop\fanfare3.wav", "Audio alert", 1 );
>
> Sell = Cross( EMA(Close,18),EMA(Close,9) );
> AlertIf( Sell, "SOUND C:\\Documents and Settings\ANDRE DE
> HAVILLAND\Desktop\fanfare3.wav", "Audio alert", 2 );
>
> //--Indicator-End--
>
> But neither set my own wave file alert off ( I replaced Ding as
its
> too quiet ! )
>
> Any kind people out there that can sort out what Im doing wrong
> please and send me in the right direction ?
>
> many thanks
>
> Andre
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|