Custom indicator needs a bar chart in a different chart window
Created at 02 Dec 2015, 10:49
Custom indicator needs a bar chart in a different chart window
02 Dec 2015, 10:49
The indicator I am developing needs to display a bar chart in a secondary chart window. I need to know few things,
1. How can I get the basic chart properties of the custom chart?
Examples:
- How to get price axis from the main chart window to the secondary?
- How to change the horizontal scale of the chart window?
- How can I turn the grid on in the secondary window?
- Or in general is there a way to copy these properties from the main chart to the secondary?
2. The best possible way to make a bar chart? I would really appreciate if someone can share a code how to draw the candlestick chart with only using market series data, high-open-close-low and time frames.
Thanks in advance.
Spotware
02 Dec 2015, 17:34
Dear Trader,
Currently cAlgo.API doesn't offer any methods that could change the chart viewing options or the chart scale. We will consider providing it in the future. Additionally, you can post your ideas/suggestions to http://vote.spotware.com/
Regarding getting the price of a chart and showing it on another chart, you can take advantage of the C# language and create a custom method(class) that invokes the methods DrawHorizontalLine() and RemoveObject().
Regarding your question about the drawing a bar, we recommend you to have a look at the following custom indicator: Renko Chart (not time based)
We hope this helps you.
@Spotware