The Australian Securities and Investments Commission (ASIC) has, for the first time, put a legal definition on what counts as a trading algorithm.