Hi,
I have a formula that I would only want to launch at and after the bar when I apply the , or in other words, I do not want the formula to be executed at any of the past bars even though these bars are displayed.
One way I can think of is to get the system year, month, day, hour, minute, and compare it with a bar's year, month, day, hour, and minute. If they match, then I start applying the formula. Doing a comparison this is quite cumbersome because of the rollover in month, day, hour and minute.
I'm wondering if there's an easier solution.
Thank you.
William
I have a formula that I would only want to launch at and after the bar when I apply the , or in other words, I do not want the formula to be executed at any of the past bars even though these bars are displayed.
One way I can think of is to get the system year, month, day, hour, minute, and compare it with a bar's year, month, day, hour, and minute. If they match, then I start applying the formula. Doing a comparison this is quite cumbersome because of the rollover in month, day, hour and minute.
I'm wondering if there's an easier solution.
Thank you.
William
Comment