Thank you for the replies.
Regarding the math lining up, are you certain the values being compared are the same the PriorDayOHLC is using?
You could review the logic in this indicator to see how exactly it calculates the data, it is basically going to just be the OHLC of the bar series it is applied to. This would entail if you do not pass a secondary series but reference the values from the secondary series, it would be different. It is hard to say without seeing the specific test you had completed and the total syntax used.
Regarding the syntax: PriorDayOHLC(Closes[1]).PriorHigh[0] "
This is just using the second overload to provide a series to calculate the Prior day information on. The Add statement in Initialize would be related in the sense that you Add the second series to be able to use it. Closes[1] signifies the secondary close series.
If you review the syntax in the PriorDayOHLC indicator, you will note that this indicator uses the Session specifically to determine what data is included. If you only want Monday - Friday specifically, you could create a custom session template that only includes these dates. Or not use the PriorDayOHLC and only get values of the Monday - Friday of the current week using logic. The PriorDayOHLC will create a continuous plot series of all Prior day OHLF values of the session template, if you only need the current weeks information it would potentially be easier to just reference that data specifically using logic in the current script.
I look forward to being of further assistance.
Comment