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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      48 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X