It demonstrates:
Converting drawing x coordinates to time (getTimeByX)
Converting drawing y coordinates to price (getPriceByY and using the max and min values passed by the plot method in the indicator)
Converting time to drawing x coordinates (ChartControl.GetXByTime)
Converting price to drawing y coordinates (ChartControl.GetYByValue)
To use, draw a fibonacci circle. Change the tag field to "fib" (without quotes). Add the indicator.
The indicator should add tangent lines to the fib circle, the position depending on the number in the 'position' field. The lines will update when the fib circle moves, is resized, scale changes, etc...
Position Field:
1 = second quadrant
2 = first quadrant
3 = third quadrant
4 = fourth quadrant.
5 = third and fourth
6 = first and second
default = 6
The indicator gets screwed up if you check 'divide time and price separately', so dont do that lol.
You can also choose extended lines via the parameter Extended.The default is to use extended lines.
Enjoy!
Image of indicator attached...
edit:updated to fix an error with serializable color arg lol its good now
edit: see final post for downloadable version, i deleted all the old zip files to get rid of confusion! The indicator is very different now! Also, you might as not read the first couple of posts, just read the last two and check out the indicator!
Comment