First I wrote some programs to back test different trading ideas, then I used the best ideas to create sort of stock scanner to give me the best possibilities for a trade, then I wrote an alert system to alert me what to buy, then with the APIs being available from different brokers, I started automating the entries and the last step was to develop sort of monitoring to monitor and exit my trades...
All hosted on few VPS around the world, so I can be truly location independent and I don't have to have internet all the time ...