Tricks can only be pulled off when you go off special golden ramps and through the rainbow hoop thingies. the guy I heard about it from said he wasn't sure and would just press all 4 of them.) to pull of a 'FINISH!', which would award you even more Boost Energy.
From what I've heard, tricks are preformed by moving the left analog stick in random directions to rack up Combos, and you press a certain button (or buttons it's one of the shoulder or trigger buttons or both.