Announcement

Collapse
No announcement yet.

Regression Trend Channel

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

  • Regression Trend Channel

    Alex
    Any chance of doing this study?

    edit: You may want to start a new thread?

    Name : Auto draw a Regression Trend Channel on a daily chart.
    Input from user:
    (1) Just the number of days to use.
    Example = 50 days

    The esf would do the following calculations:
    (1) Find highest close in last 50 days
    (2) Find lowest close in last 50 days.
    (3) Draw Regression Trend Channel using (1) and (2) above.
    (4) Use 2 std dev
    (5) Continue the line into the future.
    (6) Print today's top of channel in x-axis
    (7) Print today's bottom of channel in x-axis

    Planning use:
    One could look at the 20 stocks making up the SMH Holder
    and see how many have broken out of the down channels.

    Thanks in advance
    Larry Dudash
    Larry Dudash
    HAL at
    http://share.esignal.com/groupconten...r=&groupid=549

  • #2
    Larry
    Not sure when but I will look into it.
    Alex

    Comment


    • #3
      Regression Trend Channel

      Alex
      OK
      Take your time
      Larry Dudash
      Larry Dudash
      HAL at
      http://share.esignal.com/groupconten...r=&groupid=549

      Comment


      • #4
        Regression Trend Channel

        Where can I find code for this
        "LinearRegressionStudy" so I can modify it ?
        var study = new LinearRegressionStudy("Close", 50, 1.0);









        Originally posted by Alexis C. Montenegro
        Larry
        Not sure when but I will look into it.
        Alex
        Larry Dudash
        HAL at
        http://share.esignal.com/groupconten...r=&groupid=549

        Comment


        • #5
          Larry
          You have the efs in the Builtin folder of Formulas
          Alex

          Comment


          • #6
            Linear Regression channel

            Alex
            Need to get inside
            LinearRegressionStudy("Close,50,1.0)
            So I can change it
            Larry

            .................................................. ...........................................
            var study = new LinearRegressionStudy("Close", 50, 1.0);

            function preMain() {
            setPriceStudy(true);

            setDefaultBarFgColor(Color.blue, 0); // upper
            setDefaultBarFgColor(Color.red, 1); // basis
            setDefaultBarFgColor(Color.blue, 2); // lower
            }

            function main() {
            var vUpper = study.getValue(LinearRegressionStudy.UPPER);
            var vBasis = study.getValue(LinearRegressionStudy.BASIS);
            var vLower = study.getValue(LinearRegressionStudy.LOWER);

            return new Array(vUpper, vBasis, vLower);
            }


            Originally posted by Alexis C. Montenegro
            Larry
            You have the efs in the Builtin folder of Formulas
            Alex
            Larry Dudash
            HAL at
            http://share.esignal.com/groupconten...r=&groupid=549

            Comment


            • #7
              Larry
              Click here and download LinReg.efs.
              Before modifying that efs read the notes that are included at the top of the script.
              Alex

              Comment


              • #8
                Need to get inside in order to change
                LinearRegressionStudy(Source,length,StdDev)
                ....length...
                To
                LinearRegressionStudy(Source,A,B,StdDev)
                ....A,B.....



                See chart below




                Originally posted by Alexis C. Montenegro
                Larry
                Click here and download LinReg.efs.
                Before modifying that efs read the notes that are included at the top of the script.
                Alex
                Larry Dudash
                HAL at
                http://share.esignal.com/groupconten...r=&groupid=549

                Comment


                • #9
                  Larry
                  With the builtin Linear Regression study you cannot specify the start/end points. To do this you would need to create a Linear Regression study from the ground up
                  Alex

                  Comment


                  • #10
                    Alex
                    (1) Esignal does the exact length with mouse clicks.
                    (2) Is there any one I could email at Esignal who would
                    know where I could get the code for Esignal's Linear Regression
                    Channel ?



                    Originally posted by Alexis C. Montenegro
                    Larry
                    With the builtin Linear Regression study you cannot specify the start/end points. To do this you would need to create a Linear Regression study from the ground up
                    Alex
                    Larry Dudash
                    HAL at
                    http://share.esignal.com/groupconten...r=&groupid=549

                    Comment


                    • #11
                      Larry
                      I am aware of this but that is a drawing tool not an efs that looks for two specific points which is what I believe you were asking also in an earlier post.
                      With regards to your second question try posting a message addressed to eSignal
                      Alex

                      Comment


                      • #12
                        Hello Larry,

                        We cannot send you the base code for the built-in studies or the drawing tools. It wouldn't be useful to you anyway because you wouldn't be able to modify the software. You could theoretically create and EFS to reproduce what the drawing tool does using the EFS mouse functions. You could then add some user parameters to allow for the manual change of points A and B, which would be bar index values. You can find an EFS with linear regression calculations here.
                        Jason K.
                        Project Manager
                        eSignal - an Interactive Data company

                        EFS KnowledgeBase
                        JavaScript for EFS Video Series
                        EFS Beginner Tutorial Series
                        EFS Glossary
                        Custom EFS Development Policy

                        New User Orientation

                        Comment


                        • #13
                          Thank You
                          I'll down load efs and see if I can modify it
                          Larry Dudash


                          Originally posted by JasonK
                          Hello Larry,

                          We cannot send you the base code for the built-in studies or the drawing tools. It wouldn't be useful to you anyway because you wouldn't be able to modify the software. You could theoretically create and EFS to reproduce what the drawing tool does using the EFS mouse functions. You could then add some user parameters to allow for the manual change of points A and B, which would be bar index values. You can find an EFS with linear regression calculations here.
                          Larry Dudash
                          HAL at
                          http://share.esignal.com/groupconten...r=&groupid=549

                          Comment


                          • #14
                            REGRESSION TREND CHANNEL

                            Jason
                            (1) I have new efs with new way of auto drawing Linear Regression Channels.
                            (2) Would like to post chart using share files, so I can show
                            chart of new regression channel along with new efs
                            (3) BUT ! I am having problem getting logged on to file share.
                            (4) Please lead me to instructions.
                            Thanks
                            Larry Dudash


                            Originally posted by JasonK
                            Hello Larry,

                            We cannot send you the base code for the built-in studies or the drawing tools. It wouldn't be useful to you anyway because you wouldn't be able to modify the software. You could theoretically create and EFS to reproduce what the drawing tool does using the EFS mouse functions. You could then add some user parameters to allow for the manual change of points A and B, which would be bar index values. You can find an EFS with linear regression calculations here.
                            Attached Files
                            Larry Dudash
                            HAL at
                            http://share.esignal.com/groupconten...r=&groupid=549

                            Comment


                            • #15
                              Larry
                              You should be able to upload to File Sharing both the image and the efs files directly from the eSignal program.
                              Click here for a brief guide
                              Alex

                              Comment

                              Working...
                              X