Announcement

Collapse
No announcement yet.

2004 May: InvFisherTransformRSI.efs

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

  • 2004 May: InvFisherTransformRSI.efs

    File Name: InvFisherTransformRSI.efs


    Description:
    Based on The Inverse Fisher Transform by John Ehlers. This article appeared in the May 2004 issue of Stock & Commodities.

    Formula Parameters:
    N/A


    Notes:
    The related article is copyrighted material. If you are not a subscriber of Stocks & Commodities, please visit www.traders.com.
    The May 2004 EFS formulas were provided by TS Support.

    Download File:
    InvFisherTransformRSI.efs




    EFS Code:

    PHP Code:
    // Magazine:        Technical Analysis of Stocks & Commodities, May 2004
    // Article:        The Inverse Fisher Transform by John F. Ehlers
    // Study:        INVERSE FISHER TRANSFORM OF RSI
    // Provided By:    TS Support, LLC for eSignal

    var RSI null;

    function 
    preMain(){
        
    setStudyTitle("INVERSE FISHER TRANSFORM OF RSI");
        
    setCursorLabelName("IFish",0);
        
    setDefaultBarFgColor(Color.red,0);
        
    addBand(.5PS_SOLID1Color.black);
        
    addBand(-.5PS_SOLID1Color.black);
        
    setDefaultBarThickness(2);
        
    //setComputeOnClose();
    }

    function 
    main(){
        
    wmaLength 9;
        
    rsiLength 5;
        if (
    RSI == nullRSI = new RSIStudy(rsiLength,"close");
        var 
    IFish 0WtdSum ;

        
    Value1 .1 * (RSI.getValue(RSIStudy.RSI) - 50);

        for(
    0wmaLengthi++)
            
    WtdSum += (wmaLength i) * (.1 * (RSI.getValue(RSIStudy.RSI,-i) - 50)) ;
        
    CumWt = (wmaLength ) * wmaLength .5 ;
        
    Value2 WAverage WtdSum CumWt ;

        
    IFish = (Math.exp(Value2) - 1) / (Math.exp(Value2) + 1);

        return 
    IFish;

    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