Announcement

Collapse
No announcement yet.

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);

      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);


          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

              ​ ​​​​​​​

              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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                569 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                330 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                548 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                548 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X