Topic: Question about several points of closing position

Here is what I want to do: close position when prices crosses Donchian channel. Additionally I would like to add stop loss equal to 2*atr from last 20 days. Also I would like to have trailing stop loss equal to 10*atr from last 20 days. When the first condition is met, then positions should be closed. Is it possible to be done in FSB?