To get IEOD Data into Amibroker visit the link below:
http://tinyurl.com/ctzqcsy
Whenever the buy/sell signals trigger in Amibroker then we can configure the respective AFL so that it can send signals to us in the form of an Audio. All we need to do is to add the following two lines of code to get Audio Alerts:
AlertIf( Buy, “SOUND C:\\Program Files\\Yahoo!\\Messenger\\Media\\RingTones\\yodel.wav“, “Audio alert”, 2 );
AlertIf( Sell, “SOUND C:\\Program Files\\Yahoo!\\Messenger\\Media\\RingTones\\ringback.wav“, “Audio alert”, 2 );
In the above syntax, the lines marked in red show the path of the audio files. Those are the file paths in my system. You need to replace it accordingly based on where the file is stored in your system.
That is all. It’s so simple. If you want to get into the details of the sytax rules of the above code, here it is:
| SYNTAX | AlertIf( BOOLEAN_EXPRESSION, command, text, type = 0, flags = 1+2+4+8, lookback = 1 ); |
| RETURNS | nothing |
| FUNCTION | Triggers alert action if BOOLEAN_EXPRESSION is true.1. BOOLEAN_EXPRESSION is the expression that if evaluates to True (non zero value) triggers the alert. If it evaluates to False (zero value) no alert is triggered. Please note that only lookbackmost recent bars are considered.2. The command string defines the action taken when alert is triggered. If it is empty the alert text is simply displayed in the Alert output window (View->Alert Output). Other supported values of command string are: SOUND the-path-to-the-WAV-file EXEC the-path-to-the-file-or-URL SOUND command plays the WAV file once. EMAIL command sends the e-mail to the account defined in the settings (Tools->Preferences->E-mail). The format of the e-mail is as follows: Subject: Alert type_name (type) Ticker on Date/Time Body: text EXEC command launches external application or file or URL specified after EXEC command. are attached after file name and textis attached at the end3. Text defines the text that will be printed in the output window or sent via e-mail or added as argument to the application specified by EXEC command4. Typedefines type of the alert. Pre-defined types are 0 – default, 1 – buy, 2 – sell, 3 – short, 4- cover. YOu may specify higher values and they will get name “other”5. Flags control behaviour of AlertIF function. This field is a combination (sum) of the following values: ( 1 – display text in the output window, 2 – make a beep (via computer speaker), 4 – don’t display repeated alerts having the same type, 8 – don’t display repeated alerts having the same date/time) By default all these options are turned ON.6. lookback parameter controls how many recent bars are checked |
| EXAMPLE | Buy = Cross( MACD(), Signal() );Note EXEC command uses ShellExecute function and allows not only EXE files but URLs too. |
Author of AnalystCalls. Have you checked my most viewed articles on how to download and configure Free EOD, IEOD & Real-time data of NSE, MCX into Amibroker? Here are the details [LINK] .
Be the first one to read quality articles of AnalystCalls by subscribing through email (free) and get them right into your Inbox [LINK]
Live Charts ▼ (www.analystcalls.in/charts)
| Nifty | BankNifty |
| You are reading this article on analystcalls.in, Stay tuned for career, Education news, Jobs, Exam Results, Answer keys, Interviews & Job discussions, Stock Market Technical and Trading Analysis and Calls, Latest Trendy News! For regular updates like us on Facebook and Subscribe by Email to get immediate updates. |


Hi Priyaji
Please can u let me know how to download amibrokar charts etc from ur website as i have read about the same on your site for ieod & eod
Thanx
Abhay Dagli
Hi Abhay, here are the links for getting nse and mcx data for free into amibroker:
http://www.analystcalls.in/free-nse-mcx-forex-eod-ieod-realtime-cbloomnews-links-at-one-place/
In the above post you will find 4 articles to download data…
Hey Priya,
Very interesting post and I must say your blog is really good and different. Since I am into stock trading as well, I think your blog will be of great help.
Thanks Maninder for your comment.
Hi Priya, I have been visiting this site for quite some time. Your work is excellent. w.r.t to the Alerts.
The information you provided will create Alerts for all timeframes or only for say 30 min. As I am interested in
30 min and daily signals only. Can you help me out with this.. Thanks once again for all your work…
regards
Rajkumar
Hi priya, i can not here sounds, when the amibroker give signals of buy/sell
pl. clarify me to here the sound from amibroker when it give buy/sell signal.
Hi Priya,
I am beginner with Amibroker and need an AFL when the Price crosses a certain level.
I need to get an email when the price crosses a certain level for buy and get email when the price goes below a certain level for Sell..
This might be a repeated request but hope you can help me….Thanks & Appreciate your help on this..
Vinodh
Hi Priya,
I a newbe to afl, I would def like to know how you go about setting a sound alert by the above mentioned method, do be kind and explain a step by step manner.
Many Thanks In advance
or to be more precise;- where do you add these lines of code, and then how do I get the sound to trigger when a certain price level is reached.
This code can be used in any buy sell signaling AFLs (you can add the code at the end of the AFL before endsub). Here the conditions are only two either buy or sell. There is no condition given in this afl so that it alerts after a certain price level reached.