AgenaTrader's extensive functionalities allow you to code custom price and time alerts within a single (or multiple) self-programmed alert handler(s).
Programming in AgenaTrader is based on the Microsoft C#/.net language which enables you to control the system environment and use/code features such as email, SMS, blog entries etc.
Select from the main menu Strategy Handling-> Scripting following by Alert Handler -> New or Edit items to programm new or edit existing alerts.
For example, in the Time alert tab you can select an entry reason for an alert.
Once your price or time alert is triggered, all existing alerts will be opened. You will see the reason for the alert inside this window and can terminate the current alert.
Editing
If you wish to edit the existing alert handler select the Edit submenu. You will see the following dialog box:
The buttons inside this window have the following functions:
- Click the Edit button or double-click on the entry to open the programming window for the selected alert handler.
- Click the Delete button to remove the selected alert handler.
- Click the Compile button to compile all indicators, conditions, strategies and alert handlers. If you delete an alert handler, the system will only accept changes after you have clicked the Compile button.
Creating a new Alert Handler
- Step 1. Enter the name and a short description.
- Step 2. Click on the Next button and begin programming the alert-specific code.
- Step 3. Click the button to make the alert handler available (with all other alert handlers). When a price or time alert is triggered, each Alert Handler will search for ways to handle it, if necessary.
Example. Alert Handler for sending emails
A simple method of combining a price or time alert with the Alert Handler is to use the alert reason. If, for example, the field for alert reason contains “Send Email” then the programmed alert will be executed as soon as the alert handler finds this alert reason.