Announcement

Collapse
No announcement yet.

efs script locks up running efs script

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

  • efs script locks up running efs script

    My efs script runs fine on a one minute chart with backtest and livedata but when I switch to a tick chart eSignal locks up and usually crashes. This test script simply grabs OHLC and returns.
    Is there a way to cause the tick chart to pause by issuing a wait command?

  • #2
    Hello mmulloy,

    We do not have a wait command in EFS. An execution of an EFS is triggered once for each historical bar and then once for each tick in real time. What you can do that might help is tell your formula to do nothing until it reaches a certain bar index during the loading process.

    PHP Code:
    function main() {
        if (
    getCurrentBarIndex() < -200) return;
        ....
        .... 
    This would prevent your study from processing any instructions until it is 200 bars from the most current bar, or bar 0.
    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
      OHLC on tick?

      Why would u want OHLC on tick, all u get is C?

      if u don't post ur code ...

      Comment


      • #4
        kztd
        A tick chart is not necessarily just a 1 tick chart but could be 100, 500 (or any other number) tick chart in which case OHLC can have different values just like with minute based charts
        Alex

        Originally posted by kztd
        Why would u want OHLC on tick, all u get is C?

        if u don't post ur code ...

        Comment

        Working...
        X