position visible range and cursor via c#

Questions about MultiCharts .NET and user contributed studies.
riverTrader
Posts: 64
Joined: 15 Aug 2011
Has thanked: 3 times
Been thanked: 50 times

position visible range and cursor via c#

Postby riverTrader » 10 Mar 2013

Is it possible to specify the following via code?

1.) the primary instrument on the chart
1.a) the startDate & endDate of the primary instrument data for a chart
2.)the visible range of a chart (the time period the user sees on the chart)
3.)the location of the cursor on a chart

I need to be able to get the values from a trade (date, time, instrument) and show the user the location of the trade on a chart. It seems like I ought to be able to do this without manually bringing up the chart and moving to the location.

tia.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: position visible range and cursor via c#

Postby Henry MultiСharts » 11 Mar 2013

Hello riverTrader,

There is no way to specify that from the code.
You may want to have a look at CStudyControl.ScrollToBar Method.
It allows to Scroll Chart to Specified Bar Number on then Subchart.


Return to “MultiCharts .NET”