Announcement

Collapse
No announcement yet.

Targeting Your Pattern

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

  • Targeting Your Pattern

    Jason, I am unable to utilize the forumula output window as diescribed in your instructions in the information on Targeting Your pattern. Any suggestions?
    Thanks

  • #2
    Hello jmingt,

    In general, after applying the formula to a chart, you should see some bars with a text label above the bar like below.



    If you double-left click on one of the text labels and you have the Formula Output Window (Tools-->EFS menu) open you should see some statistics like below.



    Please give me some more specific details describing the steps you have taken and what you are seeing on your end. What symbol and interval are you using? What pattern codes are you using in the study? Are you using eSignal version 7.9 or higher?
    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
      Targeting your pattern

      I tried this again using a 3 min. chart and it worked. We are going to try to use some of these in a script. I really appreciate your answer,
      Thanks,
      Jerry D.

      Comment


      • #4
        Targeting Your Pattern

        Can bars be only placed one at a time or coud one create a pattern of groups of bars as the article may have indicated. Example could one have an outside bar followed with a bar with a lower close.

        Or do you have to make this into individual pattern for each bar and then look for the color combination?
        Thanks Again,
        Jerry D.

        Comment


        • #5
          Hello Jerry,

          If you're asking if more than one code can be placed on a single bar, then no. Based on how the pattern codes are created, each bar will only have one code. The study only looks at the previous bar's zones to establish the pattern code for the following bar. If you are trying to identify particular pattern codes that appear on sequential bars, you could enter multiple pattern codes to be identified through Edit Studies and then look for those instances on the chart. To modify the formula to do this programmatically you could make the sCode variable a global and add another new global variable called sCode1. sCode1 would be used to store the previous bar's code so that you could compare it to the current bar's code to identify the instances where two different codes appear on sequential bars.


          PHP Code:
          // global vars
          var sCode null;
          var 
          sCode1 null;

          function 
          main() {
              .
              .
              .
              var 
          nState getBarState();
              if (
          nState == BARSTATE_NEWBAR) {
                  
          sCode1 sCode;
              }

              
          sCode getPattern();  // remove the 'var' here
              
          .
              .
              .

              if (
          sCode1 == "3351" && sCode == "3333") {
                  
          // your code 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


          • #6
            Hey Jason...

            Where do I get this script?? It looks interesting... Would like to check it out..
            Brad Matheny
            eSignal Solution Provider since 2000

            Comment


            • #7
              Hi Brad,

              This is one of the Stocks and Commodities magazine formulas, which can be found in our EFS Library in the EFS Knowledgebase.

              2005 Jul: Targeting Your Pattern (msTwoBarPatterns.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

              Working...
              X