Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Global Drawing Objects" indicator

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

    "Global Drawing Objects" indicator

    Hello, is there a way to code for a "Global Drawing Object" such that the object would appear on all charts for the same instrument. Specifically, I am looking to create an indicator where I can enter a certain price level for a given instrument, and it print a horizontal line for that price level on all displayed charts for that instrument.

    #2
    Hello pman777,
    Unfortunately the Global draw objects cannot be accessed via NinjaScript. It can be accessed manually for user drawn draw objects only.

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Could use the same functionality as well. Currently thinking of a workaround of having a text file (or excel file) which contains the price levels (can be multiple). Then code an indicator that reads the file and draws the horizontal lines. This way you can add the indicator to a template and have it automatically on all your charts.

      Question to NT, would Excel or Textfile be better or are there any better ways to store the price levels (with additional information like label, color, style etc.)

      Thomas

      Comment


        #4
        Thinking of it again, it might be better to store this in an XML file when used in various chart windows. The problem with Excel is that (I believe) it would need to start a new instance of excel everything the indicator is loaded in a chart.

        Comment


          #5
          Hello hometradingblog,
          NinjaTrader saves the the settings in xml files only. The Global draw object settings files can be found in the folder <My Documents>\NinjaTrader 7\templates\GlobalChartObject\
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          569 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X