{BarsSince cross} a1:=BarsSince(Cross(PDI(14),MDI(14))); {High the day of cross} a3:=ExtFml("forum.REF", H, a1); {Is close greater than high of day DI crossed} a4:=C>a3; {+DI has been greater than -DI since it crossed} a5:=ExtFml("forum.SUM",PDI(14)>=MDI(14),a1)=a1; a6:=ADX(14); {How much has ADX been greater than yesterdays ADX since cross} a7:=ExtFml("forum.SUM",ADX(14)>Ref(ADX(14),-1),a1)=a1; a8:=PDI(14); a9:=MDI(14); a10:=Sum(a6>Ref(a6,-1),5); Trigger:=a1=3 AND a6<20 AND a6>Ref(a6,-1) AND a5=1; a5;