учитывать только стрелку. Стрелка вверх — покупаем, стрелка вниз — продаем.
double up1=iCustom(NULL,0,IndName,Factor1,4,Shift);
double dn1=iCustom(NULL,0,IndName,Factor1,5,Shift);
bool buy = up1!=EMPTY_VALUE;
bool sell = dn1!=EMPTY_VALUE;
double up1=iCustom(NULL,0,IndName,Factor1,4,Shift);
double dn1=iCustom(NULL,0,IndName,Factor1,5,Shift);
double lav1=iCustom(NULL,0,IndName,Factor1,0,Shift);
double mag1=iCustom(NULL,0,IndName,Factor1,1,Shift);
double lav12=iCustom(NULL,0,IndName,Factor1,0,Shift+1);
double mag12=iCustom(NULL,0,IndName,Factor1,1,Shift+1);
double lav2=iCustom(NULL,0,IndName,Factor2,0,Shift);
double mag2=iCustom(NULL,0,IndName,Factor2,1,Shift);
double lav22=iCustom(NULL,0,IndName,Factor2,0,Shift+1);
double mag22=iCustom(NULL,0,IndName,Factor2,1,Shift+1);
bool buy = (up1!=EMPTY_VALUE && ((Bid>lav2 && lav2>0) || (Bid>mag2 && mag2>0))) || ((lav1>lav2 && lav12<lav22) || (lav1>mag2 && lav12<mag22));
bool sell = (dn1!=EMPTY_VALUE && ((Bid<lav2 && lav2>0) || (Bid<mag2 && mag2>0))) || ((lav1<lav2 && lav12>lav22) || (lav1<mag2 && lav12>mag22));
Пожалуйста, доработайте этот индикатор еще
www.opentraders.ru/downloads/3446/
AM2