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> ?
Custom Price Series Questions
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Custom Price Series Questions
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.
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.
Re: Custom Price Series Questions
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
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
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Custom Price Series Questions
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
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