Selecting order from history of a day

 

Hey Guys !

I have been stuck at this point. I know that we can select the last closed order by comparing the order close time of one order with the order close time of the other order and check that which one highest .

but i want to select the all closed orders of last day one by one and check the total loss in pips if there is of all closed orders  . I can calculate loss in pips but the problem is that

 i am stuck on this point that how will i select the orders of the last day. Hope so that some one can help me to learn to solve the issue.

Thanks in advance!!!

 
If you had used this you would have found (among many) this.
Reason: