Announcement

Collapse
No announcement yet.

LSMA on CCI

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

  • LSMA on CCI

    I am looking for an efs plotting a LSMA on a CCI.

    Any ideas?

    RSy

  • #2
    RSy
    One way of doing it is to copy the contents of the builtinCCI.efs into the LinReg.efs that you should have in the LinReg folder.
    Then in the LinReg script instead of having the Linear Regression use the close() simply use the vCCI.getValue(CCIStudy.CCI).
    Alex

    Comment


    • #3
      A little bit too hard for me, sorry.
      I have attached the efs for LSMA.
      Would you help me getting a LSMA of a CCI, please?

      RSy
      Attached Files

      Comment


      • #4
        RSy
        The attached efs should do what you asked.
        I did not use the woodies LSMA but the LinReg.efs (available in the LinReg folder) which returns the same values.
        All parameters for the CCI and Length of the Linear Regression can be modified through Edit Studies
        Alex

        Attached Files

        Comment


        • #5
          I'm sorry.... but it doesn't look like a LSMA on a CCI.
          See attached picture.

          I need a least squere ma (length 25) on a CCI 14.

          And thank you for helping me with this!

          RSy
          Attached Files

          Comment


          • #6
            See attached efs. I get an error.
            I have tried to copy woodielsma over into the efs you made.
            Will you look at it, please.

            RSy
            Attached Files

            Comment


            • #7
              RSy
              As far as I can tell the efs I posted calculates the Linear Regression of CCI.
              What is the LSMA supposed to calculate? CCI or other value?
              Alex

              Comment


              • #8
                I need a LSMA lenght 25 calculated on CCI 14.
                Just like the attached efs calculates LSMA on price. See att.

                RSy
                Attached Files

                Comment


                • #9
                  RSy
                  FWIW the LinReg.efs that is in the LinReg folder gives the same returns as the woodies lsma.efs that you posted so using that one makes no difference.
                  Can you post an image that you know is of a correct LSMA of CCI or let me know how you can determine that.
                  Alex

                  Comment


                  • #10
                    It was a scaling problem. Now it works well. Thank you again!

                    RSy

                    Comment


                    • #11
                      One moore little thing Alex.
                      Would you help me adding the LSMA to the CCI14 in the attached efs?

                      RSy
                      Attached Files

                      Comment

                      Working...
                      X