There is a status flag, NEWDAY, that you can use for this.
So basically just do
Code:
if (is(NEWDAY)) {

}



This returns true if "The current bar is the first bar of the current day."

Last edited by Dalla; 01/04/19 14:52.