int res; double x1=iCustom(NULL,0,"xpMA_1.1",MA_Period,MA_Type,MA_Applied,T3MA_VolumeFactor,JMA_Phase,Step_Period,Alert_On,Arrows_On,1,0); double x2=iCustom(NULL,0,"xpMA_1.1",MA_Period,MA_Type,MA_Applied,T3MA_VolumeFactor,JMA_Phase,Step_Period,Alert_On,Arrows_On,2,0); if(x1==2147483647) res=1; else if(x2==2147483647) res=-1; else res=0;