|
Navigation: Function Reference > Stream Functions > Stream Utility Functions > strmSwingLowBar() strmSwingLowBar() |
Top Previous Next |
strmSwingLowBar( stream: TEStream; instance, strength, offset, trailing_bars ) : Integer;
Returns the bar index (integer value) to the swing low defined by instance and strength. If no swing low is found over the trailing_bars specified, then -1 is returned. A swing low occurs when the value of a bar is lower than the value of the strength preceding bars and at least as low as the value of the strength bars that follow it.
Parameters
stream |
input stream of type TEStream |
instance |
integer value. the swing low occurrence. 1=most recent, 2=2nd most recent, etc. |
strength |
integer value. number of bars required on either side of a swing bar |
offset |
integer value. offset into the stream at which to start the calculation. |
trailing_bars |
integer value. total number of bars to consider when searching for the swing high |
iLastSwingLow := strmSwingLowBar( Symbol.low, 1, 2, 0, 100 );