Announcement

Collapse
No announcement yet.

RelativeStrengthRatio.efs

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

  • 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:


    Download File:
    RelativeStrengthRatio.efs

    Image:



    EFS Code:
    PHP 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 
    close(01vSym);
            var 
    vValue close()/b;
            return 
    vValue;
        } 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