this actually one problem i also meet? what 's your solve now?
Here is some suggest:
you script below is not right, because .ago will get the least value before 15 miniute,but not get the value at before 15 miniute.
if (p78.ago(MINUTE,15) != 0)
return p78.value - p78.ago(MINUTE,15) ;
else
return 0 ;
the best way is official provide on function to get the exactly time values.
the second way you can try like this,
if ((p78.ago(MINUTE,15) -p78.ago((MINUTE,16))==0),this means you point is interruption