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

How to Draw objects from addon or Drawing tools?

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

    How to Draw objects from addon or Drawing tools?

    How can I Draw an object (i.e. Draw.Circle or whatever) from:
    1) an addon, which has an access to open Charts/ChartTabs
    2) from another custom Drawing tool, i.e. I created a copy of Draw.Channels, and I want to draw a circle too from that. But i can't do that because "Draw.Circle(this <----- "this" paremeter is needed, to be an NinjaScriptBase, and I am stuck trying to find any solution). so, how i could draw another element from custom drawing tool?

    #2
    Hello TazoTodua,

    Drawing tools can only be called from an indicator or a strategy which both are enabled specifically on charts.

    It is not possible to call a drawing object from an addon or from another drawing tool.

    But you can add logic to render things in a drawing tool. Maybe you want to combine the rendering for multiple shapes into one drawing tool?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thanks, but adding renderings manually is not the way. it was good if it was possible what i said. (btw, I've achieved what I said, but in a bit complex way- adding indicator on chart, then using that indicator as host from my custom DrawingTool)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      9 responses
      35 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by DayTradingDEMON, Today, 09:28 AM
      4 responses
      23 views
      0 likes
      Last Post DayTradingDEMON  
      Started by geddyisodin, Yesterday, 05:20 AM
      9 responses
      50 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by George21, Today, 10:07 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by Stanfillirenfro, Today, 07:23 AM
      9 responses
      24 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X