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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X