RelativeStrengthRatio.efs

ICE Data Services -


RelativeStrengthRatio.efs 
  

File Name: RelativeStrengthRatio.efs


Description:
Plots the chart symbol/$SPX (or specified symbol) as non-price indicator.


Formula Parameters:
Symbol1: Default is $SPX

Notes:
NA

Download File:
RelativeStrengthRatio.efs




EFS Code:
/*********************************Provided By : eSignal. (c) Copyright 2003*********************************/var vLoaded = false;var vEdit = false;var cSym = "";var vSym = "$SPX";function preMain() {    if (vLoaded == false) {            setDefaultBarFgColor(Color.blue);    } else {        if (vEdit == false) {            setStudyTitle(cSym + " vs. " + vSym + " ");            setCursorLabelName(cSym + "\/" + vSym);        } else {            setStudyTitle(cSym + " vs. ");            setCursorLabelName(cSym + "\/" + vSym);        }    }}function main(Symbol1) {    if (vLoaded == false) {        cSym = getSymbol();        if  (Symbol1 == null) {            vSym = "$SPX";            vEdit = false        } else {            vSym = Symbol1;            vEdit = true;        }        vLoaded = true;        preMain();    }    if (vSym != null) {        var b = close(0, 1, vSym);        var vValue = close()/b;        return vValue;    } else {        return;    }}