MovROC.efs
EFSLibrary - Discussion Board
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:
/********************************* 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.blue, 0); addBand(0, PS_SOLID, 1, Color.black); } var xROC6 = null; var xROC10 = null; var xROC15 = null; var xROC20 = null; function main() { var nValue = 0; if ( bInit == false ) { xROC6 = sma(10, roc(6)); xROC10 = sma(10, roc(10)); xROC15 = sma(8, roc(15)); xROC20 = sma(15, roc(20)); bInit = true; } if (xROC20.getValue(0) == null) return; nValue = xROC6.getValue(0) + (2 * xROC10.getValue(0)) + (3 * xROC15.getValue(0)) + (4 * xROC20.getValue(0)); return nValue; }