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 kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      15 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      59 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      42 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      47 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      38 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X