I put the following code in my formula:
//{{EFSWizard_Return
var myVar;
myVar = hhv( 50, high() );
return myVar;
//return hhv(160, high());
//}}EFSWizard_Return 4578
and I get the following message from syntax check:
, line 49: ReferenceError: hhv is not defined
Although it clearly is in EFS2.
Do I need to pre-declare EFS2 functions?
--from knowledge base--
hhv()
Previous Top Next
hhv( numBars, series )
New in EFS2. This function will return the highest value found in a series within numBars number of bars.
Parameters
numBars
the number of bars back to search
series
the series in which to search for the value
Usage
function main() {
var myVar1;
//find the highest-high over the last 50 bars
myVar1 = hhv( 50, high() );
}
highest()
//{{EFSWizard_Return
var myVar;
myVar = hhv( 50, high() );
return myVar;
//return hhv(160, high());
//}}EFSWizard_Return 4578
and I get the following message from syntax check:
, line 49: ReferenceError: hhv is not defined
Although it clearly is in EFS2.
Do I need to pre-declare EFS2 functions?
--from knowledge base--
hhv()
Previous Top Next
hhv( numBars, series )
New in EFS2. This function will return the highest value found in a series within numBars number of bars.
Parameters
numBars
the number of bars back to search
series
the series in which to search for the value
Usage
function main() {
var myVar1;
//find the highest-high over the last 50 bars
myVar1 = hhv( 50, high() );
}
highest()
Comment