3 day swing uo or down

 

im looking for an indicator that will tell me if the 3 day swing is either up or down

thanks

 
like fractals ?
 
double p1 = iClose(NULL, PERIOD_D1, 1),
       p3 = iClose(NULL, PERIOD_D1, 3);
if (p1 > p3) Print("UP!");