Integrating VSA System into an EA/Indicator
You can use these 2 functions below, from the following library, to find signals from either VSA or Volumes indicators.
Library file: Download
Implementation Example
#include <VSA.mqh>
//— CHECKS FOR VSA/VOLUME SIGNALS IN THE CURRENT SYMBOL AND TIMEFRAME, SHIFT = 1
if ( IsSignal(true, false, NULL, 0, 1) || IsSignal(true, true, NULL, 0, 1) )
Alert(“Strong VSA signal found in shift = 1”);
if ( IsVolumeSignal(NULL, 0, 1, VOLUME_CHURN) || IsVolumeSignal(NULL, 0, 1, VOLUME_THRUST) || IsVolumeSignal(NULL, 0, 1, VOLUME_TEST)
|| IsVolumeSignal(NULL, 0, 1, VOLUME_HIGHVOLUME) || IsVolumeSignal(NULL, 0, 1, VOLUME_LOWVOLUME) )
Alert(“Volume signal found in shift = 1”);