Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to know if indicator is shown on chart or in separate panel

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

    how to know if indicator is shown on chart or in separate panel

    Hi,

    Is there a way to know if my indicator is shown in the price panel (chart) or in a separate window?
    I'd like to automatically show different settings (for instance oscillator or not) when I'm in a price chart.

    #2
    Hello wjadevries,

    You could use the indicators Panel property to determine which panel the indicator is currently in.

    Code:
    Print(Panel);
    If the Same as input series is selected a -1 should be seen, 0 for panel 1 or the price panel or a greater than 0 value for other panels. You would want to use a Print to identify if there are any differences from that in your specific chart use cases.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tonynt, Today, 09:39 AM
    0 responses
    12 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by ervin, Today, 09:23 AM
    0 responses
    6 views
    0 likes
    Last Post ervin
    by ervin
     
    Started by HansLenders, Today, 09:15 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by sdauteuil, Today, 08:23 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by tonynt, Today, 08:27 AM
    5 responses
    28 views
    0 likes
    Last Post NinjaTrader_Heath  
    Working...
    X