finding a high/low in a double series  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
darob
Posts: 207
Joined: 20 Nov 2014
Has thanked: 57 times
Been thanked: 32 times

finding a high/low in a double series

Postby darob » 04 Feb 2019

Hi, I'd like to identify a macd high and low across a range of bars per this example, but Low.Lowest/High.Highest isn't working for this type of variable. Can anyone suggest what I should be doing?

Many thanks

Code: Select all

protected override void CalcBar(){
double multiBarLow = Bars.Low.Lowest(range, 0);
double multiBarHigh = Bars.High.Highest(range, 0);
double macdLow = m_macd1.Low.Lowest(range, 0);
double macdHigh = m_macd1.High.Highest(range, 0);
Last edited by darob on 04 Feb 2019, edited 1 time in total.

darob
Posts: 207
Joined: 20 Nov 2014
Has thanked: 57 times
Been thanked: 32 times

Re: finding a high/low in a double series  [SOLVED]

Postby darob » 04 Feb 2019

Dropping Low and High did it, as that's obviously related to bar construction and nothing to do with macd :[

double macdLow = mymacd.Lowest(range, 0) seems to be working


Return to “MultiCharts .NET”