Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to draw text "extremely right"?

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

    How to draw text "extremely right"?

    My indicator draws a red line with a text using Draw.Text(), see the attached myIndicator.jpg.

    The problem is I need the text extremely right align to the chart border, just like the risk-reward drawing object does when it's text alignment option is set to "extremely right", see the attached riskReward.jpg. And even I move bars to left or right, the risk-reward text is just align to the chart border, it won't follow the moving.

    So, is there any way to realize that text effect of risk-reward?
    Attached Files

    #2
    Hello jjhou,

    Thank you for your post.

    This would require custom rendering in order to have the test on the far right border at all times. Please refer to the following link for information on custom rendering: http://ninjatrader.com/support/helpG...s/onrender.htm

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello jjhou,

      Thank you for your post.

      This would require custom rendering in order to have the test on the far right border at all times. Please refer to the following link for information on custom rendering: http://ninjatrader.com/support/helpG...s/onrender.htm
      OK, I finally worked it out after reading risk-reward drawing tool's source code, that's not little research work even for an experienced C# programmer... I suggest NT8 can add "extreme left" and "extreme right" alignment parameter for Draw.Text(). It's very common requirement when drawing text, I think the OnRender solution is really difficult for most people.

      Comment


        #4
        Hello jjhou,

        Thank you for your suggestion.

        I will forward to development.

        Comment


          #5
          Hello Jihou,

          Your suggestion has been given the id SFT-1673.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Jon17, Today, 04:33 PM
          0 responses
          1 view
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          4 views
          0 likes
          Last Post Javierw.ok  
          Started by timmbbo, Today, 08:59 AM
          2 responses
          10 views
          0 likes
          Last Post bltdavid  
          Started by alifarahani, Today, 09:40 AM
          6 responses
          41 views
          0 likes
          Last Post alifarahani  
          Started by Waxavi, Today, 02:10 AM
          1 response
          20 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Working...
          X