Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Accerelation and Speed Ver 1.1 for eSignal (EFS)

Rating:
5 / 5 (Votes 1)
Tags:
oscillator, eSignal

Hi it check trend change in stock thereby indicating the stock in bull or bear phase

Similar Indicators / Formulas

Awesome Oscillator
Submitted by nativeman over 14 years ago

Indicator / Formula

Copy & Paste Friendly
/*********************************
Provided By:  
    eSignal (Copyright c eSignal), a division of Interactive Data 
    Corporation. 2009. 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:        
    Acceleration & Speed
Version:            1.0  09/25/2009
 
Formula Parameters:                     Default:
    Length                              24
    sPrice                              Close
    
Notes:
    
**********************************/
var fpArray = new Array();
var bInit = false;

function preMain(){
    setPriceStudy(false);
    setShowCursorLabel(true);
    setShowTitleParameters(false);
    setStudyTitle("Acceleration & Speed");
    setCursorLabelName("Speed", 0);
    setPlotType(PLOTTYPE_LINE, 0);
    setDefaultBarFgColor(Color.red, 0);
    setCursorLabelName("Acceleration", 1);
    setPlotType(PLOTTYPE_LINE, 1);
    setDefaultBarFgColor(Color.green, 1);
    var x = 0;
    fpArray[x] = new FunctionParameter("Length", FunctionParameter.NUMBER);
    with(fpArray[x++]) {
        setLowerLimit(1);
        setDefault(24);
    }    
    fpArray[x] = new FunctionParameter("sPrice", FunctionParameter.STRING);
	with(fpArray[x++]){
        setName("Source of Price");
        addOption("open"); 
        addOption("high");
        addOption("low");
        addOption("close");
        addOption("hl2");
        addOption("hlc3");
        addOption("ohlc4"); 
        setDefault("close"); 
    }    
}

var xSpeed = null;
var xAcceleration = null;

function main(Length, sPrice) {
var nBarState = getBarState();
var nSpeed = 0;
var nAcceleration = 0;
    if (nBarState == BARSTATE_ALLBARS) {
        if(Length == null) Length = 2;
        if(sPrice == null) sPrice = "close";
	}
	if (bInit == false) {
        xSpeed = mom(Length, eval(sPrice)());
        xAcceleration = mom(Length, xSpeed);
        bInit = true;
	}
    nSpeed = xSpeed.getValue(0);
    nAcceleration = xAcceleration.getValue(0);
    if (nAcceleration == null) return;
    return new Array(nSpeed, nAcceleration);
}

2 comments

1. expert

admin please look this afl give me error, please if possible to care!

2. administrator

This is an eSignal formula

Leave Comment

Please login here to leave a comment.

Back