Dear Nagarjuna,
I added this below lines . Now its showing correctly.
Datefine = IIf(Ref(DateNum(),1) == Ref(DateNum(),-1),1,0);
BuyV = uptrend AND Ref(uptrend, -1) AND (H > ( Ref(H, -1) +5)) AND Datefine;
SellV = downtrend AND Ref(downtrend,-1) AND (L < ( Ref(L, -1) - 5)) AND Datefine;