Hello, I am trying to use the RateOfChangePercent indicator, but instead of setting a period to calculate the two values, I want to determine the rate of change from the opening price of the day to the current price at any minute during the day. For example, an open price at 9:30 am of $20.00 compared to a price at 10:30 of $22,00 which would be a percent change of 10%, then later in the day, the price at 1:30 pm of $19.50 is a percent change of -5%. This would reset the calculation every morning at the market open. Looking to do this with minute resolution.

I have been able to do this calculation in the OnData section, but have not been able to figure out how to do it in the Initialize section. 

Any help would be great, thank you.