SymbolCompareAsNPS.efs

ICE Data Services -


SymbolCompareAsNPS.efs 
  

File Name: SymbolCompareAsNPS.efs


Description:
Compare a symbol to your chart symbol as a non-price study.


Formula Parameters:
Symbol1: Any valid symbol.

Notes:
After applying the formula, go to "Edit Studies" and enter a symbol.

Download File:
SymbolCompareAsNPS_EFS2.efs (Requires Version 7.9 or later)
SymbolCompareAsNPS.efs




EFS Code:
/***************************************************************Copyright � eSignal, a division of Interactive Data Corporation. 2005EFS2 version of SymbolCompareAsNPS.efsRequires eSignal version 7.9 or later.The study has been updated to utilize EFS2 functions to handle syncronizationbetween symbols that have different trading hours.***************************************************************/var vLoaded = false;var cSym = "";var vSym = null;function preMain() {    if (vLoaded == false) {            setStudyTitle(" ... Add Symbol");        setCursorLabelName("Add Symbol");        setDefaultBarFgColor(Color.red);    } else {        if (vSym != null) {            setStudyTitle(cSym + " vs. ");            setCursorLabelName(vSym);        } else {            setStudyTitle(" ... Add Symbol");                    setCursorLabelName("Add Symbol");        }    }}function main(Symbol1) {    if (vLoaded == false) {        cSym = getSymbol();        if  (Symbol1 == null) {            vSym = null;        } else {            vSym = Symbol1;        }        vLoaded = true;        preMain();    }    if (vSym != null) {        var b = close(sym(vSym));        return b;    } else {        return;    }}