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

Graphic Object NOT Attached to Indicator

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

    Graphic Object NOT Attached to Indicator

    Hi,

    When drawing something from an indicator, the graphic object is attached to the indicator. If the graphic object is manually deleted from the chart this will cause to remove the indicator and delete any other graphic object created by the indicator. Refresing the indicator with F5 will cause to remove previous graphic objects from the indicator.

    Is there a way to create graphic objects from the indicator that are not attached to the indicator?

    so the user can remove them without deleting the indicator or they will persist in the chart after removing the indicator.

    Thanks
    Pac

    #2
    In Initialize set

    Code:
    AllowRemovalOfDrawObjects = true;

    Comment


      #3
      Thanks Bukkan,
      That solves part of the problem, now I can delete manually graphic objects.
      But If I delete the indicator it still will delete all graphic objects so they are still attached to the indicator.
      Is there a way to create graphic objects from an indicator and attach them to a data series?

      Comment


        #4
        pacpac, I do not believe this is currently possible, but I will have someone get back to you on Monday with confirmation of that.
        AustinNinjaTrader Customer Service

        Comment


          #5
          pacpac,

          Unfortunately indicator drawn objects will be removed when the indicator is removed. There is currently no way to remove the indicator without removing the object.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Balage0922, Today, 07:38 AM
          0 responses
          1 view
          0 likes
          Last Post Balage0922  
          Started by JoMoon2024, Today, 06:56 AM
          0 responses
          6 views
          0 likes
          Last Post JoMoon2024  
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          19 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          6 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Working...
          X