Looking for an efs formula that would give me:
($adv-$decl)/($adv+$decl)*100
Any help would be appreciated
($adv-$decl)/($adv+$decl)*100
Any help would be appreciated
function preMain() {
setCursorLabelName("AdvDecl");
setStudyTitle("AdvDecl")
}
function main() {
var vAdv = getValue("Close", 0, -1, "$ADV");
var vDecl = getValue("Close",0,-1,"$DECL");
return (vAdv-vDecl)/(vAdv+vDecl)*100;
}
function preMain() {
setCursorLabelName("AdvDecl");
setStudyTitle("AdvDecl")
}
function main() {
var vAdv = getValue("Close", 0, -1, "$ADV");
var vDecl = getValue("Close",0,-1,"$DECL");
return (vAdv-vDecl)/(vAdv+vDecl)*100;
}
Comment