<t>1. I am building an algorithmic trading system, but I have one problem unsolved. If the algorithms generate a buy, but the price decreases soon and I get stopped out. At the same time a buy is generated a few seconds right after that, and the order gets stopped out again in the downtrend. How to ...