@huythai Yes, but you will need to us a variable counting the maximum number of open trades so far. Are you familiar with the way variables are used in fxDreema?