How to get MacD data for historical and today's date?

Tradefriend
Hi,
I am trying to calculate MACD for 15 minute interval and I am using historical data to calculate it. But this is not returning current days data. All it is showing is the data as on yesterday.

Do I need to separately get today's OHLC data and combine it with historical data before calculating MACD?
Is there any sample code to derive at the current days OHLC based on the time interval? I could not find any info on this in the forum.
I am new to algo coding, request someone to guide on this.
Sign In or Register to comment.