Matthew Greenslet![]() Idol ![]() ![]() ![]() ![]() Posts: 2077 Joined: 2/27/2006 ![]() | An Integer is any whole number I.E. -2, -1, 0, 1, 2, ect. the += syntax is a standard coding meaning add some value to the orginial nVar += 1 will return the same result as nVar = nVar + 1. The reason I use a lookback of nBarsSincePattern + 1 is because your pattern definition requires 3 bars to make a pattern where the middle bar forms the lowest low. We reset the counter to 0 on the right most bar of your pattern. Since you wanted to reference some price point of this middle bar we need to lookback 1 bar + the number of bars since the last pattern reach the middle bar you wanted to use. |