Help with an exit in backtesting

I would like to use an exit in my backtesting like below:

day 1 - 4. Exit if Close is higher than Entry.
day 5. Exit.
day 1 - . Exit if Close is lower than 3 ATR(10) from Entry.

Is this EXIT possible to programming i Amibroker, and if so how?

Best regards,
Leif Axelsson

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.