$N=4$ supersymmetric gauge theory,twistor space and dualities.Cours IV