I am trying to turn the value of a calculation into a series object so i can run it through a built in study like a sma.
Im not sure i got this right but going from examples i could use efsInternal () to do this or so i thought.
lets say i have my calculation that is different every bar in var value when i use efsInternal in this capacity esignal hangs and runs to 100% cpu. Eventually it returns.
Can efsInternal be used to create a series of ever changing values?
Or is something bizare hapening here like its creating a new series for every value i pass in via value?
I have this working using efsExternal but id rather have it woring as a single encapsulated efs.
Im not sure i got this right but going from examples i could use efsInternal () to do this or so i thought.
lets say i have my calculation that is different every bar in var value when i use efsInternal in this capacity esignal hangs and runs to 100% cpu. Eventually it returns.
Can efsInternal be used to create a series of ever changing values?
Or is something bizare hapening here like its creating a new series for every value i pass in via value?
PHP Code:
var vSMA;
function main(){
var value = 0;
value = <some calc>
vSMA = sma( 6, efsInternal( "makeValueSeries", value ) );
return vSMA.getValue(0);
}
function makeValueSeries( somevalue) {
return( somevalue);
}
Comment