To get Highest value based on time?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Posts: 24
Joined: 15 Sep 2013
Has thanked: 6 times
Been thanked: 3 times

To get Highest value based on time?

Postby victoryong » 07 Feb 2014

HI there,
I'm currently retrieving the highest and lowest price based on Bars.High.Highest and Bars.Low.Lowest. Are there any method/functions that allow me to retrieve the Highest and Lowest price with time instead of barsback?

Code: Select all

TimeSpan barTime = Bars.TimeValue.TimeOfDay;

if (barTime == MyTime) {
IsCancelTimeTriggered = false;
HighPrice = Bars.High.Highest(3);
LowPrice = Bars.Low.Lowest(3);


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

Re: To get Highest value based on time?  [SOLVED]

Postby Henry MultiСharts » 10 Feb 2014

Hello Victor,

There is no such prebuilt functionality. That is possible to create a custom function that will convert the values.

Return to “MultiCharts .NET”