Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to place a Label closer to top of chart

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

    How to place a Label closer to top of chart

    DrawTextFixed is exactly what I'm looking for other than the fact that I need it to plot closer to the top of the price area (Yes, over the area where an indicator label would appear)

    Any help would be appreciated.
    Thank you in advance...

    #2
    Randwulf,

    Thank you for your post.

    Do you mean in place of the Label of the indicator?

    Comment


      #3
      Patrick,

      Thx for the reply.
      No, I'm not looking to replace the indicator label.
      I like the flexability of DrawTextFixed, where I can change the font parameters and have more than one line of text but, selecting the Top Left position is plotted quite away from the top.
      I would like a way to get it closer...

      Comment


        #4
        Hello,

        Thank you for the reply.

        Unfortunately there would be no way to move the Fixed text as it is in a Fixed position of the screen. To control specifically where text is placed in contrast to the actual charts panel or bounds, you would need to utilize the Plot override to draw Custom text at a specified X and Y coordinate.

        Otherwise, only DrawText could be positioned at a location on the screen but would be bound to the charts Bars so as the bars move so would your text unless you update it to a new position.

        For a sample of the Plot override, I would suggest reviewing the CustomPlotSample indicator that comes with the platform.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        53 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        33 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        5 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        19 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        6 views
        0 likes
        Last Post cre8able  
        Working...
        X