Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent Draw Objects on Certain Charts when using IsGlobal

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

    Prevent Draw Objects on Certain Charts when using IsGlobal

    Good Morning,
    I'm using the following snippet for a ray which has the bool IsGlobal property set to true:

    Code:
    Draw.Ray(this,"ray1",1,CurrentOpen+5*TickSize,-5,CurrentOpen+5*TickSize,true,"RayWhite");
                        ​
    This works fine on all my open charts (qty 3). Is there a way to "prevent" the object from appearing on a certain timeframe chart (say 15 minute)?

    Thanks,
    kz

    #2
    Hello zeller4,

    Thank you for your inquiry.

    isGlobal set to true will cause the draw object to appear globally across all charts which match the instrument. There is no way to prevent this setting from appearing on a certain time frame chart in code.

    You can however uncheck the 'Show global draw objects' option in the Data Series window for the 15 minute chart to turn them off for that specific chart.

    Edit Data Series Parameters - https://ninjatrader.com/support/help...riesParameters

    Please let us know if you have any other questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    597 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    555 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X