Gentlemen/Ladies:
The following is from efs2 documentation:
New in EFS2. Returns a series object representing the values as calculated from the given external EFS script. You would then use the getSeries() function to extract a specific series value if multiple series are returned.
Parameters
pathToEFS
the path and filename of the EFS script to call
sym/inv
optional. if used, the external EFS will be loaded into the specified symbol or interval's context
parameters
optional. parameters, if any, required by the EFS script you are calling
I am trying to understand what sym/inv definition means:
if in a 5 -min chart, say, I do:
var x = efsExternal("x.efs", sym(getSymbol()+","+15));
...
and in x.efs:
function main (vSymbol) {
var y = moneyFlow(20);
var mF = null
...
if (getBarState() == NEWBAR_STATE) {
...do somthing..
}
return y.getValue(0);
}
now, in x.efs, is moneyFlow(20) now actually moneyFlow(20, inv(15))?
and getBarState() - is that checking the barstate of 15 min interval or 5 min interval?
I did some debugPrint in x.efs and am not sure what they are actually doing....
Please help.
Thank you,
ziggy
The following is from efs2 documentation:
New in EFS2. Returns a series object representing the values as calculated from the given external EFS script. You would then use the getSeries() function to extract a specific series value if multiple series are returned.
Parameters
pathToEFS
the path and filename of the EFS script to call
sym/inv
optional. if used, the external EFS will be loaded into the specified symbol or interval's context
parameters
optional. parameters, if any, required by the EFS script you are calling
I am trying to understand what sym/inv definition means:
if in a 5 -min chart, say, I do:
var x = efsExternal("x.efs", sym(getSymbol()+","+15));
...
and in x.efs:
function main (vSymbol) {
var y = moneyFlow(20);
var mF = null
...
if (getBarState() == NEWBAR_STATE) {
...do somthing..
}
return y.getValue(0);
}
now, in x.efs, is moneyFlow(20) now actually moneyFlow(20, inv(15))?
and getBarState() - is that checking the barstate of 15 min interval or 5 min interval?
I did some debugPrint in x.efs and am not sure what they are actually doing....
Please help.
Thank you,
ziggy
Comment