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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X