set chart to show only the last 3600 seconds

Questions about MultiCharts .NET and user contributed studies.
Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

set chart to show only the last 3600 seconds

Postby Ram » 04 Aug 2015

Hi,
My goal is to have a chart that shows only the last hour based on 1 second bar, when setting the data range for 60 minutes Bars Back it works as it should:

Image

However when setting the data range for 3600 Bars Back for 1 second resolution the result is much more than one hour of data as there wasn't a trade at every second:

Image

so my question is how set a chart based on 1 second resolution to hold only one hour of data?

Thank you all in advance,
R.

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: set chart to show only the last 3600 seconds

Postby JoshM » 05 Aug 2015

so my question is how set a chart based on 1 second resolution to hold only one hour of data?
Hm. Setting the instrument to bid or ask to ensure that there is an update every second is not an option?

Otherwise, I would create an indicator that would plot price bars and add that indicator to a one-second data series. That indicator can then implement the logic of only showing the last hour.

But I doubt that will really help you, since you probably want to add scripts to the 'last 3600 seconds' time frame chart. So I'm afraid this cannot be done.

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Re: set chart to show only the last 3600 seconds

Postby Ram » 05 Aug 2015

Thank you Josh.


Return to “MultiCharts .NET”