Hi,
I'm a little formula just as a test - test.efs.
It gets the current bar's Close and Open and returns (Open+Close)/2.
vClose = getValue("Close", 0);
vOpen = getValue("Open", 0);
return ((vOpen+vClose)/2);
I apply the formula to a chart, it seems to work the way it's supposed. Then I changes the return to
return(0)
to see how the chart changes. After complied the formula without any syntax error, I reload the formula to the same chart. The chart looks the same as before.
I even tried to remove all formula and re-apply test.efs, the result is the same.
Does anyone know what I'm doing wrong.
Thank you in advance.
William
I'm a little formula just as a test - test.efs.
It gets the current bar's Close and Open and returns (Open+Close)/2.
vClose = getValue("Close", 0);
vOpen = getValue("Open", 0);
return ((vOpen+vClose)/2);
I apply the formula to a chart, it seems to work the way it's supposed. Then I changes the return to
return(0)
to see how the chart changes. After complied the formula without any syntax error, I reload the formula to the same chart. The chart looks the same as before.
I even tried to remove all formula and re-apply test.efs, the result is the same.
Does anyone know what I'm doing wrong.
Thank you in advance.
William
Comment