Code for doji on intra day chart

i want a code for doji candle on 15 min intra day chart where diffrence between open and close of doji candle is not more than 4 tics(means 20 paisa)

you can check the code available in Expert advisor page from this Link

can you give code for inside candle in intra day chart where open low high close of the second canlde is witihn the first candle

and one more code for
second candle BODY is within the first candle