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

  Previous Value of Function (Variable Length) [PrevVL]  
Return to Complete List of Functions
The Previous Value of Function (Variable Length) function returns the value of the containing function a varying number of bars ago.

Parameters
------------------
Period          The number of bars of data to include in the calculation, not including the current bar.
                    For example, a period of 1 returns the value from the previous bar.
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 previous value of the function it is included in. If the previous value is not defined, this function returns 0.

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.

Usage
----------
Variable length functions can be used in association with other calculations, such as "Bars Since" functions, to determine values since an event occurred. For example, the following formula would return the value of the containing function at the time of the highest high in the last ten bars:

PrevVL ( BarsSinceHigh ( High, 10 ) , 10)

Since Previous Value of Function can only be used within other functions, it is only available from within the formula editor.

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.