Small Aircraft; High Wing; 1 Eng; Fixed Gear
Flight Crew Commercial; Flight Crew Flight Instructor; Flight Crew Instrument; Flight Crew Multiengine
Flight Crew Last 90 Days 97; Flight Crew Total 700; Flight Crew Type 664
Communication Breakdown; Time Pressure
Conflict NMAC; Deviation - Altitude Excursion From Assigned Altitude; Deviation / Discrepancy - Procedural Clearance; Deviation / Discrepancy - Procedural Published Material / Policy
Flight Crew Took Evasive Action
Human Factors
As my private students and I returned from a local practice area; we were told to enter midfield right downwind for Runway XX. We were approximately 8 miles west of ZZZ at this point. Continuing inbound; we heard several other people coming back into ZZZ from practice areas and some other transient traffic. Just before we turned onto downwind at 1900 MSL; I looked up and to the right to saw an Aircraft Y also flying on downwind above me. When I turned downwind; I could no longer see him; as he was 6 o'clock high. At 2;400' MSL; Aircraft Y reported having us in sight and tower clear them to land as they are flying over top of us.  I noticed on the MFD that their ADS-B target had resulted in a traffic alert that was getting closer and descending. I pushed the nose forward and checked in with Tower abeam the numbers. The traffic passed over us very close. Seeing +02 on the MFD for the traffic; I initiated a left turn just as tower was instructing a left 360. I noted 1600 MSL on the altimeter; so I had descended 300' from traffic pattern altitude to evade the Aircraft Y. On final; I heard the Aircraft Y tell tower; 'we were extremely close to that downwind traffic on base.' Tower responded with; 'well he said he had you in sight; and Roanoke vectored you in that way; so I don't know what else to say about that.' We performed our touch and go and final lap before making a full stop. Bottom line; the Aircraft Y was overtaking me from the rear; told Tower he had me in sight; and was then cleared to land. I took evasive action; and even so; the traffic got within a few hundred feet of our aircraft. If we had not had ADS-B in; they might have hit us as they descended through Traffic Pattern Altitude.
Flight Instructor reported an NMAC event during landing pattern training. Instructor initiated an evasive maneuver to avoid a collision.