Announcement

Collapse
No announcement yet.

New Scripts

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

  • Foz:

    Thanks. I'll check that out and make the change.

    Regarding the getValue() and getValueAbsolute() functions....

    3rd parameter (nNumBars) can be either positive or negative, depending upon how you are using it:

    vHighs = getValue( "High", 0, -10 );

    The above returns the most recent 10 highs. vHighs[0] will be the most recent high, vHighs[1] will be the high before that, etc.

    vHighs = getValue( "High", -9, 10 );

    Also returns the most recent 10 highs but in reverse order. vHighs[0] will be the high from 10 bars ago, vHighs[1] will be the high from 9 bars ago, etc.

    Basically, the sign of the 3rd parameter indicates the direction in which the function should collect the data (e.g., either forward or backwards).

    Regarding the constants..... no, I don't have a definitive list but, by the same token, I don't think there are that many of them out there. I will see what I can dig up.

    Chris

    Comment


    • Ah, thanks for clearing up my nNumBars confusion. An interesting behavior is that if you want a single price it doesn't' matter whether you use 1 or -1.

      Yes, please do look for a list of constants. Thank you.

      Comment


      • Any luck on finding the EFS contants, Chris? I don't know where to find them.

        Where are you going to look to find them? Do you have the EFS "compiler" source code?

        Comment


        • help file correction...

          Either it is spelled wrong somewhere or it just isn't defined, but Color.fuschia isn't working for me. Fuschia is listed as a recognized color in the EFS help file.

          Comment


          • It's supposed to be Color.fushcia. Try that.
            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


            • Do you plan on fixing this typo in the next version? "Fuchsia" is the correct spelling.

              Comment


              • Hello Foz,

                I'll send a message about this to our development team.
                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


                • Uploaded new version of EFS help files. Just minor updates/fixes.

                  Link to File Share:

                  http://share.esignal.com/groupconten...le&groupid=114

                  Chris

                  Comment


                  • Any luck on finding the EFS contants, Chris? I don't know where to find them.

                    Where are you going to look to find them? Do you have the EFS "compiler" source code?

                    Comment


                    • No, I don't have access to any of the source code... it's just trial and error (and looking through scripts) on my part. Perhaps someone from eSignal can help us out.

                      Chris

                      Comment


                      • Hello Foz,

                        I'm not aware of any constants that aren't already listed in Chris's Help File.
                        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


                        • How about Rawtime.DAY, Jason? I haven't seen it in the help file. Are there others like this?

                          Comment


                          • Hello Foz,

                            After doing some digging it appears there are some EFS constants that I wasn't aware of until now. I'll check with development to see if there is anything else we might be missing.

                            I thought this RawTime object might have been core JavaScript or a user defined object. Looks like it's an EFS extension. Here's what we have so far.

                            // Seconds per unit of time

                            RawTime.SECOND = 1
                            RawTime.MINUTE = 60
                            RawTime.HOUR = 3600
                            RawTime.DAY = 86400

                            Fyi, YEAR, MONTH and WEEK are undefined.
                            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


                            • Jason, Foz,

                              If memory serves these were added when rawtime was first added as a way to easily convert rawtime to the correct values. However since that time the getXXX() time/date functions were added, which use rawtime and are the preferred method for accessing this type of information.

                              I believe those constants are kept around only for backward compatability...and who knows if someday this will be dropped or stop to function correctly if the baseline for rawtime is ever changed.

                              Garth
                              Garth

                              Comment


                              • Ah, very good. Thanks for the details, Jason and Garth.

                                Comment

                                Working...
                                X