Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Editing built in Indicator

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

    Editing built in Indicator

    I created a copy of the "Constant Lines" Indicator simply trying to add more inputs. I'm not sure how to export it for review. I get some errors while compiling see screenshot. It seems simply duplicating an adding more lines at each part in the code because of some built in resource that doesn't exist?

    #2
    Hello synthhokie,

    Thank you for your post.

    I am not seeing the screenshot in your post, can you please post the screenshot of the compile errors and the script, or at least the lines of code referenced in the error?

    I look forward to assisting.

    Comment


      #3
      See below.

      Comment


        #4
        Hello synthhokie,

        Unfortunately, I'm not seeing any attachment. Click on the 'Upload attachments' button located under the comment box to upload an attachment.
        Attached Files

        Comment


          #5
          Yeah I did that. I can see my screenshots in both the above posts as I type this. I'll try once more.
          Attached Files

          Comment


            #6
            Hello,

            Thank you for the screenshot.

            The lines of code being referenced in the compile errors are not visible in the screenshot. The compile errors start at line 67 but your screenshot cuts off at line 66.

            Can you please post the script or the lines of code being referenced in the errors?

            Comment


              #7
              See if that works
              Attached Files

              Comment


                #8
                Hello synthhokie,

                Thank you for your post.

                Please see the syntax for AddPlot():

                AddPlot(Stroke stroke, PlotStyle plotStyle, string name)



                The last parameter should a string giving your plot a unique name. For example, "MyPlot". Try renaming the plots to give them their own names like "MyPlot1" through "MyPlot13".

                Code:
                AddPlot(new Stroke(Brushes.Blue), PlotStyle.HLine, "MyPlot1");

                Comment


                  #9
                  Perfect thank you!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  672 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  379 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  111 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  575 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  582 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X