Announcement

Collapse
No announcement yet.

PIVOT LINES displayed incorrectly on 1 min charts

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

  • PIVOT LINES displayed incorrectly on 1 min charts

    The pivot lines on 1 minute charts are displayed incorrectly

  • #2
    Hello Robert,

    Could you describe in greater detail as to what you are seeing as incorrect? Also which Pivots are you using (Advanced Get Pivots, or the EFS Pivots)?

    Jay F.
    eSignal Community Support
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11

    Comment


    • #3
      Hello Robert,

      If you are referring to /Pivots/PivotPointAll.efs, please download the new file below.

      PivotPointAllnew.efs
      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


      • #4
        I have also found that the pivot lines are calculated differently if the chart is brought up before the trading starts. Once trading starts the pivot calculations are done a certain way and they results are not the same as one would expect from manually calculating the pivot.

        What I found was that if one closed the layout and reloaded it after the data is pouring in it works fine.

        Kiri

        Comment


        • #5
          Hello Kiri,

          Another option is to right-click on your chart , select "Reload" and just reload the specific formula in question. This would have the same affect and you won't have to close and reopen your layout.

          Regards,
          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
            PivotpointAllNew.EFS does not display lines on ES #F. It does on ES #F=2.

            Comment


            • #7
              hmmm, seesms to draw here on es #f

              Comment


              • #8
                Scrath my last posts

                My problem was having different pivot lines for ES #F and ES #F=2

                Comment


                • #9
                  Robert
                  PivotPointsAllNew seems to be plotting fine here on 5 min chart of ES #F (see attached)
                  Alex
                  Attached Files

                  Comment


                  • #10
                    I have attached 2 charts
                    the left is ES #F

                    the right is ES #F=2

                    notice the pivot lines are at different levels
                    Attached Files

                    Comment


                    • #11
                      Robert
                      They should be different
                      ES #F and ES #F=2 have different daily values as can be seen in the attached charts of the respective symbols
                      Alex
                      Attached Files
                      Last edited by ACM; 03-26-2003, 10:40 PM.

                      Comment


                      • #12
                        Hmmmm.

                        So how do I modify EFS so it will always calculate based on RTH session only?

                        stocks 930 to 400
                        indices 930 to 415

                        Comment


                        • #13
                          Here is an efs I picked up from the old Yahoo board that does RTH sessions and also plots the previous day's H/L/C .

                          I wish I could give credit to whoever wrote it and was kind enough to post it but that information escapes me at this time.

                          Brian


                          /************************************************** ********
                          PriorDayEmacs.efs - reports the prior day's HLC and
                          the pit traders' pivot, support
                          and resistance on intraday charts
                          ************************************************** ********/


                          function preMain() {
                          setPriceStudy(true);
                          setStudyTitle("Prior Day");
                          setCursorLabelName("R2", 0);
                          setCursorLabelName("R1", 1);
                          setCursorLabelName("PP", 2);
                          setCursorLabelName("S1", 3);
                          setCursorLabelName("S2", 4);
                          setCursorLabelName("H", 5);
                          setCursorLabelName("C", 6);
                          setCursorLabelName("L", 7);
                          //setComputeOnClose(true);

                          // R2
                          setDefaultBarStyle(PS_SOLID, 0);
                          setDefaultBarFgColor(Color.red, 0);
                          setDefaultBarThickness(2, 0);

                          // R1
                          setDefaultBarStyle(PS_SOLID, 1);
                          setDefaultBarFgColor(Color.red, 1);
                          setDefaultBarThickness(1, 1);

                          // Pivot Point
                          setDefaultBarStyle(PS_SOLID, 2);
                          setDefaultBarFgColor(Color.black, 2);
                          setDefaultBarThickness(1, 2);

                          // S1
                          setDefaultBarStyle(PS_SOLID, 3);
                          setDefaultBarFgColor(Color.blue, 3);
                          setDefaultBarThickness(1, 3);

                          // S2
                          setDefaultBarStyle(PS_SOLID, 4);
                          setDefaultBarFgColor(Color.blue, 4);
                          setDefaultBarThickness(2, 4);

                          // Previous Day's High
                          setDefaultBarStyle(PS_DOT, 5);
                          setDefaultBarFgColor(Color.green, 5);
                          setDefaultBarThickness(2, 5);

                          // Previous Day's Close
                          setDefaultBarStyle(PS_DOT, 6);
                          setDefaultBarFgColor(Color.black, 6);
                          setDefaultBarThickness(2, 6);

                          // Previous Day's Low
                          setDefaultBarStyle(PS_DOT, 7);
                          setDefaultBarFgColor(Color.red, 7);
                          setDefaultBarThickness(2, 7);
                          }

                          // globals
                          var vOutputArray = null;
                          var vLastSeenDay = null;
                          var vInterval = null;
                          var vSymbol = null;

                          function main() {

                          // initialize upon first loading formula
                          if(getBarState() == BARSTATE_ALLBARS) {

                          vInterval = getInterval();
                          vSymbol = getSymbol().toUpperCase();

                          // for RTH, eg, to convert, ES Z2 to ES Z2=2
                          var rootSymbol = vSymbol.substring(0,3);
                          if (rootSymbol == "ES " || rootSymbol == "NQ ")
                          if ( vSymbol.indexOf("=2") == -1 )
                          vSymbol += "=2";

                          vSymbol += ",D";
                          return null;
                          }

                          // return null if not an intraday chart
                          if(vInterval == null || vInterval == "D" ||
                          vInterval == "W" || vInterval == "M" || vInterval == "T")
                          return null;

                          // if first bar in new day, get and save yesterday's data
                          var vThisday = null;
                          if (vLastSeenDay != (vThisDay = getDay()) ) {

                          var vTime = getValue("Time");
                          if(vTime != null) {
                          var vYDay = getPreviousTradingDay(vTime,vSymbol);
                          if(vYDay != null) {
                          var vIndex = getFirstBarIndexOfDay(vYDay,vSymbol);
                          if(vIndex != null) {
                          var ydayH = getValueAbsolute("High", vIndex,
                          vSymbol);
                          var ydayL = getValueAbsolute("Low", vIndex,
                          vSymbol);
                          var ydayC = getValueAbsolute("Close", vIndex,
                          vSymbol);
                          var ydayP = (ydayH + ydayL + ydayC) / 3;
                          var ydayR1 = 2 * ydayP - ydayL;
                          var ydayS1 = 2 * ydayP - ydayH;
                          var ydayR2 = (ydayP - ydayS1) + ydayR1;
                          var ydayS2 = ydayP - (ydayR1 - ydayS1);
                          vOutputArray = new Array
                          (ydayR2,ydayR1,ydayP,ydayS1,ydayS2,
                          ydayH,ydayC,ydayL);

                          vLastSeenDay = vThisDay;
                          return vOutputArray;
                          }
                          }
                          return null;
                          }
                          }
                          // else just return the saved data
                          else
                          return vOutputArray;

                          }

                          Comment


                          • #14
                            Robert
                            PivotPointsAllNew.efs will work with any symbol on any interval.
                            In the case of ES #F and ES #F=2 it is as if they were two completely different symbols with different OHLC because ES #F includes all sessions whereas ES #F=2 instead includes only data from 9:30 to 16:15 ET. So, the Pivots are bound to be different.
                            Hope this helps
                            Alex

                            Comment


                            • #15
                              Hello Alex,


                              Is it difficult to modify pivot EFS so that ES #F pivots are based on RTH only??

                              I usually display chart with pre and post market data buy I would like pivot calculated based on RTH session only

                              Thanks in advance

                              Comment

                              Working...
                              X