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:
/**************************************************************************************************** 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. *****************************************************************************************************/ 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; } }