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. 2003. All rights reserved. This sample eSignal Formula Script (EFS) may be modified and saved under a new filename; however, eSignal is no longer responsible for the functionality once modified. eSignal reserves the right to modify and overwrite this EFS file with each new release. *****************************************************************************************************/ /** Updated: 01/13/03 **/ 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(0, 1, vSym); return b; } else { return; } }