Announcement

Collapse
No announcement yet.

Need help with efs call function!

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

  • Need help with efs call function!

    I am trying to use the output from the Blau_TSI efs, which is in the efs database, within an efs I am writing. As I read it, the Blau efs has two variables it outputs, nTSI and nSignal. These variables are placed in a new Array for each tick. I have been able to access the nTSI variable using efs("Other\\Blau_TSI.efs"), but I have been unable to access the nSignal variable.

    I also need to reference past bars values of these variables in real time. I've been able to solve this issue by using a tick counter (I'm using tick charts), and placing the nTSI variable in an appropriate array. Just can't seem to access the other variable, nSignal.

    It's probably not difficult, but I can't see the forrest for the trees.

    Anyones help would be appreciated.

  • #2
    hmmerritt
    You can do as in the following example.
    Alex

    PHP Code:
    var myVar call("myEFS.efs" [, parameters (if any)]);
    if(
    myVar == null) return;//null check

    var myVar1 myVar[0];//this will call the first element of the returned array
    var myVar2 myVar[1]; //this will call the second element of the returned array
    if(myVar1 == null || myVar2 == null) return; //null check 

    Comment


    • #3
      Thanks for the help Alexis, that did the trick!

      Comment

      Working...
      X