Announcement

Collapse
No announcement yet.

relative strength ratio , need help !

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • relative strength ratio , need help !

    hello,

    i have a small problem with this indicator, i am trying to use this on the euro/usd , the problem i am facing is that on " yesterdays" chart is looks good and selling is above 1 buying under 1 but on the intraday chart the indicator is completely compressed , the next day it looks fine again , could someboddy help me overcomming this problem !
    thnx





    /************************************************** **************************************************
    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 = "$eur a0-fx";

    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;
    }
    }
Working...
X