ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Daily Chart, gridline every “Sunday”
Posted by Chuck on Feb-06-2020 23:48
Peter,

What is the simplest way to get a Gridline every “Sunday” on a Daily OHLC (Forex) Chart?

I know what day my data starts (let’s say Tuesday) with the number of days to “Sunday” (4), with an interval of 6 days (there is no Saturday Bar) but how do I start the Gridline +4 bars in?

Is there something built-in to Chart Director to make this simpler?

Thank you,
Chuck

  Re: Daily Chart, gridline every “Sunday”
Posted by Peter Kwan on Feb-11-2020 03:24
Hi Chuck,

Are you creating the chart using the XYChart object directly, or using the FinanceChart object? If you are using the XYChart object directly and the axis labels are adding using Axis.setLabels, you can use Axis.setLabelStep to display one label every 6 days, with an initial offset of 4. See:

https://www.advsofteng.com/doc/cdnet.htm#Axis.setLabelStep.htm

Regards
Peter Kwan

  Re: Daily Chart, gridline every “Sunday”
Posted by Chuck on Feb-11-2020 03:41
Awesome, TY Peter.
Chuck