Skip to main content
. 2026 Apr 23;28(5):485. doi: 10.3390/e28050485
Algorithm 2 Entropy-regulated quantitative trading.
  •   1:

    Input: Trained C-T-GPR model, rolling window length T, entropy risk aversion κ, CVaR level α, CVaR bound c¯, initial capital W0.

  •   2:

    for each trading day t do

  •   3:

        Construct features (Xt,Zt) from rolling window [t−T,t−1].

  •   4:

        Obtain (μ^t*,v^t*,Ht*) from Algorithm 1.

  •   5:

        Compute EUIt via Equation (34).

  •   6:

        Compute entropy-penalised Kelly fraction wt*=max(0,μ^t*/(v^t*·exp(κ·EUIt))).

  •   7:

        If multiple assets: solve CVaR-constrained Equation (37) to obtain wt*.

  •   8:
        Trade execution:
    •   If μ^t*≤0, set wt*=0 (close any long position; short selling is not allowed).
    •   Set target holdings wt* from the CVaR step (multi-asset) or (wt*,1−wt*) for single asset and cash.
    •   Submit market orders to rebalance from wt−1 to wt*.
    •   Update portfolio value: Wt=Wt−11+wt*⊤Yt−c∥wt*−wt−1∥1, where Yt is the realised return vector and c is the proportional transaction cost.
  •   9:

        Record Ht*, EUIt, It for monitoring.

  • 10:

    end for

  • 11:

    Output: Portfolio value path, performance metrics, entropy time series.