Announcement

Collapse
No announcement yet.

Why the following does not work? (2)

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

  • Why the following does not work? (2)

    Also, I am puzzled by the following code that returns an error message saying "The Symbol Limit(7) for a formula has been exceeded.'

    function main() {
    var x = null;

    x= efsExternal("calc_x.efs", smybol, sInterval);

    return x;
    }

    in calc_x.efs:

    var xma = null;
    var bInit = false;
    function main(vSym, vInterval) {

    if (vSym == null) vSym = getSymbol();
    if (vInterval == null) vInterval = 15;

    if (bInit == false) {
    xma = ema(20, sym(vSym+","+vInterval);
    }
    return xma.getValue(0);
    }

  • #2
    Hi All:

    would the following be considered as different symbols therefore causing the exceeding symbol limit error message?

    ...
    var vSym = getSymbol();
    var x = ema(20, sym(vSym+","+"15");
    var y = ema(20, sym(vSym+","+"60");
    var z = ema(20, sym(vSym+","+"D");

    etc...

    ??
    ziggy

    Comment


    • #3
      Hello ziggy,

      Yes, requesting data from different intervals on the same symbol will count against the EFS 7 Symbol limit. This requires separate charts to be loaded in the same way a call to an external symbol does. You can think of the symbol limit as an external chart limit as well.
      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


      • #4
        Jason, Thanks for the clarification.

        Now to be clear:

        1) generally speaking then, the implied maximum number of intervals can be used through eftExternal or efsInternal calls is 7 - 6 actually plus the interval the active chart is runninng in?

        2) if you have 2 eftExternals that call on the same symbol and same interval but invoking different built-in studies: say in efsExternal1, var x = ema(20, inv(SomeInterval)), is declared, and in external2, var x = rsi(14, inv(SomeInterval)) is declared, now the symbol count is 1 or 2?

        Thanks

        Comment


        • #5
          Hello ziggy,

          1) You have 8 total. 7 external plus your current chart Symbol/Interval.

          2) The built-in studies used has no affect on the 7 symbol/interval limit. If you use the same symbol and interval for all your built-in studies within a single EFS, your external symbol count would only be at 1.
          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