Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

control where an indictor can be placed

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

    control where an indictor can be placed

    Hi,

    How can i prevent my indicator from being placed on a chart or in a market analyzer column?

    Thanks in advance.

    #2
    Hello KhaosTrader,

    Thank you for your post.

    While there is no means to prevent it from loading on the chart you can set IsChartOnly to true to prevent the indicator loading on the Market Analyzer. For example:
    Code:
    IsChartOnly			= true;
    As indicators are intended for use on Charts and Market Analyzers what is it you need the indicator to perform? Is it processing data to output a value to be called from a strategy?

    I look forward to your response.

    Comment


      #3
      Hi, Can I detect whether or not its on a chart? if so, I can disable logic in onbarupdate, how do i tell if its on a chart or market analyzer, etc?

      Thank you in advance

      Comment


        #4
        Hello KhaosTrader,

        Thank you for your response.

        ChartControl will be null when not on a chart and it will not be null when on a chart. There is no means to determine if on a Market Analyzer by utilizing ChartControl will help to determine when not on a chart.

        ChartControl: http://ninjatrader.com/support/helpG...artcontrol.htm

        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X