When you call efsExternal, does it call main inside that script?
Or is that a efs() call that I saw somewhere?
Can it call an active efs script currently loaded within a chart and access the current state of that script?
ie, if I loaded efs1 into chart1 and loaded efs2 into chart2, can efs2 call efs("efs1") to call main() of efs1, which will be the current state of efs1 with access to all variables declared outside of main in that script?
Or is that call loading a separate copy of efs1, and if so, does premain get called before main is called?
Also, if I have defined vars inside a script which are declared outside of main (so they are global to that script), and I then call efsInternal, does the invoked function have access to those vars?
An example I have is say I have three different sym/intervals defined outside of main (say var1 = close("A, 3), var2 = high("B, 5") and var3 = something else). Then I call an internal function. Can it access those vars?
Thanks
Or is that a efs() call that I saw somewhere?
Can it call an active efs script currently loaded within a chart and access the current state of that script?
ie, if I loaded efs1 into chart1 and loaded efs2 into chart2, can efs2 call efs("efs1") to call main() of efs1, which will be the current state of efs1 with access to all variables declared outside of main in that script?
Or is that call loading a separate copy of efs1, and if so, does premain get called before main is called?
Also, if I have defined vars inside a script which are declared outside of main (so they are global to that script), and I then call efsInternal, does the invoked function have access to those vars?
An example I have is say I have three different sym/intervals defined outside of main (say var1 = close("A, 3), var2 = high("B, 5") and var3 = something else). Then I call an internal function. Can it access those vars?
Thanks
Comment