How do I call the values (r1,r2,pp,s1,s2) from the pivot point efs formula for use in a custom efs i am trying to develop?
Any help would be greatly appreciated.
thanks,
tom
Any help would be greatly appreciated.
thanks,
tom
function preMain() {
setPriceStudy(true);
setStudyTitle("Call Pivots");
}
function main() {
var aPivots = null;
aPivots = callFunction("/Pivots/PivotPointAll.efs","main");
if(aPivots == null) return;
var r2 = aPivots[0];
var r1 = aPivots[1];
var pp = aPivots[2];
var s1 = aPivots[3];
var s2 = aPivots[4];
return new Array (r2,r1,pp,s1,s2);
}
Comment