Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modifying drawn lines from NinjaScript

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

    Modifying drawn lines from NinjaScript

    Hi guys,

    Can you give answers to the following...

    1. Manually drawn lines/objects can/cannot be modified within NinjaScript.

    2. If a line/object is drawn from within a Ninjascript Indicator, when the Indicator is removed from the chart, the line/object is also removed from the chart - is there anyway around this...

    Many Thanks.

    #2
    Correct Zzoom, both outcomes would be expected here. For 2 what could be controlled is if the drawings could be manually removed with the indicator running or not.

    Comment


      #3
      Okay....

      What I am trying to do is maintain a set of shared drawn lines within different installations of NT.

      From what you are saying, there is no way around having a "maintain objects" NinjaScript running on all charts at all times, otherwise I will lose the lines.

      I was hoping to avoid having the script running on all charts all the time, is there any way around this?

      Is there any way objects drawn within Ninjascript can be left on the chart if the indicator/strategy used to draw the objects is removed from the chart?

      Comment


        #4
        You are correct in understanding here, would not really be aware of a workaround. The lines are associated with the script and could not be persisted standalone in the workspace. I don't know how much you generate from the script, but perhaps recreating the lines once calc'ed from the script via the manual drawing tools and making them global could be of help - this way the objects would be then saving in the workspaces and populated on all charts of the same symbol (you can take out any individual chart via the DataSeries property to show Global objects or not).

        Comment


          #5
          I can code around it.

          Its just that it will take more effort, and I was hoping to avoid it !

          Thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          627 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          359 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          562 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X