macdday := barslast(cross(diff,dea)); sjcjd:= if((ppday =nday and vvday =nday and macdday =nday),1,0); sjcjd;