|
Navigation: Function Reference > Stream Functions > Stream Utility Functions > strmNormalize() strmNormalize() |
Top Previous Next |
strmNormalize( stream: TEStream; offset: integer; bars: integer ) : Double;
Returns the normalized value based on the highest and lowest values found in stream over bars, starting at offset. The value is calculated as:
Normalized := (curValue-lowestValue)/(highestValue-lowestValue);
Parameters
stream |
input stream of type TEStream |
offset |
integer value. offset into the stream at which to start the calculation. |
bars |
integer value. number of bars over which to perform the calculation. |