I am trying to use the CoG oscillator to color bars for a change in trend - but my syntax is pretty poor, I just added 2 lines to the standard efs.
Here is my code - any help would be great.
Here is my code - any help would be great.
vRef = ref(-1);
if(vRef == null) {
return new Array(dCG, null);
} else {
if (vRef[0] < dCG) onAction1();
if (vRef[0] > dCG) onAction2();
return new Array(dCG, vRef[0]);
}
}
Comment