Announcement

Collapse
No announcement yet.

Pivot

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

  • #16
    I had to reinstall esignal. I foregot to save my downloads.
    Can, maybe Alex change this formular that I get only five days
    back.

    Thanks for your help

    Tomcat
    Attached Files

    Comment


    • #17
      Tomcat
      If you scroll down this thread you should find Jason's message with the efs already modified.
      Alex

      Comment


      • #18
        I saw it. Thanks.

        Tomcat

        Comment


        • #19
          Alex,

          what´s wrong with the attached efs?

          The pivots reload several times the day by itself and draws all days back.

          Thanks

          Tomcat
          Attached Files

          Comment


          • #20
            Hello,

            can someone from esignal help me and tell me why the efs below doesnt work as it should?

            Thanks

            Comment


            • #21
              Hello Tomcat8,

              When a chart refresh occurs, global variables in a formula are not reinitialized. For most formulas this is not a problem, but in your case bDisplay needs to be reset in that event because that is the variable that controls whether or not to display the pivots. This is handled by checking for the bar state of BARSTATE_ALLBARS. I modified your formula for you. Take a look at the new routine I added to the top of main.

              PHP Code:
              function main(nDays) {
                  var 
              nState getBarState();

                  if (
              nState == BARSTATE_ALLBARS) {
                      
              bDisplay false;
                  } 
              Attached Files
              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


              • #22
                Many thanks for your help. I think this will work now.

                Tomcat

                Comment


                • #23
                  Pivot Point

                  I have a few enhancements I would like on this script, if it is possible to do them

                  Basically I would like to see the daily weekly monthly pivots plotted on a chart for last N days with the actual numbers printed next to the line e.g. dR2=78.5; wR3=84.6

                  I have seen a speciality script version of pivot points. But in that script one cannot look at the pivot points of last n days in the chart.
                  It just presents pivot points for the present day only.


                  Thanks any help is appreciated.

                  AK
                  Attached Files

                  Comment

                  Working...
                  X