if (Filter_ != -1)
{
double MA_1 = iCustom(_Symbol,PERIOD_CURRENT,"Parabolic-on-MA",MA,Method,Step,Maximum,1,1),
MA_2 = iCustom(_Symbol,PERIOD_CURRENT,"Parabolic-on-MA",MA,Method,Step,Maximum,1,2),
PSAR_1 = iCustom(_Symbol,PERIOD_CURRENT,"Parabolic-on-MA",MA,Method,Step,Maximum,0,1),
PSAR_2 = iCustom(_Symbol,PERIOD_CURRENT,"Parabolic-on-MA",MA,Method,Step,Maximum,0,2);
if (Filter_ == OP_BUY && ND(MA_1,PSAR_1,Digits) > 0 && ND(PSAR_2,MA_2,Digits) > 0) FinalSignal = OP_BUY;
else
if (Filter_ == OP_SELL && ND(MA_2,PSAR_2,Digits) > 0 && ND(PSAR_1,MA_1,Digits) > 0) FinalSignal = OP_SELL;
}
if (FinalSignal == -1)
{
if (ND(iCustom(_Symbol,PERIOD_CURRENT,"Jurik filter 1.02",PERIOD_CURRENT,Length,Phase,Double,Price,Filter,FilterType,3,1),0,4) !=
EMPTY_VALUE) FinalSignal = OP_BUY;
else
if (ND(iCustom(_Symbol,PERIOD_CURRENT,"Jurik filter 1.02",PERIOD_CURRENT,Length,Phase,Double,Price,Filter,FilterType,4,1),0,4) !=
EMPTY_VALUE) FinalSignal = OP_SELL;
if (FinalSignal != -1) Print("Cигнал по Jurik Filter");
} else Print("Основной сигнал");