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

Draw Object Interference?

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

    Draw Object Interference?

    If two draw objects are firing at the same time, does the last object in the sequence override the first, and if so, is there a way around this?

    Case Example:

    Draw.TextFixed(this, alpha1, "Testing Alpha 1 ", GetTextPosition(Location), UpBrush, Font, Brushes.Transparent, Brushes.Transparent, 0);

    Draw.VerticalLine(this, "line"+CurrentBar, 0, UpBrush, DashStyleHelper.Dot, 5);


    ​Objective is for both of these to plot simultaneously on the chart...

    #2
    Hello johnMoss,

    Those are two different kinds of objects so no there would be no overriding here. The only time a drawing object replaces another is if you draw the same kind of object again with the same tag, the last drawn object would be what you see in the chart.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Copy that, thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sugalt, 04-30-2024, 04:02 AM
      2 responses
      13 views
      0 likes
      Last Post sugalt
      by sugalt
       
      Started by merc410, Today, 03:41 AM
      0 responses
      6 views
      0 likes
      Last Post merc410
      by merc410
       
      Started by Ndakotan1313, 03-14-2024, 05:02 PM
      2 responses
      60 views
      0 likes
      Last Post blaise_code  
      Started by claxxical, 05-30-2017, 12:30 PM
      37 responses
      4,458 views
      0 likes
      Last Post Padan
      by Padan
       
      Started by SugarDefwebsite, Today, 02:18 AM
      0 responses
      4 views
      0 likes
      Last Post SugarDefwebsite  
      Working...
      X