Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Linnear Regression Intercept crashes

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

    #16
    how come it draws the vertical line now, but not the actual indicator anymore?

    Comment


      #17
      It was simply not included in the demo code I gave you, please try adding this in your OnBarUpdate() :

      Value.Set(LinRegIntercept(14)[0]);

      Comment


        #18
        before reading the last post i added the part for the indicator itself and put it just above the condition 1 line.
        now it works--should i switch to this instead? "please try adding this in your OnBarUpdate() :

        Value.Set(LinRegIntercept(14)[0]);

        Comment


          #19
          Great it works now for you - both approaches are valid.

          Comment


            #20
            thanks for staying in there.

            Comment


              #21
              lines were getting excessive.
              i figured out how to add a true/false switch to turn them on/off

              Comment


                #22
                You're welcome - sounds good, you could also consider only drawing the last 2 signals for example.

                Comment


                  #23
                  dont know how to do that, although for purposes of scrolling back over several days i want all lines.
                  how do i? then i could add another switch i think for several lines or all lines.

                  Comment


                    #24
                    You could do this with the drawing object tag id's use, use one for the long signal and another one for the short signal, so each signal just updates the new object and does not create a new one everytime - in effect you then see only the 2 latest modified which might be enough for realtime use.

                    Comment


                      #25
                      how do i increase the line thickness or style?
                      DrawVerticalLine("My vertical line" + CurrentBar, 0, Color.Lime);

                      Comment


                        #26
                        You would need to use the overload allowing you to a width as desired then -

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        608 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        355 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        105 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        560 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        561 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X