[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining SwingLow



PureBytes Links

Trading Reference Links

Peter:

This is due to how the code for SwingLowBar is written. Open the code in
powereditor and you will see in the third "while" loop the line:  "if
Price1<=Price[X] then". The equal sign says, if 2 lows are equal and the
3rd one (on the right) is higher then the middle one is a swinglow. If
you don’t want to count swinglow (or swinghi) this way just remove the
equal sign. Then the center low must be lower than those to either side
(same for swinghi). 

Or if you want to count equal bars on the right side as part of a
swinglow then change the equal sign to the 2nd "while" loop.

Wayne Mathews