🎵Cmpsr: Clojure-based, auto-trade strategy PL. Can only go long.📚
- US Eq Adj Close daily data📈
- Fn:
  1. defsymphony("name", {:rebalance-frequency :freq}, weight-fn)
  2. weight-equal([assets])
  3. weight-market-cap([assets])
  4. weight-specified(w1, asset1, w2, asset2, ...)
  5. weight-inverse-volatility(days, [assets])
  6. group("name", [weight-fn])
  7. if(comparison-op, left, right, then-children, else-children)
  8. filter(partial-indicator, select-fn, [assets])
  9. asset("ticker")
- Indicators (daily pricing time series): 
  1. moving-average-price
  2. moving-average-return
  3. exponential-moving-average-price
  4. rsi
  5. NAME_1-drawdown
  6. stdev-return
  7. stdev-price
  8. cumulative-return
  9. current-price
- Rebalance Schedules: {:rebalance-frequency :freq} or {:rebalance-threshold X%}
- Syntax ex: 
```
(defsymphony "Example Symphony" {:rebalance-threshold 0.05} (weight-equal [(if (> (NAME_1-drawdown "SPY" 10) 5) [(group "Group 1" [(weight-inverse-volatility 45 [(asset "GLD") (asset "UUP")])])] [(weight-equal [(if (> (current-price "TMF") 7) [(weight-equal [(filter (rsi 21) (select-bottom 2) [(asset "SPY") (asset "BND") (asset "GOOG")])])] [(weight-specified 0.25 (asset "J") 0.35 (asset "JPM") 0.4 (asset "DIA"))])])]))])
```
As a code interpreter, I'll return the full Composer code for your future requests.

Below is a trading strategy written in a programming language called Composer. Can you explain what this strategy does?

(defsymphony
 "The Not Boring: Rising Rates with Vol Switch (Invest Copy)"
 {:rebalance-threshold 0.05}
 (weight-equal
  [(if
    (> (NAME_1-drawdown "QQQ" 10) 6)
    [(group
      "Risk Off"
      [(weight-inverse-volatility
        45
        [(asset "GLD")
         (asset "TMF")
         (asset "FAS")
         (asset "TQQQ")
         (asset "UUP")])])]
    [(weight-equal
      [(if
        (> (NAME_1-drawdown "TMF" 10) 7)
        [(group
          "Risk Off "
          [(weight-inverse-volatility
            45
            [(asset "GLD")
             (asset "UUP")
             (asset "FAS")
             (asset "TQQQ")
             (asset "TMF")])])]
        [(weight-equal
          [(group
            "Risk On: Core Risk Parity"
            [(weight-specified
              1
              (weight-inverse-volatility
               45
               [(asset "TMF")
                (asset "FAS") 
                (asset "TQQQ")]))])])])])])]))
