I've created an indicator library and want to add an indicator that draws channel lines. In WL6.9 I simply used DrawLine. IN WL7 DrawLIne is part of UserStrategyBase, and I don't see it as available in my indicator code. How should I be drawing lines point to point in an indicator?
Rename
In WL6 one can't use DrawLine from an Indicator either. What's possible in V6 is to pass an instance of WealthScript (say as "obj") to a method of your class and call obj.DrawLine from that method in your Strategy code (no drag & drop). What if you adopt the same approach?
I tried to implement this but I can't seem to make it work.
If it is possible, could you provide an example for indicators please?
I would like to programmatically draw lines into the price window as a separate indicator.
If it is possible, could you provide an example for indicators please?
I would like to programmatically draw lines into the price window as a separate indicator.
QUOTE:
I would like to programmatically draw lines into the price window as a separate indicator.
Drawing lines and plotting indicators are separate subjects. You can find examples of drawing the various chart objects at your fingertips: the QuickRef is built in WL7/8, see "Chart rendering" section. Could you clarify the point of calling DrawLine from an indicator?
I would like to do something like the Trendline indicator or PeakThroughCalculator when added to a Strategy. However, I would like to do that as a standalone indicator with an input variable, if that makes sense.
Well the most control is by creating a brand new Series Plot Style extension. It’s documented in our API Reference, so with that you could literally draw anything on the chart surface.
Thanks Glitch, that's good to know. I will have to dive into this when time permits.
Your Response
Post
Edit Post
Login is required