Announcement

Collapse
No announcement yet.

2004 May: InvFisherTransformRSI.efs

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

  • 2004 May: InvFisherTransformRSI.efs

    Hi Jason,

    if i use this indicator on an intraday-chart, it has a lag of one bar. I compared with other programms (TS) and they show no lag on intraday-charts.

    Same for the Cyber-Cycle.

  • #2
    Hello augustus,

    The formulas are using setComputeOnClose() in preMain(), which creates this one-bar lag.
    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


    • #3
      Jason,

      Is there anyway to eliminate the one-bar lag on an intraday chart? I use 1, 3, and 5 min charts and the lag is causing some indecisiveness on my part.

      - Hugh

      Comment


      • #4
        Hello Hugh,

        Yes most likely. For starters you can try removing the setComputeOnClose() function from preMain(). I have a feeling that may not be the solution, but I'll look into tomorrow and see what we can do.
        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


        • #5
          Hello Hugh,

          Removing setComputeOnClose() for InvFisherTransformRSI.efs works fine. I've updated the formula in the main post. For the CyberCycle_InvFisherTrans.efs, some additional modifications were required. I've updated that formula as well. Download the new versions and let me know if you have any problems.
          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


          • #6
            Jason,
            First, I'm thankful I don't have to retype the script from my May issue, thanks.

            I have some questions about the mechanics of the script:

            What is Value1 used for? I don't see it referenced later.

            I thought '+=' was a string concatenation operator in eSignal, not a self-referencing addition operator.
            (EFS Function Reference states:
            String Operators
            + //oncatenate
            += //append)

            What exactly does this line do?
            Value2 = WAverage = WtdSum / CumWt ;
            I understand the division, but a double assignment? or is that an operator too?
            According to the article it should be doing a Weighted Average, which I'm assuming this does, but I can't find WAverage in the EFS Function Reference Guide.

            Sorry if these are basic questions.

            Thanks,
            Ted.

            -function THEO( )
            Last edited by tedsmith; 04-23-2004, 08:07 AM.

            Comment


            • #7
              Hello Ted,

              I'll try to answer your questions the best I can. TS Support originally developed this formula. They may need to provide a response to some of your questions.


              What is Value1 used for? I don't see it referenced later.
              You're correct. It isn't used for anything in the formula. It could be some remnant code used for testing during development that they forgot to remove.

              I thought '+=' was a string concatenation operator in eSignal, not a self-referencing addition operator.
              JavaScript is a soft-typed language, which means you don't have to explicitly define the data type of a variable. This allows the operators to be used with strings or numbers. In the case of +=, if it is used with numbers it adds the result to itself. If used with strings it performs concatenation.

              PHP Code:
              var nNum 5;
              nNum += 1;
              debugPrintln(nNum);

              // nNum equals 6 
              The above is the same as the following when dealing with numbers.
              PHP Code:
              var nNum 5;
              nNum nNum 1;
              debugPrintln(nNum);

              // nNum equals 6 
              With strings, += performs concatenation.
              PHP Code:
              var sString "Hello";
              sString += " World";
              debugPrintln(sString);

              // sString equals "Hello World" 
              The above is the same as the following.
              PHP Code:
              var sString "Hello";
              sString sString " World";
              debugPrintln(sString);

              // sString equals "Hello World" 
              What exactly does this line do?
              Value2 = WAverage = WtdSum / CumWt ;
              WAverage is just a variable name in the formula, it's not an EFS function. WAverage isn't being used in this formula either by the way. At any rate, this does the same thing as,
              PHP Code:
              WAverage WtdSum CumWt ;
              Value2 WAverage
              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


              • #8
                Question on Fisher transform RSI

                Hi,
                Great, thanks for posting this! Is there a way to add a line at both the +.5 and -.5 level?
                thanks,
                JJ

                Comment


                • #9
                  JJ
                  The efs already has them. See in preMain() the following statements
                  addBand(.5, PS_SOLID, 1, Color.black);
                  addBand(-.5, PS_SOLID, 1, Color.black);

                  Alex

                  Comment


                  • #10
                    InvFisherTransformCCI.efs??

                    Anyone know if there's an InvFisherTransformCCI efs available or in the works?

                    TIA,
                    Bob

                    Comment


                    • #11
                      re: Lines

                      hi,
                      Thank you for pointing that out! My charts have a black background, so didn't see the predrawn lines. Just changed the line color to cyan; looks great!
                      Thanks again,
                      JJ

                      Comment

                      Working...
                      X