Skip to content

Indicators and Gap Detection

Don Baechtel edited this page Mar 14, 2018 · 1 revision

I have been working on some improved indicators recently as part of Expert Advisor development.

EAs frequently either call upon Alveo Indicator functions or bundle the Indicator calculations internally to get the chart information that they need to make trading decisions. EAs work best when the information about Price movement is accurate. When the Price information is not accurate, EAs may make inappropriate trading decisions.

You know that there are several opportunities for disruptions in the chart Price data due to several factors, including Weekends, Alveo outage, server disconnects, Alveo Maintenance periods, etc. These disruptions can occur many times each day and each disruption and the associated discontinuities in the data can cause the Indicator functions to take quite a while to recover from the discontinuities and to deliver accurate data again to the EA.

Recently I have added Gap Detection to some of my improved Alveo Indicators. The Gap Detection works by looking for a large difference in Open price of a chart Bar and the Close price of the previous bar. That price difference between Close and Open should usually be near zero.

When a significant Gap is detected, The Indicator resets that Indicator to the new Price so that the Indicator can recover as quickly as possible. The result is shown in the attached picture.

Gap.png

Clone this wiki locally