To get IEOD Data into Amibroker visit the link below:
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 );|
|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:|
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
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
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] .
Live Charts ▼ (www.analystcalls.in/charts)
|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.|