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

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 mmenigma, Today, 02:22 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frankthearm, Today, 09:08 AM
        9 responses
        35 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by NRITV, Today, 01:15 PM
        2 responses
        9 views
        0 likes
        Last Post NRITV
        by NRITV
         
        Started by maybeimnotrader, Yesterday, 05:46 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by quantismo, Yesterday, 05:13 PM
        2 responses
        21 views
        0 likes
        Last Post quantismo  
        Working...
        X