Announcement

Collapse
No announcement yet.

Time Remaining

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

  • Time Remaining

    Is there an EFS that would tell the amount of time remaining in a price bar?

    As an example, it might display "11:21" for a 13 minute bar - Eleven minutes, twenty one seconds remaining.

  • #2
    Hello Lassiter,

    The formula below should work for you. It will display the time remaining in the interval from the time of the last update to the chart.

    RemainingBarTime.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


    • #3
      FOR NANA TRADER

      HERE IS THE THERMO
      Works fine but with percentages
      Attached Files
      Fabrizio L. Jorio Fili

      Comment


      • #4
        Is it possible to make the remainingtimebar.efs to update every second?

        RSy

        Comment


        • #5
          time remaining

          Jason:

          nice efs. can you have it so it updates at a continuous rate? seems it updates about every minute or so. Which is a wee bit slow for my trading style.
          g
          Last edited by greg; 03-15-2004, 04:13 PM.

          Comment


          • #6
            The time remaining can only be updated when the formula is executed, which occurs when there is a trade or a price update to the advanced chart. This is the best we can do through EFS at this time.
            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


            • #7
              This is great. Is there a way to change its location to the top left instead of top right?

              Also, a nice optional feature that the Thermometer has is the ability to play a sound when there is a certain amount of time left in the bar. Is it possible to add that to this efs?

              Thanks, ez

              Comment


              • #8
                Hello ez,

                Yes, add the flag, Text.RELATIVETOLEFT, to line 49 and change the 20 to something like 40 to move it down a little more. The drawTextAbsolute() function (line 48 and 49) should look like this,

                PHP Code:
                    drawTextAbsolute(240vTimeLeftColor.whiteColor.navy,
                        
                Text.BOLD|Text.LEFT|Text.FRAME|Text.RELATIVETOTOP|Text.RELATIVETOLEFTnull12"TR"); 
                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


                • #9
                  Is there a way to make the box draggable?

                  Thanks,
                  Greg

                  Comment


                  • #10
                    Hello Greg,

                    We do not have drag and drop capabilities for objects drawn by EFS. Please feel free to submit a request to add this functionality to our development team at [email protected].

                    What you could do is add a couple of formula parameters using the FunctionParameter Object to allow you to change the barIndex and yValue parameters of the drawTextAbsolute() function through Edit Studies.
                    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


                    • #11
                      Hi Jason,

                      OK, thanks. Thanks for the suggestions & possble work-around.

                      Regards,
                      Greg

                      Comment


                      • #12
                        Would it be possible to get RemainingBarTime.efs to function in playback mode?

                        Thanks,
                        Greg

                        Comment


                        • #13
                          Hello Greg,

                          This study uses a date object to calculate the remaining bar time. The date object's time is based on your pc clock. In tick replay mode this study will not give you an accurate reading of remaining time because the replay does not playback in a 1:1 ratio with actual time. The other limitation is that we would need a method to read the current rate that the tick replay is using to make the necessary adjustment to the result. This functionality doesn't currently exist. However, feel free to submit a suggestion for this to [email protected].
                          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


                          • #14
                            Hello Jason.... I tried to use RemainingBarTime.efs but all it does is throw up a nice blue rectangle on my chart (5 minute chart of the Russell e mini - which I have set as AB #F) and inside that rectangle is the following: 00:00 NaN My pc does run and display the pc clock down in the bottom right corner of the taskbar and shows hours and minutes only, at Pacific Time. I am using ESignal Advanced Charting.

                            I have tried it on a tick based chart as well but it does not work there either. It seems somehow not to be picking up the time or whatever.

                            I subsequently looked over this thread and downloaded 11thermocc.efs and it works fine on a tick based chart, but on a time interval chart all it does is throw up a long vertical white bar.

                            I can do only the most basic things using the EFS editor but I would appreciate any help you could provide me on getting either one of these to work on the time interval based charts.

                            Best Regards,
                            Randy

                            Comment


                            • #15
                              Hello Randy,

                              The RemainingBarTime.efs that I have appears to be working. Please try the attached version.

                              As for tick based charts, this formula will not work because tick based intervals vary in time from bar to bar. This formula requires fixed bar intervals.
                              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

                              Working...
                              X