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

Forum Indicator Adjustment Help.

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

    Forum Indicator Adjustment Help.

    I want change Plot from Line to HLine. I made changes and compiled, but doesn't change chart image. Want HLine extended to right side price column. I removed indicator and re added to chart, but still no change. See Attached Notes & Indicator.
    Thanks.
    Attached Files
    Last edited by santafe; 05-29-2019, 09:11 AM.

    #2
    I believe if you've compiled changes to the code you'll have to remove and re-add the indicator to the charts so it'll call the Initialize method. Otherwise, the old version of the code will be using the old settings from when it was last added to the chart.

    It's possible there could be an old template file that is preventing your changes, but good luck!

    Comment


      #3
      Hello santafe,

      Thanks for your post.

      The plots in this indicator are overridden in the section: public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)

      In addition to the changes you made, in the override void Plot() method, add the line: base.Plot(graphics, bounds, min, max);
      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Paul,
        Can you send a screenshot of where I should add your suggestion.
        Thanks.

        Comment


          #5
          Hello santafe,

          Thanks for your reply.

          Looks like this:

          public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
          {
          if (Bars == null || ChartControl == null || this.LastBarIndexPainted < BarsRequired)
          return;

          base.Plot(graphics, bounds, min, max);


          Paul H.NinjaTrader Customer Service

          Comment


            #6
            Paul, It didn't work. I inserted your suggestion. See red outline in attachment. After compile & re add to chart, looks the same as before. HLine doesn't extend to right side price level.
            Attached Files

            Comment


              #7
              Hello santafe,

              Thanks for your reply.

              You have added in the correct location.

              I noticed that the indicator will not display certain lines if there is not enough data loaded and this would also be noted on the chart at the bottom by the indicator itself.

              Please make sure you have at least 30 days of data in the data series.

              ​​​​​​​I've attached an example of what I see which shows the ADR high/low lines extended across the chart. I have 30 days of data loaded in the data series

              ​ ​​​​​​​
              Paul H.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by santafe View Post
                Paul, It didn't work. I inserted your suggestion. Seebrazzers pornhub xhamster red outline in attachment. After compile & re add to chart, looks the same as before. HLine doesn't extend to right side price level.
                I believe if you've compiled changes to the code you'll have to remove and re-add the indicator to the charts so it'll call the Initialize method. Otherwise, the old version of the code will be using the old settings from when it was last added to the chart.
                Last edited by mopakarim4500; 07-20-2019, 09:42 AM.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by WHICKED, Today, 12:45 PM
                2 responses
                16 views
                0 likes
                Last Post WHICKED
                by WHICKED
                 
                Started by GussJ, 03-04-2020, 03:11 PM
                15 responses
                3,271 views
                0 likes
                Last Post xiinteractive  
                Started by Tim-c, Today, 02:10 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by Taddypole, Today, 02:47 PM
                0 responses
                2 views
                0 likes
                Last Post Taddypole  
                Started by chbruno, 04-24-2024, 04:10 PM
                4 responses
                51 views
                0 likes
                Last Post chbruno
                by chbruno
                 
                Working...
                X