Matthew Greenslet![]() Idol ![]() ![]() ![]() ![]() Posts: 2077 Joined: 2/27/2006 ![]() | In your first post you state Originally written by Duxx on 8/25/2010 10:31 PM Then, I want to fire a long if the Close is above the high of the lowest low captured... So in the code I provided you can see that I always check the current close against the High of the bar that made the lowest low bar using the code... C > H[nBarsSincePattern + 1] However now you mention that you want the C to be greater than the Low value of the lowest low bar. Originally written by Duxx on 8/26/2010 11:55 AM But I would like to trigger the above signal, when the close of current bar is higher than the lowest low. In which case you can just change C > H[nBarsSincePattern + 1] to... C > L[nBarsSincePattern + 1] However using the low does not make a lot of sense since if your pattern has formed the close of the last bar in the pattern will always be greater than the L of the prior bar (your pattern is formed by a lower low). So a signal will fire on every green bar (C > O) after your pattern. |