Announcement

Collapse
No announcement yet.

drawTextAbsolute

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

  • drawTextAbsolute

    Happy Thanksgiving Day to all
    What parameters must I uses to fix text at the bottom of the price pane (but above the indicator pane, of course).
    I am asking about the correct use of:
    drawTextAbsolute(xBar, yValue, Text, [FGColor], [BGColor], [Flags], [FontName], [FontSize], [TagName], [cx], [cy])

    Thanks
    George

  • #2
    George
    In the Flags use Text.RELATIVETOBOTTOM
    Alex

    Comment


    • #3
      Alex - I must be doing something wrong: This is what I have:
      drawTextAbsolute(01,vEMA,logString,vColor,(Color.R GB(0xF0, 0xF0, 0xF0)),
      Text.RELATIVETOLEFT |Text.BOLD |Text.RELATIVETOBOTTOM,"Courier",10,"1" );

      In the absence of getting it to work, I print it at the same level as the EMA line. Adding BOTTOM (as suggested), etc, causes it to disappear completely!

      Thks
      George

      Comment


      • #4
        Hello George,

        When you use Text.RELATIVETOLEFT, the first parameter, 01, is going to be the number of pixels from the left. When using Text.RELATIVETOBOTTOM, the second parameter, vEMA in your case, becomes the number of pixels from the bottom. You might want to use a fixed value like 15 instead of vEMA. Try the following:

        drawTextAbsolute(01,15,logString,vColor,Color.RGB( 0xF0, 0xF0, 0xF0), Text.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTO M,"Courier",10,"1");
        Jason K.
        Project Manager
        eSignal - an Interactive Data company

        EFS KnowledgeBase
        JavaScript for EFS Video Series
        EFS Beginner Tutorial Series
        EFS Glossary
        Custom EFS Development Policy

        New User Orientation

        Comment


        • #5
          Thanks Jason - the relationship betyween a the first 2 parms, and the flags was never clear to me!.
          George

          Comment

          Working...
          X