drawImageRelative()
drawImageRelative(xBar, yValue, Image, Url, Flags,[TagName]);
This function is used to draw an image on the chart. Unlike the drawImageAbsolute() function, the image will 'stick' to the x-axis position that it was originally written to. As new bars come in, the image will shift to the left along with the bars. The TagName parameter must be unique for each image object that is drawn on the chart. If, for example, you call the drawImage() functions repeatedly in your script but you always use a TagName of "1", then only one image object will appear on your chart (the last one drawn).
- xBar: Relative position where image should appear.
- yValue: y-axis value where image should appear
- Image: The system image to be drawn.
- Url: Optional. If not provided, pass null. If provided, a browser will load at the specified URL if image is clicked.
- Flags: Valid Image flags (can be ORd together).
- TagName: A unique identifier for this image object.