Hi
I am trying to return and use two data series from an efsInternal call ... I cannot get it working ... nothing is even produced by the debug statement - ANY help much appreciated.
Thanks
Paul
function main () {
barState = getBarState();
barIndex = getCurrentBarIndex();
if (barIndex == 0) {
var p = efsInternal("fib05");
var a = p.getSeries(p,0);
var b = p.getSeries(p,1);
debugPrintln("a "+a.getValue(0)+" b "+b.getValue(0));
drawLineRelative(-10, a,0, a,PS_SOLID,4,Color.green ,107);
drawLineRelative(-10, b,0, b,PS_SOLID,4,Color.green ,108);
}
}
function fib05() {
x = lowest (55,low (inv( 5)));
y = highest(55,high(inv( 5)));
r = y.getValue(0) - x.getValue(0);
z = x.getValue(0) + 38.2/100 * r;
v = x.getValue(0) + 61.8/100 * r;
return new Array (z,v);
}
I am trying to return and use two data series from an efsInternal call ... I cannot get it working ... nothing is even produced by the debug statement - ANY help much appreciated.
Thanks
Paul
function main () {
barState = getBarState();
barIndex = getCurrentBarIndex();
if (barIndex == 0) {
var p = efsInternal("fib05");
var a = p.getSeries(p,0);
var b = p.getSeries(p,1);
debugPrintln("a "+a.getValue(0)+" b "+b.getValue(0));
drawLineRelative(-10, a,0, a,PS_SOLID,4,Color.green ,107);
drawLineRelative(-10, b,0, b,PS_SOLID,4,Color.green ,108);
}
}
function fib05() {
x = lowest (55,low (inv( 5)));
y = highest(55,high(inv( 5)));
r = y.getValue(0) - x.getValue(0);
z = x.getValue(0) + 38.2/100 * r;
v = x.getValue(0) + 61.8/100 * r;
return new Array (z,v);
}
Comment