FindGartley(TrendSize, Bar);
TrendSize - The amount in percent a price has to move to be counted as a pivot point.
Bar - This specifies which price bar to use for calculating the gartley pattern.
The return from the function is 0 if no pattern was found. If a bullish pattern was found, the return value is 1. If a bearish pattern, is found the return value from the function is 2.