Custom Price Series Questions

Questions about MultiCharts .NET and user contributed studies.
franky
Posts: 24
Joined: 25 Nov 2012
Has thanked: 4 times
Been thanked: 4 times

Custom Price Series Questions

Postby franky » 26 Nov 2012

1. If I set the Bar.State properties to none (value = -1) to a specific Bar, will it means that when I'll ask for Bars.Close[x] it will skip the Bar with state (-1) and gives me only the active Bars ?
2. What is the best way to create a custom Series of price Bars which can be reference the same way as with the CstudyControl.Bars ... (Bars.Close[x], Bars.High[x], ...)? Do I need to create a complete FunctionObject<T> ?

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

Re: Custom Price Series Questions

Postby Henry MultiСharts » 27 Nov 2012

Hello Franky,

1) Bars.status is a read only property.
2) You need to insert a data series to the chart to reference it from the code.

franky
Posts: 24
Joined: 25 Nov 2012
Has thanked: 4 times
Been thanked: 4 times

Re: Custom Price Series Questions

Postby franky » 27 Nov 2012

Thanks Henry.
My questions was more related to generating a custom price series relative to another one. Basically what I would like to do is generating a custom Renko price series indicator which I could use as a trigger for a strategy. This custom Renko price series would have no Bar at some time. What would be the best C# Iimplementation to use for that ?
Many thanks

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

Re: Custom Price Series Questions

Postby Henry MultiСharts » 28 Nov 2012

Hello Franky,

You can use IChartCustomDrawer to create a custom plot that will have the shape and color you want.
Here is an example how to plot candles with gradient colors in MC .Net using IChartCustomDrawer


Return to “MultiCharts .NET”