Hi,
I'm trying to write a new study but getting this error while adding to the chart.
line 0: null is not a function
Call:
function main(gNbrLength, gColorFlat,gColorUp, gColorDn)
{
if(!bMainInit)
{
xK = 1.0/gNbrLength;
xSrc = close();
xPdm = efsInternal("xPdm",xSrc);
}
Function:
function xPdm(xSrc) {
return Math.max((xSrc.getValue(0) - xSrc.getValue(-1)), 0);
}
I'm trying to write a new study but getting this error while adding to the chart.
line 0: null is not a function
Call:
function main(gNbrLength, gColorFlat,gColorUp, gColorDn)
{
if(!bMainInit)
{
xK = 1.0/gNbrLength;
xSrc = close();
xPdm = efsInternal("xPdm",xSrc);
}
Function:
function xPdm(xSrc) {
return Math.max((xSrc.getValue(0) - xSrc.getValue(-1)), 0);
}
Comment