[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

Thank you. AA means Auto-Analysis window, right?
 
Now, could you guys give me a sample code to do the following thing? basically, I want to catch some momentum play stocks, say, in the setting of 5-minute bars, if the current price is 5% higher the average of the previous 5 minutes, meanwhile, the volume in the past 5 minutes are more than 5 times relative to the average volume, then make an alert. I guess it is not difficult to realize this function using AFL.
 
Appreciate your help.
Wei

Anthony Faragasso <ajf1111@xxxxxxxx> wrote:
Put in AA window and Tick on the SCAN EVERY MIN...box and insert minutes to scan..
----- Original Message -----
From: Felix Sun
Sent: Tuesday, September 21, 2004 12:25 PM
Subject: Re: [amibroker] how to set up real time alert?

Hi,
 
I already read 'Using formula-based alerts'' in the tutorial and I understand those code but the problem is where should I put it? I did not find the basic procedure to set up alert for my watching list in amibroker. Where do you guys write code in amibroker if you want scan stocks in real time? thanks.
 
Wei

john gibb <jgibb1@xxxxxxxxxxxxx> wrote:
Hi Wei,
 
I am not sure where you are stuck.
 
Did you download the archives?
 
Also, have you read the tutorial in the User's Guide called 'Using formula-based alerts'? Here is an excerpted example:
 

Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Short = Sell;
Cover = Buy;

AlertIF( Buy, "EMAIL", "A sample alert on "+FullName(), 1 );

AlertIF( Sell, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 2 );

AlertIF( Short, "EXEC Calc.exe", "Launching external application", 3 );

AlertIF( Cover, "", "Simple text alert", 4 );

Note EXEC command uses ShellExecute function and allows not only EXE files but URLs too.

HTH,

-john
----- Original Message -----
From: Felix Sun
Sent: Tuesday, September 21, 2004 8:25 AM
Subject: Re: [amibroker] how to set up real time alert?

Hi, John,
 
Thanks for your reply. I just don't know how to start as I am totally a newpie to amibroker. wanna somebody could lead me in the door then I will check the related things out.
 
Thanks again,
Wei

john gibb <jgibb1@xxxxxxxxxxxxx> wrote:
Hi Wei,
 
I would download the CHM archives do a search on 'Alertif'.
 

-john
----- Original Message -----
From: Felix Sun
Sent: Tuesday, September 21, 2004 7:42 AM
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





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





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





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
click here


Yahoo! Groups Links