Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using "Draw" in multi series

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

    Using "Draw" in multi series

    Anyone have examples of using Draw functionality without using "this" ?
    Every example I see uses the same descriptions , for example
    Draw.HorizontalLine(this, tagNameHigh, myCurrentHigh , Brushes.White);

    Where "this" is the current NinjaScriptBase owner.
    How can I use this to draw to another owner other than "this"?
    Just pointing me to a code snippet would suffice.
    thankx

    #2
    Hello MisterTee,

    Welcome to the NinjaTrader forums!

    'this' refers to the indicator or strategy instance the Draw method is being called from and becomes the owner of the drawn object.

    What other owner are you wanting to assign the drawn object to if not the indicator that drew it?

    What is your goal?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      All sorted now, Thank you!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X