how to code your own trading scripts