Bars.AvgPrice and Bars.MedianPrice: these strangers  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Phonix88
Posts: 17
Joined: 12 Sep 2013
Has thanked: 10 times
Been thanked: 2 times

Bars.AvgPrice and Bars.MedianPrice: these strangers

Postby Phonix88 » 23 Mar 2014

Hi!
I need of explanations about Bars.AvgPrice and Bars.MedianPrice. How are calculated this two prices?

How I can make an moving average with one of this two?
I have tryed with this:

Code: Select all

m_averagefc1.price = Bars.MedianPrice;
m_averagefc1.length = fastlength;
But Multicharts give me back an error.

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

Re: Bars.AvgPrice and Bars.MedianPrice: these strangers  [SOLVED]

Postby Henry MultiСharts » 25 Mar 2014

Hello Phonix88,

Bars.AvgPrice and Bars.MedianPrice return double values. For AverageFC.price you need ISeries<double>. Please find an example here.


Return to “MultiCharts .NET”