When you get a trade signal, do not trade immediately, but store the signal somewhere, f.i. in an AlgoVar or AssetVar. When all signals are processed, count them and then calculate the invested amounts and enter the trades.