tripple cross over

#1
seniors,
I want to add a buy or sell condition
buy = cross(C, MA(c, 20) ) and check from (lastbar -1) to previous 25 bars (ie. from right to left)to find a double cross of C and MA(C, 20);
sell = cross(MA(c, 20) , c) and check from (lastbar -1) to previous 25 bars( ie. from right to left) to find a double cross of MA(C, 20) and C
thanks
 

Similar threads