Announcement

Collapse
No announcement yet.

reloadEFS()

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

  • reloadEFS()

    I added the following statement to a working efs. Now it crashes. Closes the chart. Would someone knowlegable in this function please provide some instruction on its proper use. I already looked at the help file.

    Thanks.
    PHP Code:
    if (getBarState() == BARSTATE_NEWBAR)
    {
        
    reloadEFS();


  • #2
    Gavishti:

    The code as written is forcing the script to reload as each bar is processed which is probably not a good idea. ReloadEFS() works well but it should be used with caution. Best bet is to use conditional statements to ensure that it does not get called until all bars have been loaded AND your specific condition has been met.....something like:

    if ( isLastBarOnChart() && MyConditionMet==true ) {
    MyConditionMet=false;
    ReloadEFS();
    }


    Chris

    Comment


    • #3
      Gavishti
      You may want to see this thread
      Alex

      Comment


      • #4
        Thanks Alex. Used your code and that fixed it.

        Comment

        Working...
        X