Trading robots sometimes earn money and sometimes lose. There is not and cannot be a universal algorithm for all times. Perhaps on Wall Street there are expensive robots that are ahead of other players. And there is important proximity to the trading server. Therefore, the offices of trading companies take off closer to the stock exchanges.