Thank you for idea, Dalla! I use manual almost every day and still many good ideas not discovered there for me:) Also it seems that NumOpenLong and NumOpenShort works well to limit number of trades, but NumOpenTotal doesn't and that's why I went wrong way..