Circle isn't being drawn
Author: cmm2391
Creation Date: 7/3/2019 2:27 AM
profile picture

cmm2391

#1
Hi,

I'm trying to draw circles on a chart to no avail. The circles could be drawn for any scenario, like price of this daily bar greater than the price of the last daily bar. I have the line:

CODE:
Please log in to see this code.


The above means to me that I want to draw a circle in the price pane, radius 200 (I exaggerated the values to see if that would change anything), on the current bar, don't know what 'double value' represents, with an outline and fill of blue, solid line, width of 100, and behind bars as true.

I printed a debug message every time my specific conditional was hit and saw those messages in the log, so I know the conditional is getting hit, but the circles aren't being drawn either way.

Any help is appreciated.
profile picture

Eugene

#2
Hi,

QUOTE:
don't know what 'double value' represents,


Let's see what the double value is according to the QuickRef summary:

QUOTE:
The first method draws a circle with a radius specified in pixels, at the coordinates specified by the bar (X) and value (Y) parameters.

The second method draws a circle whose radius is a line specified by two points, bar1/value1 and bar2/value2. In this way, your circles can be bound to actual bars/prices on the chart.


From that description we can gather that the mystery parameter is the price. So if you don't know at what price you'd want to draw the circle, why expect it to be drawn correctly? ;)
profile picture

cmm2391

#3
Hey Eugene,

Thanks for the reply.

Are you referring to the doc here? http://personal.fidelity.com/products/atp/content/wsFuncRef_US.pdf

I looked all over for doc mentioning drawing circles but was hard-pressed to find any. I found the doc above, but the argument list seemed to be out of order so I skimmed over DrawCircle and DrawCircle2 but didn't get any ideas. I guess I just needed to sleep on it though as I assumed this morning that float value depicted the price at which to draw the circle :p

Thank you for the help!
profile picture

Eugene

#4
You're welcome. The PDF you linked applies to a legacy WLP version 3/4 (decommissioned a decade ago). So I'm referring to either QuickRef:

1. In the first place the one built straight into WLP (F11 key globally or F1 key in Editor)
2. PDF version created by our team: Wiki FAQ > How to print the PDF manual?
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).