compile the tradermain