Topic: Closing after X number of bars.

It has been asked before, but I am considering programming a way to close position after X number of bars. What I need to know is whether it is possible. And if so whether a custom indicator used for closing logic could be programmed to do this.
Thanks

Re: Closing after X number of bars.

You might take a look at N Bars Exit indi, before you commence on re-inventing the wheel wink