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 The_Sec, Yesterday, 03:53 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by mmenigma, Yesterday, 03:25 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by kujista, Today, 05:44 AM
        0 responses
        7 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        9 views
        0 likes
        Last Post ZenCortexCLICK  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        172 responses
        2,282 views
        0 likes
        Last Post sidlercom80  
        Working...
        X