Announcement

Collapse
No announcement yet.

Symbol Limit (5) for formulas

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

  • Symbol Limit (5) for formulas

    I am doing some market breadth studies on the Dow that involves calculations of the 30 Dow stocks close data. I run up against this limitation:

    "The Symbol Limit(5) for a formula has been exceeded."

    Is there any way around this?

  • #2
    any answer to this question?

    Is anyone from esignal available to answer this question? I got a similiar error (2years later), except I got the limit to be 7 symbols.

    Is there any way to load a bunch of symbols

    "the symbol limit (7) for formula has been exceeded"

    here is the main chunk of the formula, which gets symbol names from a file and then creates DDE outputs for high and low of that symbol for each of previous 5 days. Right now it stops working after about 4 symbols, although it reports the symbol limit being 7... what does this mean, and is there another way to send a bunch of stats for different symbols through DDE?

    I also want to know this because I was hoping to write a single formula that traded many symbols simulatneously via esignal papertrade... is this even possible?

    here is the code for my current formula that is causing my present error:

    while (!f.eof()) {
    var line = new String(f.readln());
    var sy1 = line.split(",");
    var sy = new String(sy1[0]);
    var s = sy.toUpperCase();
    var l1 = new DDEOutput("low1"+s);
    var l2 = new DDEOutput("low2"+s);
    var l3 = new DDEOutput("low3"+s);
    var l4 = new DDEOutput("low4"+s);
    var l5 = new DDEOutput("low5"+s);
    var h1 = new DDEOutput("high1"+s);
    var h2 = new DDEOutput("high2"+s);
    var h3 = new DDEOutput("high3"+s);
    var h4 = new DDEOutput("high4"+s);
    var h5 = new DDEOutput("high5"+s);
    l1.set(low(-1,sym(s+",D")));
    l2.set(low(-2,sym(s+",D")));
    l3.set(low(-3,sym(s+",D")));
    l4.set(low(-4,sym(s+",D")));
    l5.set(low(-5,sym(s+",D")));
    h1.set(high(-1,sym(s+",D")));
    h2.set(high(-2,sym(s+",D")));
    h3.set(high(-3,sym(s+",D")));
    h4.set(high(-4,sym(s+",D")));
    h5.set(high(-5,sym(s+",D")));
    }

    Comment


    • #3
      Hello jfranta,

      A single EFS is limited to accessing up to 7 symbols or 7 external chart intervals for a single symbol. This limit is in place to prevent excessive demands on the servers.

      Your loop should be successfully processing the first 7 iterations. Once your formula tries to access the 8th symbol, you should receive the symbol limit error. There isn't a work-around for this. To verify that 7 symbols are being processed, you can add the following code to your routine.

      PHP Code:
      var 1;

      while (!
      f.eof()) {
      var 
      line = new String(f.readln());
      var 
      sy1 line.split(",");
      var 
      sy = new String(sy1[0]);
      var 
      sy.toUpperCase();
      var 
      l1 = new DDEOutput("low1"+s);
      var 
      l2 = new DDEOutput("low2"+s);
      var 
      l3 = new DDEOutput("low3"+s);
      var 
      l4 = new DDEOutput("low4"+s);
      var 
      l5 = new DDEOutput("low5"+s);
      var 
      h1 = new DDEOutput("high1"+s);
      var 
      h2 = new DDEOutput("high2"+s);
      var 
      h3 = new DDEOutput("high3"+s);
      var 
      h4 = new DDEOutput("high4"+s);
      var 
      h5 = new DDEOutput("high5"+s);
      l1.set(low(-1,sym(s+",D")));
      l2.set(low(-2,sym(s+",D")));
      l3.set(low(-3,sym(s+",D")));
      l4.set(low(-4,sym(s+",D")));
      l5.set(low(-5,sym(s+",D"))); 
      h1.set(high(-1,sym(s+",D")));
      h2.set(high(-2,sym(s+",D"))); 
      h3.set(high(-3,sym(s+",D"))); 
      h4.set(high(-4,sym(s+",D"))); 
      h5.set(high(-5,sym(s+",D"))); 
      debugPrintln("symbol " " processed");
      i++;

      You should see something like below in your formula output window (Tools-->EFS-->Formula Output Window).

      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