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 fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,403 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          94 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          6 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          158 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          8 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X