Announcement

Collapse
No announcement yet.

Reserved Words

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

  • Reserved Words

    Please indicate where we can find a list of all EFS reserved words and their meaning.
    Mihai Buta

  • #2
    Hello mbuta,

    eSignal Formula Script uses JavaScript 1.5. You can find all the reserved words here.
    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
      Thank you Jason,

      What about the EFS specific Reserved Words,like BARSTATE_ALLBARS
      and many others?
      NOTE: Please ignore my email today. David answered that question.
      Last edited by mbuta; 01-20-2003, 06:30 PM.
      Mihai Buta

      Comment


      • #4
        Hello mbuta,

        BARSTATE_ALLBARS is a returned string associated with the getBarState() function. There are three states that can be returned:

        BARSTATE_ALLBARS - Returned when an advanced chart is instantiated for the first time.
        BARSTATE_NEWBAR - Returned at the beginning of a new bar.
        BARSTATE_CURRENTBAR - Returned for each tick intra-bar.

        You can use getBarState() to control what happens with your formula for these three states. For example:

        PHP Code:
        function main() {
            var 
        BarState getBarState();

            if (
        BarState == BARSTATE_ALLBARS) {
                
        // do something only once at the beginning
            
        }

            if (
        BarState == BARSTATE_NEWBAR) {
                
        // do something only when a new bar starts
            
        }

            if (
        BarState == BARSTATE_CURRENTBAR) {
                
        // do something for every tick
            
        }


        There isn't a single list that contains all the EFS specific words like these states above. Is there a specific problem you are trying to solve? If you are just trying to learn more about writing EFS formulas I would recommend reading our guides for developing eSignal Indicators and back testing Strategies. If there are other specific key words you want to learn more about, you could do a search for that word and find other threads containing those words. Hope this helps.
        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
          http://share.esignal.com/download.js...=&file=gbs.efs

          see how GetBarState() works in the Formula Output window

          Comment

          Working...
          X