Expert adviser scans past 500 closing bars and looks for common closing regions as entries. It then uses a simple cross of three moving averages of varied length as a signal for trend development. Once it views a trend developing based on the direction it will search for the closest resistance line and buy or sell when they get as close as 0.005. The strength of the resistance is defined by input: resistance=. This refers to the minimum number of times a bar has closed at the same price level over the past 500 bars. I found the optimal number for EURUSD is 15. This Expert Advisor has been trained for EURUSD, some of the features would need changing considerably to be trained for other pairs.