Calculating gold eod prices when current future contract ends and next month contract

Dear friend,
Help me in calculating seamless end of the day prices from mcx future prices for charting.
Switching current month contract prices to future month at end of the month creates jump in charts,Because of the premium in next month contract.

Thanks in advance,

Similar threads