Announcement

Collapse
No announcement yet.

MovROC (KST indicator)

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

  • MovROC (KST indicator)

    File Name: MovROC.efs

    Description:
    MovROC (KST indicator)

    Formula Parameters:


    Notes:
    This indicator really is the KST indicator presented by Martin Pring.
    the KST indicator is a weighted summed rate of change oscillator that
    is designed to identify meaningful turns. Various smoothed rate of change
    indicators can be combined to form different measurements of cycles.



    Download File:
    MovROC.efs



    EFS Code:
    PHP Code:
    /*********************************
    Provided By:  
        eSignal (Copyright c eSignal), a division of Interactive Data 
        Corporation. 2008. All rights reserved. This sample eSignal 
        Formula Script (EFS) is for educational purposes only and may be 
        modified and saved under a new file name.  eSignal is not responsible
        for the functionality once modified.  eSignal reserves the right 
        to modify and overwrite this EFS file with each new release.

    Description:        
        MovROC (KST indicator)
        
    Version:            1.0  01/20/2009

    Formula Parameters:                     Default:


    Notes:
        This indicator really is the KST indicator presented by Martin Pring. 
        the KST indicator is a weighted summed rate of change oscillator that 
        is designed to identify meaningful turns. Various smoothed rate of change 
        indicators can be combined to form different measurements of cycles.

    **********************************/

    var bInit false;

    function 
    preMain() {
        
    setStudyTitle("KST");
        
    setCursorLabelName("KST"0);
        
    setDefaultBarFgColor(Color.blue0);
        
    addBand(0PS_SOLID1Color.black);
    }

    var 
    xROC6 null;
    var 
    xROC10 null;
    var 
    xROC15 null;
    var 
    xROC20 null;

    function 
    main() {
    var 
    nValue 0;
        if ( 
    bInit == false ) { 
            
    xROC6 sma(10roc(6));
            
    xROC10 sma(10roc(10));
            
    xROC15 sma(8roc(15));
            
    xROC20 sma(15roc(20));
            
    bInit true
        } 
        if (
    xROC20.getValue(0) == null) return;
        
    nValue xROC6.getValue(0) + (xROC10.getValue(0)) + (xROC15.getValue(0)) + (xROC20.getValue(0));
        return 
    nValue;

Working...
X