This is a migrated thread and some comments may be shown as answers.

How to create custom indicator

7 Answers 27 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 13 Apr 2017, 05:37 PM

Hi,

I need to create new custom indicator for candlestick chart  (VWAP & Pivots). I found explanation here (http://docs.telerik.com/devtools/winforms/chartview/series-types/indicators/custom-indicators), but I can't compile the code. 

 

public class DisparityIndexIndicator: ExponentialMovingAverageIndicator

{

    public override double GetProcessedValue(int currentIndex){

double close = (this.DataPoints[currentIndex] as IndicatorValueDataPoint).BaseValue;double ema = base.GetProcessedValue(currentIndex);double result = ((close - ema) / ema) * 100;return result;}}

7 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 17 Apr 2017, 04:20 PM
Hello Alex,

The documentation you linked to is for UI for Winforms, not UI for WPF (documentation for UI for WPF is here).  Go here to see how to create custom content for the UI for WPF RadBusyIndicator.

If this answers your question, you can let me know by clicking the ticket's "Mark as resolved" button. If it doesn't please let me know how I can further assist.

Note:
I also see you've opened a duplicate ticket containing the same question as here, please also mark the other ticket as resolved if this is what you're looking for. I'll reply there as well. 

Thank you for contacting Support and for choosing UI for WPF.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Alex
Top achievements
Rank 1
answered on 18 Apr 2017, 04:14 AM

Hi Lance,

Thank you for you answer. 

I don't need custom content for busy indicator. I need to create custom financial indicator for financial candlesticks chart. Winform article expains exactly what I need.

I can't find any documentation about it. 

Thanks in advance, 

Alex. 

0
Lance | Manager Technical Support
Telerik team
answered on 18 Apr 2017, 02:40 PM
Hello Alex,

My apologies for misreading your initial request. There are currently no help articles on how to do this for WPF. I have reached out to the RadChartView development team to follow up with you, in the meantime I will attempt to create a demo myself.

We will respond in the Support Ticket, if you want, you can come back here to share the result with the community.

Thank you for your patience and understanding while we work to get this together for you.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Kostya
Top achievements
Rank 1
answered on 28 Jun 2019, 10:17 AM
I have the same problem. Still no docs on this issue. Please send me an example to infine@dasuppa.com
0
Lance | Manager Technical Support
Telerik team
answered on 28 Jun 2019, 02:26 PM
Hi Kostya,

The reason there is no documentation for this is because it's not an available feature. However, it's still possible if you combine series to get a similar appearance. I've attached a demo that shows how to add a LineSeries on top of the CandlestickSeries:

<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis />
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis />
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.Series>
        <telerik:CandlestickSeries ItemsSource="{Binding FinancialData}"
                                   CategoryBinding="Category"
                                   OpenBinding="Open"
                                   CloseBinding="Close"
                                   LowBinding="Low"
                                   HighBinding="High" />
        <telerik:LineSeries ItemsSource="{Binding IndicatorDataPoints}"
                            CategoryBinding="Category"
                            ValueBinding="Value" />
    </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>

The LineSeries's data points are where you want the indicator line to be.




Further Assistance

If you have any further questions, please open a Support Ticket with your requirements and we'll see what we can do to accommodate you. Per policy, we no not directly email anyone for support communications, this needs to be done through the ticketing system.

I was not able to find any license for UI for WPF on your account, are you using a different Telerik account that does have a license? Alternatively, if your company owns the license, have them assign you as the Licensed User here: Manage Licensed Users Portal.

Once you have the license on your account, you can open support tickets directly. Thank you for your understanding in this matter.


Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Kostya
Top achievements
Rank 1
answered on 28 Jun 2019, 02:35 PM

Hi Lance, 

 

Thanks for the reply. Actually I need to develop a kind of oscillator, which has only horizontal axis in common with the main chart. Verctical axis of my indicator doesn't have anything to do with the chart's one.Is there any way to implement this kind of indicator?

0
Lance | Manager Technical Support
Telerik team
answered on 28 Jun 2019, 03:11 PM
Hi Kostya,

Without more information about the scenario, I'm not sure if what you want is possible or not. The ChartView is very flexible in a lot of ways because you have access to the templates that render points and line styles.

Ultimately for Cartesian plotted data, you need to have an X and a Y value, but the series don't have to share the same axes. You can have the oscillator on it's own horizontal and vertical system on top of the other values. Please visit the Multiple Axes documentation for more information.


Further Assistance

In order for us to help, we'll need a little more information from you. Let me walk you through the process:

 First, prepare the information we need to help you:

- Appearance: If you have images of similar charts, or mock-up designs, this will help us understand what the visual appearance would be
- Data: We also need to understand what the data is like, prepare 2 or 3 example data points. Is it something that can be plotted on a Cartesian grid or radial, etc.
- Scenario Details: If the screenshots/mock-ups are not enough to explain the chart's behavior, please also include a summary of how the chart is expected to behave.

Next, open a Support Ticket to work directly with the UI for WPF engineers.

1. Go to the Get Support page
2. Select UI for WPF and then select ChartView
3. Attach the screenshots/mock-ups, enter the details and submit the ticket

I need to circle back to the licensing issue because you'll need to fix that before opening the ticket. You've never downloaded UI for WPF, so I'm curious as to how you're using it. If your company has the license, you'll be able to open a ticket after they've assigned you as the Licensed User.

If you're just evaluating UI for WPF to see if it can meet your needs, you can start a trial (just download UI for WPF to start the trial). You can open support tickets during your trial period!

As a last resort, you can start a new forum thread under the ChartView forums, but I highly recommend that you take the Support Ticket route. We do our best to answer forum threads, but this is limited by available resources and make take up to a few days. Even then, special or advanced custom scenarios may be referred to the Support system or Professional Services and you'd have lost some time.

I hope this information is helpful.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
Alex
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Alex
Top achievements
Rank 1
Kostya
Top achievements
Rank 1
Share this question
or