Indicator Libraries
Author: SBondorowicz
Creation Date: 8/5/2009 9:59 AM
profile picture

SBondorowicz

#1
I am beginning to develop my own indicator library using c# in Visual Studio 2008. Everything is fine with the couple I have developed to show on the price pane. My latest, Schaff's Trend Cycle, I want to display in it's own pane but I can find no obvious way of doing this. I have looked at the code for the community indicators and I am still stumped. The code builds OK, and the version I developed in the Wealthscript editor works fine, but when I try to drag and drop the new indicator on a chart after selecting the parameters I want nothing happens. I must have missed something obvious and would appreciate any tips to set me off in the right direction.
profile picture

Eugene

#2
To specify a target pane for an indicator, override the TargetPane property. You could find many examples of that in Community.Indicators and TASCIndicators alike. Sorry for the lack of API documentation.
CODE:
Please log in to see this code.
profile picture

SBondorowicz

#3
Thanks, I had spotted the override of the targetpane. Turns out it was a strange problem. One of my parameters was a double which I had mistakenly declared as an int in one place. This obviously caused the indicator to fail but generate no errors. It's working fine now.

Any chance a programmers API will be released? I feel I shouldn't innundate you with questions but the lack of documentation is fairly limiting. By the way is it possible to debug indicators via Visual Studio, I attached to the running WealthLab process but none of my breakpoints was triggered?
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).