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 bc24fl, 08-30-2019, 01:58 PM
        3 responses
        253 views
        0 likes
        Last Post PaulMohn  
        Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
        6 responses
        26 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by PaulMohn, Today, 02:06 AM
        1 response
        3 views
        0 likes
        Last Post PaulMohn  
        Started by Mindset, Today, 01:27 AM
        0 responses
        5 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by EB Worx, 03-07-2023, 05:05 AM
        4 responses
        99 views
        1 like
        Last Post cls71
        by cls71
         
        Working...
        X