how to write algo for todays open at 9.15 is above than yesterdays 3.30 pm close and open is equal to low in algo