Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Text overloads

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

    #16
    Originally posted by eDanny View Post
    If you set the offset to High[0] + 2*Ticksize and the pixel offset to 10 your text would be 2 ticks above the high plus an additional 10 pixels. If the pixel offset was -10 your text would be + 2 ticks - 10 pixels.
    Is there a way to create prperties for the pixels along with the offset i already have?

    Comment


      #17
      BTW,the webdings symbols are also not precise for the High + offset and Low - offset,the symbol for the High is almost always below the High,not above.Second,when you increase the size of the symbol and show the different y-value then the price value when it supposed to be placed.

      Comment


        #18
        You are already using the pixel offset, if the code from post #1 is yours (Low[0] - offset, 5,). This is from the Low[0], minus your offset variable, plus 5 pixels (5 pixels closer to the low). To make up for different size symbols you can add a user variable to also change the pixel offset or check for the selected font size in OnStartUp() method and change the pixel offset variable accordingly using if/then.
        eDanny
        NinjaTrader Ecosystem Vendor - Integrity Traders

        Comment


          #19
          Originally posted by eDanny View Post
          You are already using the pixel offset, if the code from post #1 is yours (Low[0] - offset, 5,). This is from the Low[0], minus your offset variable, plus 5 pixels (5 pixels closer to the low). To make up for different size symbols you can add a user variable to also change the pixel offset or check for the selected font size in OnStartUp() method and change the pixel offset variable accordingly using if/then.
          Can you please give an example?Should the pixel offset be negative for the Low?

          Comment


            #20
            A negative pixel offset always adjusts the text lower and a positive offset adjusts it higher.
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            48 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            126 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            66 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X