0

I'm writing a stock trading application, and I want to show a chart with price data and multiple technical indicators plotted on the same graph.

I'm using the twinx() function for plotting multiple indicators along with price.

I don't know how to handle the time-gap on the chart when trading is closed. I have read several answers on SO and other places and they all say to convert datetime to string on the axis where I want to close the gap.

But this is not an option for me because for the multiple indicators I'm calculating on the spur of the moment and they have a shorter date-time range than the price data. It is convenient to just pass the datetime values and have the indicators plotted starting from the far right of the chart.

Is there a way to accomplish this? Any help would be appreciated.

Thanks in advance.

Logica
  • 977
  • 4
  • 16
nparabz
  • 143
  • 1
  • 2
  • 12

0 Answers0