Drawing cirlces using x,y coordinates
Author: redliontrader
Creation Date: 9/30/2008 10:14 AM
profile picture

redliontrader

#1
I want to implement a traffic light in the upper right hand corner of my streaming chart. I can not get my mind around the cosmetic chart functions. Some are bar,price based and some are x,y co-ordinate based. I would like to use x,y co-ords but the circle function does not support this.

If i go price,bar how do I calculate the top (price) of the screen?

thanks
profile picture

Cone

#2
Instead of drawing your traffic lights yourself, it would be much more efficient and easy to get images of traffic lights and then use DrawImage.
profile picture

Eugene

#3
QUOTE:
I would like to use x,y co-ords but the circle function does not support this.

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

Cone

#4
DrawImage is still the right way to go here, but fwiw, expanding on Eugene's idea -

CODE:
Please log in to see this code.
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).