Announcement

Collapse
No announcement yet.

EFS Performance Issues

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

  • EFS Performance Issues

    Hi Jason,

    Here are a few questions:

    1. Is it normal for a main() to be called more than the number of bars in the chart?

    2. Is it normal for main() functions from a diferent chart on the page to be called/executed when I reload an efs in a diferent chart?

    3. Is it normal for main() to be called in an idle situation (after hours, with a time template for trading hours only)?

    Remark: eval function is very "costly" timewise.

    Thanks,
    Mihai
    Mihai Buta

  • #2
    Hello Mihai,

    1. Yes. When you first apply a formula main() will be executed once for each bar in the chart. Then it will execute on every trade on bar 0. Unless you are using setComputeOnClose(true), then main() executes once per bar.

    2. The EFS in one chart executes when the symbol of that chart has a trade. An EFS being reloaded in a separate chart shouldn't affect the other formula.

    3. I don't think so. If I understand you correctly, there shouldn't be an execution of the formula in this case.
    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,

      I know about ticks and etc.
      I thought I was clear that:

      A. main() execute MORE than the number of bars. For example, 608 times for a 600 bars chart.
      B. all these happened at 10:00 pm, when there are no ticks or trades.

      If these strange things happen, and they do, what can be the cause of the problem and can it be corrected?

      Thank you.
      Mihai Buta

      Comment


      • #4
        Hello Mihai,

        I'm not sure what would be triggering the extra 8 executions at 10pm if your time template does not include that time frame. Is this creating some kind of problem for one of your formulas?
        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