• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Indicator on Panel

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

    Draw Indicator on Panel

    Hello,

    I have created an indicator and wish to have its default value for Panel be "Same as Input Series". I have set Overlay = true; within the Initialize event of the indicator, yet the default value in the window appears as "New Panel" as shown in the attached screenshot..

    Am I missing some setting that would render the default value of Panel to be "Same as input series"?

    I do not want to create a template or save default settings for this indicator as it will be used by others. I want to ensure that it loads on Panel 1 for all users.

    Thank you.
    Attached Files

    #2
    Hello,

    Thank you for the question.

    Have you at any point saved a template for this indicator before making this change? This could be a template causing this, can you check the folder: Documents\NinjaTrader 7\templates\Indicator to see if this item is in the folder?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      I had saved a template during the time I was experimenting with settings. Since then, I have deleted ALL templates in ALL template folders. I figured this might be the source of my problem, but deleting the templates did not resolve the issue.

      Comment


        #4
        Hello,

        It seems if there are no templates the change with the code has not been loaded. Just to make sure, the code was recompiled after the change correct? Also have you restarted NinjaTrader since doing this?

        Also if you create a new chart and try the indicator is this the same?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          I have complied and restarted NT since deleting the templates.

          I open a new chart, right-click to select Indicators. I choose my new indicator and can immediately see that the default setting for Panel is "New Panel".

          If I change it manually, it updates the chart. I just wonder why I am unable to make "Same as Input Series" be the default value.

          I have also tried forcing the value in my code. The indicator name is ibVolumeLadder and I have added the line: ibVolumeLadder.Panel = 1;. This too has failed to place the indicator on the main series.

          Thank you.

          Comment


            #6
            Hello,

            The Overlay = true should be the only item that is needed to control this,

            Have you tried creating a blank indicator and using overlay = true; to see if the new indicator is listed and if this works?

            Otherwise you could post the indicator and I could import and test it to see if I receive the same result, this would likely help find the problem.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              What is the best way for me to send you the indicator?

              Comment


                #8
                Hello,

                You can export the indicator and either upload it with your next post to this thread, or you can email me at platform support @ ninjatrader.com as well. If you email it in please include the link to this post.

                Please see this page for export instructions: http://ninjatrader.com/support/helpG...nt7/export.htm specically the: Exporting NinjaScript Indicators or Strategies as Source Files

                I will try the script to see if I get the same result, if not we can determine why on your end this is not working.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by FMtrader, 03-15-2019, 02:30 AM
                6 responses
                31 views
                0 likes
                Last Post James108  
                Started by timko, Today, 08:18 AM
                0 responses
                1 view
                0 likes
                Last Post timko
                by timko
                 
                Started by victorsmith, Today, 06:00 AM
                0 responses
                4 views
                0 likes
                Last Post victorsmith  
                Started by sohailashraf, Yesterday, 10:18 PM
                0 responses
                6 views
                0 likes
                Last Post sohailashraf  
                Started by jjnc2006, Yesterday, 07:36 PM
                0 responses
                16 views
                0 likes
                Last Post jjnc2006  
                Working...
                X