Skip to content

Alveo Implementation Details

Don Baechtel edited this page Sep 20, 2018 · 7 revisions

Alveo has some specific implementation details that you need to know:

Symbol and Timeframe parameters

The symbol and timeframe parameters are not implemented in Alveo. It is not possible to get data from any other symbol or any other timeframe other than the symbol and the timeframe to which the Indicator or EA are running. The values for these parameters should be null (Chart symbol) for symbol and 0 (current timeframe) for the timeframe.

Expert Advisor (EA) Code Entry Points

There is 4 entry point where Alveo calls the Expert Advisor code:

  1. Expert Advisor Class constructor - called when the EA class (object) is constructed (created).
  2. Init - called when Alveo wants to restart and initialize the EA object.
  3. DeInit - called when Alveo wants the EA to clean up or dispose of any class objects before the EA is terminated.
  4. Start - called every time that the Chart symbol currency Bid or Ask price changes and every time a new Chart bar is created.

Expert Advisor Class Constructor

The EA Class constructor is used to create and initialize the EA class variables to default values. Do Not call Alveo API functions in the EA Class constructor. The EA Class constructor is invoked by the Alveo Code Editor and the Chart object does not exist, so many of the Alveo functions will fail and the Code Editor Build process may get an Exception and lock up. Locate all EA variable initializations that require Alveo function calls to the EA Init function instead.

Chart Loading

Just because Alveo is running and more than one chart tab is shown, does not mean that the chart is loaded and that any indicator or Expert Advisor attached to the chart is running. To get the Chart to load and the attached Expert Advisor to run, the chart tab must be "touched" in order to cause Chart to load and for the attached Expert Advisor to be started.