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