Assess my strategy, please

Discussion in 'Strategy Building' started by doublewobble, Aug 6, 2021.

  1. Dear All,

    I have formulated my first strategy that looks anywhere near promising in backtests. Could you please give your opinion?

    Software: Amibroker.

    Frequency: hourly.

    Data: SP500 stocks 1.04.2004-1.04.2021 (obtained from the FirstRateData, KMI omitted). 761 symbols traded (probably more because some are recycled).

    Method: technical, no fundamentals included.

    General rules:
    * no leverage;
    * no fixed annual interest for the money out of the market;
    * long only;
    * commission 0.005 per share;
    * trade during market hours;
    * trade at Open prices;
    * 2% max loss stops executed immediately with "Exit intraday at stop" option (at the low price of the bar);
    * position size not exceeding 1% volume of the -7th bar (hourly volume is heavily dependent on time), set as the following: SetPositionSize( round(Ref(Volume, -7)*0.01), spsShares );;
    * position size not exceeding 20% of the Portfolio Equity;
    * do not enter if not listed in SP500;
    * exit when delisted from the SP500.

    Profitability:
    Initial capital: 100 000;
    Ending capital: 3 469 965.70;
    Exposure %: 30.71%;
    Annual Return %: 22.84%;
    Risk Adjusted Return %: 74.38%;
    Transaction costs: 141 479.47.

    Trades:
    All trades: 5744;
    Average bars held (Winners): 11.98;
    Average bars held (Losers): 11.66;
    Max. Consecutive (Winners): 23;
    Max Consecutive (Losers): 14.

    In that thread , somebody listed his set of rules (long & short):

    My results
    (long only):

    1. Yes.
    2. I do not know how to include slippage into the calculations. However, the 1% vol rule applied to the position size should avoid most of the trouble, yes?
    3. CAR / MAX DD 3.50. Better than his.
    4. CAR 22.01%.
    5. Pay Off Ratio 1.38. Not filled.
    6. Max DD 6.53%. Better than his.

    7. Winners 59.05%, Losers 40.95%. Better than his.
    8. Sharp ratio 2.20. Better than his. Calculated with 5% Risk Free rate that has become nonsense in the recent years anyway.
    9. I am not sure what he means by the QoQ (not included to the Amibroker standard report) but the strategy does not lose money any year and the average results are positive for all months. The profit table:
    Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Yr%
    2004 0.0% 0.0% 0.0% 1.4% 2.1% 5.6% 2.1% -2.9% 0.0% 1.7% 4.1% 0.5% 15.4%
    2005 0.1% 0.0% 0.3% 0.0% 0.0% 0.2% 2.9% -0.1% 0.0% 0.0% -0.6% 1.6% 4.4%
    2006 -0.2% 6.0% 2.7% 0.7% -1.4% 3.0% -0.1% 0.0% 3.8% -0.4% 2.1% 1.5% 18.8%
    2007 0.0% -0.4% 0.0% 4.5% 3.6% -0.6% 2.4% 2.7% 0.3% 5.9% -0.4% 0.0% 19.2%
    2008 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0%
    2009 0.0% 0.5% 0.0% -1.0% 4.7% -2.9% 7.9% 2.0% 4.2% 3.0% 0.0% -0.6% 18.6%
    2010 -0.7% 1.2% 8.3% 7.3% 0.0% 0.0% 0.0% -1.8% 1.6% 3.3% 1.1% 0.0% 21.8%
    2011 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.1% 2.3% 2.3%
    2012 3.1% 5.5% 2.7% 0.5% -1.6% -0.8% 0.5% 0.6% -0.5% 0.2% -0.6% 0.0% 9.9%
    2013 5.4% 3.5% 2.6% 12.7% 7.0% 0.0% 4.5% 2.6% 0.0% -0.9% 1.7% 2.9% 50.2%
    2014 0.3% 2.7% 1.4% 2.8% -1.0% 3.6% 1.8% 0.4% -0.5% 4.6% 8.4% 0.4% 27.5%
    2015 0.0% 3.3% 3.1% -2.3% -0.2% 1.2% -0.8% 0.0% -1.1% 3.2% 3.3% 2.7% 13.1%
    2016 -0.6% 0.0% 3.5% -0.4% 1.4% 3.2% 1.8% 0.0% -0.1% 1.4% 7.6% 3.6% 23.2%
    2017 1.9% 9.1% 1.6% -0.6% 1.6% 0.4% 6.1% 1.5% 6.2% 3.3% 3.4% 0.9% 41.3%
    2018 6.0% -3.6% 1.5% 0.5% 1.5% 4.1% 6.1% 2.5% 0.1% -0.9% 1.1% 2.2% 22.9%
    2019 4.7% 7.7% 3.8% 1.3% -0.6% 1.3% 6.9% 0.0% 5.9% 2.4% 4.1% 1.1% 45.7%
    2020 0.6% -0.8% 0.0% 5.4% 14.2% 2.2% 4.0% 5.1% -2.7% 7.0% 17.4% 4.2% 70.9%
    2021 5.8% -0.8% 3.4% N/A N/A N/A N/A N/A N/A N/A N/A N/A 8.5%
    Avg 1.5% 1.9% 1.9% 1.9% 1.8% 1.2% 2.7% 0.7% 1.0% 2.0% 3.1% 1.4%
    10. The 5th rule not filled as well.
    11. Good.
    12. 0.46%. Better than his.

    The Monte Carlo table:
    Percentile Final Equity Annual Return Max. Drawdown $ Max. Drawdown % Lowest Eq.
    1% 2798247 21.32% -103593 -52.36% 49745
    5% 2988408 21.78% -89118 -37.42% 71963
    10% 3082482 22.00% -78860 -31.14% 78631
    25% 3264393 22.41% -67363 -23.28% 88798
    50% 3453929 22.81% -57843 -16.66% 96531
    75% 3650861 23.20% -50478 -11.84% 99838
    90% 3856601 23.60% -44613 -9.39% 100000
    95% 3987112 23.83% -42360 -8.16% 100000
    99% 4199208 24.21% -38126 -6.75% 100000

    Thanks in advance.
     
  2. Daniel.a

    Daniel.a

    That Quora thread you are linking to, contains much valuable information for any systematic trader, especially for new ones to be business.
     
  3. Absolutely. I was rather surprised to find such a high quality thread.
     
  4. SunTrader

    SunTrader

    From that thread

    Joseph Wang, ex VP-Quant {sha-wing - had to include that}

    ..........

    "6) Understand why your strategy really works. If you just look at the stock market over the last few years, it would be possible to get 10%/month return by just leveraging."

    Can you answer that? And BTW did I miss the enter/exit rules somewhere?
     
  5. I do believe so. It utilizes RSI in a peculiar way together with additional rules for risk management.
     
  6. What is the criteria to buy a stock? Is it every time only one stock for $ 100,000?
     
  7. I will not disclose the precise entry & exit signals.

    No, all SP500 constituents are watched. Positions are sized not to exceed 20% of the Portfolio Equity and 1% of the volume of the same hour of the previous day. If multiple signals are received at the same time, the available resources are divided equally between them, taking into account the rules mentioned above.
     
  8. I can understand that you won´t disclose your strategy. But thank you for your reply.
     
  9. RedDuke

    RedDuke

    Long only strategy in the longest bull
    Market of our times, is no brainier to find and backtest.
     
    comagnum and MarkGroes like this.
  10. Daniel.a

    Daniel.a

    I would not be to worried about not going further back than 2004 (i assume your intraday data has limitations, but i would try to get some more history to get you some hints about other market types) i would also look at average trd%.. i cant see that here, but your AB should output that in the metrics.. i would increase commission to further see how it affects. You say entry at next open... is it a intraday system using 60 min bars to crate daily bars and entry next open is next day open ? if not i would believe you would have slippage on entry and exit. Anyway, perhaps i missed something, but my thoughts at least.
     
    #10     Aug 6, 2021