I hope all works as it should
you can filter only if you want a big retracement before the signal (with the setting "Height")
you need to access the setting in an EA this way :
Code: Select all
double b1;
double s1;
double b = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin, 0, i+1);
double b_ = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin, 0, i);
if (b > 0 && b < EMPTY_VALUE)
if (b_ <= 0 || b_ >= EMPTY_VALUE)
b1 = b;
double s = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin, 1, i+1);
double s_ = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin, 1, i);
if (s > 0 && s < EMPTY_VALUE)
if (s_ <= 0 || s_ >= EMPTY_VALUE)
s1 = s;