Hello everyone,

I need help implementing this simple strategy. I want to implement the following:

1. If the portfolio has a drawdown of 6% or more, then liquidate.

2. If the portfolio has been liquidated, then enter the market again 1 month later.

 

I have tried everything I could but I can't figure out this one. Any help would be highly appreciated!