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 carnitron, Today, 08:42 PM
          0 responses
          4 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Today, 07:51 PM
          0 responses
          6 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,969 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Today, 06:48 PM
          0 responses
          5 views
          0 likes
          Last Post rbeckmann05  
          Started by rhyminkevin, Today, 04:58 PM
          4 responses
          58 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Working...
          X