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

RE: [amibroker] how to set up real time alert?



PureBytes Links

Trading Reference Links

This is a snippet from our resident Alertif guru (Jason Casavant) that was posted on Thu 4/24/2003 2:05 PM
 
-------------------------------------------------------------------------------------------------------
 
This makes an audio alert and sends text to the alert window when price crosses the various trend lines (studies). The code is placed at the top of the built in price indicator....
 
 
Study("s1",1);
Study("s2",1);
Study("s3",1);
 
Buy=Cross(C, Study("s1",1));
Sell=Cross(Study("s1",1), C);
Buy1=Cross(C, Study("s2",1));
Buy2=Cross(C, Study("s3",1));
Sell1=Cross(Study("s2",1), C);
Sell2=Cross(Study("s3",1), C);
 
sound= "SOUND g:\\DOWNLOADS\\Amibroker\\strategy alert.wav";
sound2= "SOUND c:\\windows\\media\ding.wav";
 
AlertIf(Buy, sound2, WriteVal(C,3.2)+ " Violation", 1,1+2+4+8,1 );
AlertIf(Buy1, sound2, WriteVal(C,3.2)+ " s2 Violation", 1,1+2+4+8,1 );
AlertIf(Sell, sound,WriteVal(C,3.2)+ " Violation", 2,1+2+4+8,1 );
AlertIf(Sell1, sound, WriteVal(C,3.2)+ " s2 Violation", 2,1+2+4+8,1 );
AlertIf(Buy2, sound2, WriteVal(C,3.2)+ " s3 Violation", 1,1+2+4+8,1 );
AlertIf(Sell2, sound, WriteVal(C,3.2)+ " s3 Violation", 2,1+2+4+8,1 );
 
-------------------------------------------------------------------------------------------------------
 
d


From: Felix Sun [mailto:mix2net@xxxxxxxxx]
Sent: Tuesday, September 21, 2004 10:43 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] how to set up real time alert?

Hi,
 
I am new to amibroker. I wanna do real time scan and then let amibroker send out alert via email or make some sounds if my conditions are met. I read the user's guide but still confused how to make it. could you kindly tell me in detail? I am not familiar with AFL. Maybe an simple example will make it clear how to do it. Let us say, a stock ABC, when the close price of ABC's current bar (5 minutes setting) is higher than a particular price, send me an email and sound an alert at the same time, could you let me know how to do this? thanks a lot.
 
Best Regards,
Wei
 
 


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT


Yahoo! Groups Links