Announcement

Collapse
No announcement yet.

drawing functions in non-price study

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • drawing functions in non-price study

    Hi,

    Draw text functions work perfectly in my price study, but I cannot get text drawn (that I can see) in a non-price study. I am trying to draw text on a volume study and I am assuming that the y-axis coordinate of the draw text function would be the volume number (plus a little for spacing) and the x axis coordinate would be the relative bar number.

    Any advice? The goal is to draw some text over particular volume bars.

    Tx,

    Scott
    Scott Masters
    www.tic2tic.com
    [email protected]

  • #2
    Scott
    Try the attached efs as an example. Replace getValue("Volume") in Line 49 with your own text.
    Hope this helps
    Alex
    Attached Files

    Comment


    • #3
      Scott
      Also, if the volume bars get in the way of the text you could anchor the text to the top of the indicator pane.
      Replace Line 49 in the prior formula with the following to see the effect
      drawTextRelative(0,0,"My Text",Color.blue,null,Text.BOLD|Text.RELATIVETOTOP ,"Arial",10,"Volume");
      Alex

      Comment


      • #4
        Thank You

        Tx Alex....After looking at the example, I simply changed 'drawTextAbsolute' to 'drawTextRelative' and it works just fine. Although I do not see where that should make a difference.

        Scott
        Scott Masters
        www.tic2tic.com
        [email protected]

        Comment

        Working...
        X