Announcement

Collapse
No announcement yet.

SymbolCompareAsNPS.efs

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:
    PHP Code:
    /************
    Copyright © eSignal, a division of Interactive Data Corporation. 2005

    EFS2 version of SymbolCompareAsNPS.efs
    Requires eSignal version 7.9 or later.

    The study has been updated to utilize EFS2 functions to handle syncronization
    between 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 
    close(sym(vSym));
            return 
    b;
        } else {
            return;
        }

    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation
Working...
X