How to do automated trading? Investing with fx or crypto

how to do automated trading Investing with fx or crypto