xtg function

Maximum TG