- ago
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?
1
1,386
Solved
6 Replies

Reply

Bookmark

Sort
- ago
#1
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?
0
Best Answer
- ago
#2
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.
0
- ago
#3
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?
0
- ago
#4
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.
0
Glitch8
 ( 10.65% )
- ago
#5
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.
2
- ago
#6
Thanks Glitch, that's good to know. I will have to dive into this when time permits.
0

Reply

Bookmark

Sort