SOE Model with Current Account Dynamics


Can anyone help with Dynare code modelling current account dynamics in a small open economy. Something along the lines of Bergin (2006) and Ferrero, Gertler and Svensson (2010), but in a small open economy setting.


First, from what I understand, for this approach to be viable, the simulation horizon needs to be big enough for the zero terminal condition hypothesis to be verified?