Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Draw Horizontal Lines (2 different colors) based on CSV or txt file

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

    #31

    Originally posted by NinjaTrader_Emily View Post
    Hello fripi,

    Thank you for your reply.

    As an alternative to rendering the labeled region in OnRender() within your script, you could consider using the Labeled Lines Drawing Tool script that is also publicly available on our NinjaTrader Ecosystem website:Per the update on 10/08/2019, NinjaScript overloads were added and can be used by calling DrawLL.<insert type of line here>(). The intelliprompt should pop up and guide you through the required arguments for the method signatures. This group of drawing tools does not include a region highlight y tool, though you could use it as a guideline to also add this type of labeled tool if you'd like and then in your script, you could DrawLL.LabeledRegionHighlightY() (for example if you add this) and only call it once since the region does not need to be updated after the indicator initially loads.
    Thank you, just replaced the Draw with DrawLL to my indicator and that works fine, now I'll try to check the code and find out how to add LabeledRegionHighlightY

    Comment


      #32
      Hi fripi, were you able to find a way to add the text labels?

      Comment


        #33
        Originally posted by martman0823 View Post
        Hi fripi, were you able to find a way to add the text labels?
        I started used the labeled lines drawing tool
        https://ninjatraderecosystem.com/use...jE3NDQ3MTMxMjg.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        333 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X