Hi All,
I am hoping someone may be able to help with this one. Please excuse me if this is very 101 but I am not a programmer and kind of fumbling my way through this.
What I am trying to achieve is to get the value of the previous bar of an external EFS script (for a specific interval, in this case 15). I have read this great post and I thought that I was doing everything right:
I'm not sure why I get null from the above.
The external function (as far as I can tell) has only one element. I have tried getSeries with and without the ,0.
I have attached the external efs. I'll be very grateful for any insights into where I am going wrong, or even if what I am trying to do is possible or not.
Many Thanks
KBB
I am hoping someone may be able to help with this one. Please excuse me if this is very 101 but I am not a programmer and kind of fumbling my way through this.
What I am trying to achieve is to get the value of the previous bar of an external EFS script (for a specific interval, in this case 15). I have read this great post and I thought that I was doing everything right:
PHP Code:
function main() {
var xSVERSI15 = efsExternal( "Sve_InvFish_Rsi.efs", 4, 4,inv(15));
var sSVERSI15 = getSeries(xSVERSI15,0);
var prevSVERSI15 = sSVERSI15.getValue(-1);
debugPrintln(prevSVERSI15);
}
I'm not sure why I get null from the above.
The external function (as far as I can tell) has only one element. I have tried getSeries with and without the ,0.
I have attached the external efs. I'll be very grateful for any insights into where I am going wrong, or even if what I am trying to do is possible or not.
Many Thanks
KBB
Comment