Developing a custom ChartStyle
Author: boreland
Creation Date: 11/3/2015 12:46 PM
profile picture

boreland

#1
This document makes reference to building your own chart styles:

https://www.fidelity.com/bin-public/060_www_fidelity_com/documents/WLP_Chart_Styles.pdf

But I get a compiler error when to added this:

CODE:
Please log in to see this code.

Do I need a reference to Fidelity.Components?

If so where do I get this from?
profile picture

Eugene

#2
Have you noticed what exactly "a compiler error" is telling?

You can save some time by playing with the fully functional Community ChartStyles library (make sure you're logged in to the Wiki to see attachments):

* Home - Community ChartStyles > Download "Community ChartStyles" project source

(However, if you decide to use this as the basis for your own project you should rename the assembly so as not to conflict with the extension of the same name.)
profile picture

boreland

#3
no suitable method found to override

I must be missing the assembly reference to Fidelity.Components?
profile picture

Eugene

#4
No, it's not necessary for RenderBars as you imply. But it is required if you implement ICustomSettings (ReadSettings, WriteSettings).
profile picture

boreland

#5
Eugene:

Can I please download this component.

profile picture

Eugene

#6
It's in Wealth-Lab's installation folder (Fidelity.Components.dll).
profile picture

boreland

#7
I only see this one: WealthLab.Components.Community.dll
profile picture

boreland

#8
Ok I see it. So why the compiler error when I add this?

CODE:
Please log in to see this code.
profile picture

Eugene

#9
Sounds like you overlooked to reference WealthLab.dll.
profile picture

boreland

#10
Here are my current references:

CODE:
Please log in to see this code.
profile picture

Eugene

#11
What are all those indicator libraries and the "pushed indicator" statement are doing there? Don't tell me that you're trying to build the library in a Wealth-Lab Strategy. ;) As per the API manual (page 1), you need Visual Studio.

Also let me again suggest that you revisit my post #2 and proceed as suggested there to save you learning curve which seems somewhat steep.
profile picture

boreland

#12
Eugene:

I was ;(

OK I've looked at the source code. Does RenderBars() get called every tick update or on bar close?

Is there a full list of Fidelity PDFs;
profile picture

Eugene

#13
QUOTE:
Does RenderBars() get called every tick update or on bar close?

Not only on every tick update (to update the partial bar). Think literally every time when the chart requires a redraw e.g. when you resize it or mouse over it etc.

QUOTE:
Is there a full list of Fidelity PDFs;

Wealth-Lab Version 6 (.NET) Development Guide
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).