Typical and weighted price

Created at 15 Apr 2013, 16:11
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
lec0456's avatar

lec0456

Joined 14.11.2012

Typical and weighted price
15 Apr 2013, 16:11


what are the formulas used for typical and weighted market series prices?


@lec0456
Replies

cAlgo_Fanatic
15 Apr 2013, 16:37

Typical price: (High + Low + Close)/3

Weighted: (Open + High + Low + Close) / 4


@cAlgo_Fanatic

cprcrack
20 Feb 2015, 02:47

This kind of things should really be documented on the API reference. I find myself constantly looking for basic answers like this. Thankfully you provide support via this forum, but your documentation is very poor, if you want my opinion.


@cprcrack

driftingprogrammer
19 Jan 2020, 14:45

Still no documentaion

Thanks for this thread, 7 years later people are still looking for these 2 lines since they have still not been added to the API.


@driftingprogrammer

snowchilli
11 Oct 2020, 11:39

RE:

cAlgo_Fanatic said:

Typical price: (High + Low + Close)/3

Weighted: (Open + High + Low + Close) / 4

Are these the formulae that cTrader 3.8 uses for the new indicators
TypicalPrice and WeightedPrice?


@snowchilli

PanagiotisCharalampous
12 Oct 2020, 08:38

Hi snowchilli,

Can you make your question more specific? Which new indicators?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

snowchilli
12 Oct 2020, 09:27

RE:

PanagiotisCharalampous said:

Hi snowchilli,

Can you make your question more specific? Which new indicators?

Best Regards,

Panagiotis 

Join us on Telegram

right click in a chart
select "Indicators"
select "Other"
select "TypicalPrice" (or "WeightedPrice")

Having had a closer look these 2 indicators are not new to cTrader 3.8.

Still the same question though

Typical price: (High + Low + Close)/3

Weighted: (Open + High + Low + Close) / 4

Does the indicator 

- "TypicalPrice" use the formula "Typical price: (High + Low + Close)/3"

- WeightedPrice use the formula "Weighted: (Open + High + Low + Close) / 4"
If not, what formulae do those 2 use?


@snowchilli

PanagiotisCharalampous
12 Oct 2020, 09:34

Hi snowchilli,

The formulas are 

Typical Price = (High+Low+Close)/3

Weighted Close = (Close*2+High+Low)/4

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

bcronje
15 Jul 2024, 19:37 ( Updated at: 16 Jul 2024, 05:51 )

RE: Typical and weighted price

PanagiotisCharalampous said: 

Hi snowchilli,

The formulas are 

Typical Price = (High+Low+Close)/3

Weighted Close = (Close*2+High+Low)/4

Best Regards,

Panagiotis 

Join us on Telegram

Does this mean Bars interface is not documented correctly for Bars.TypicalPrices , see below? I guess it should be /3 and not /2 as per the code comment?

public interface Bars : IEnumerable<Bar>, IEnumerable
{
    //
    // Summary:
    //     Gets the Typical prices data (High + Low + Close) / 2.
    DataSeries TypicalPrices { get; }
}

@bcronje

PanagiotisCharalampous
16 Jul 2024, 06:45

RE: RE: Typical and weighted price

bcronje said: 

PanagiotisCharalampous said: 

Hi snowchilli,

The formulas are 

Typical Price = (High+Low+Close)/3

Weighted Close = (Close*2+High+Low)/4

Best Regards,

Panagiotis 

Join us on Telegram

Does this mean Bars interface is not documented correctly for Bars.TypicalPrices , see below? I guess it should be /3 and not /2 as per the code comment?

public interface Bars : IEnumerable<Bar>, IEnumerable{    //    // Summary:    //     Gets the Typical prices data (High + Low + Close) / 2.    DataSeries TypicalPrices { get; }}

Hi there,

Yes, can you please send me the link from where you found this so that we can fix it?

Best regards,

Panagiotis


@PanagiotisCharalampous

bcronje
16 Jul 2024, 10:34 ( Updated at: 16 Jul 2024, 10:40 )

RE: RE: RE: Typical and weighted price

PanagiotisCharalampous said: 

Hi there,

Yes, can you please send me the link from where you found this so that we can fix it?

Best regards,

Panagiotis

 

Hi there.

It must be coming from the Bars interface source file, as I see it in Visual Studio IntelliSense popup, as well as when drilling into the source with F12 in Visual Studio. See below:

F12:


@bcronje