Mathematical Analysis of Doji Trading