TradingSolutions Home  |  Products  |  Downloads  |  Resources  |  Support  |  Order NeuroDimension Home  
'
   Products
     TradingSolutions
     Trader68
     Add-Ons
     Bundles
     Financial Books
     Other Products
   Downloads
     Free Evaluation Copy
     Product Updates
     Free Systems
   Resources
     Sample Performance
     Video Tour
     Data Sources
     TradingSolutions FAQ
     Online Brokers
     Search
     Other Resources
   Viewpoints
     Customer Interviews
     Customer Quotes
     News and Reviews
   Support
     How to Get Help
     Licensed User Center
     Contact NeuroDimension
   Order

   ND Corporate Website
   NeuroSolutions.com

TradingSolutions Function Library

  Lead (Variable Length) [LeadVL]  
Return to Complete List of Functions
The Lead (Variable Length) function returns the value of a data series a variable period of time in the future.

Parameters
------------------
Data            The data to analyze. This is typically a field in a data series or a calculated value.
Period          The number of bars of data to include in the calculation, not including the current bar.
                    For example, a period of 3 returns the value for three bars into the future.
Maximum Period   The maximum value that Period can contain.
                             Larger values require extra memory to be set aside for this function to be calculated.

Function Value
------------------------
This function returns the value of a data series a variable period of time in the future.

The value at the end of a data series is not defined. If the period is greater than the maximum period or negative, the value is not defined. If the period contains a fractional number, only the integer portion will be used.

Close        Period        LeadVL(Close,Period,2)
------------------------------------------------------------------------
   2                1                          3
   3                2                          5
   4                3                                    <-- no value since 3 > maximum period
   5                2                          7
   6                1                          7
   7                2

Usage
-----------
Variable length functions can be used in association with other calculations and fields to adjust the size of the period.

The Lead function is primarily used to perform custom analysis against future data. It should typically never be used as part of calculations or predictions used for trading decisions. This is because the future data used by the lead function will not be available for the current day.

TradingSolutions Home  |  Products  |  Downloads  |  Resources  |  Support  |  Order

Product questions? Contact info@tradingsolutions.com. Website questions? Contact webmaster@tradingsolutions.com.
Webmasters, join our affiliate program. Interested in selling our software? Become a reseller!
Web Site Design and Implementation Copyright © 2008 NeuroDimension, Inc.
Risks of Forex Trading.