Tag: InteractiveBrokers

  • “Trade the Trend” Strategy – February 2025 update

    “Trade the Trend” Strategy – February 2025 update

    If you’re new to this post, please check the first post to know what this is about.

    Since Sector SPDR ETFs page was updated with January data, let’s update our numbers and buy more participations to our ETFs.

    Since last update, here is how the portfolio looks like today:

    SymbolQuantityCost PriceCost BasisClose PriceValueUnrealized P/L
    XLB0.1706              89.67              15.30           89.26              15.23                  (0.07)
    XLC1.3821              99.38            137.35         103.37            142.87                     5.52
    XLE0.3273              93.48              30.59           91.24              29.86                  (0.73)
    XLF2.1001              50.98            107.06           51.54            108.24                     1.18
    XLI0.429            142.67              61.21         138.61              59.46                  (1.75)
    XLK0.6323            241.20            152.51         236.33            149.43                  (3.08)
    XLP1.5725              77.72            122.21           80.61            126.76                     4.55
    XLRE1.1019              41.66              45.90           42.26              46.57                     0.67
    XLU0.9634              79.42              76.51           79.39              76.48                  (0.03)
    XLV0.6372            144.08              91.81         146.03              93.05                     1.24
    XLY0.7251            231.21            167.65         223.78            162.26                  (5.39)
    TOTAL        1,008.10        1,010.21                     2.11

    I’ve made some changes to how I calculate the weight from a grand total. I still don’t like how it works, especially when there are negative and positive numbers. Until I will have an idea about this, I will just do nothing with the ETFs that are in negative in the previous month.

    So here is January 2025 data for SPDR ETFs and the $1,000 investment into the 11 sectors that I will do now:

    SymbolSectorLast MonthRankRatio of grand totalMonthly investment
    XLKTechnology-0.70%1-1.74%(17.39)
    XLPConsumer Staples0.55%21.37%13.66
    XLREReal Estate1.83%34.55%45.45
    XLEEnergy2.39%45.94%59.36
    XLUUtilities2.92%57.25%72.53
    XLYConsumer Discretionary3.54%68.79%87.93
    XLIIndustrials5.02%712.47%124.69
    XLBMaterials5.58%813.86%138.60
    XLCCommunication Services5.82%914.46%144.56
    XLFFinancials6.54%1016.24%162.44
    XLVHealth Care6.77%1116.82%168.16

    Remember, Technology will have no investment this month. Need to come up with a better idea on how to calculate the weight of each sector, even when some of them are in negative. If you have any ideas, please drop a comment.


  • Testing the “Trade the Trend” Strategy with Sector SPDR ETFs

    Testing the “Trade the Trend” Strategy with Sector SPDR ETFs

    I’ve been toying with an idea for a while now, and I finally decided to put it to the test. My curiosity revolves around the “trade the trend” strategy, specifically by following Sector SPDR ETFs.

    For those unfamiliar, the “trade the trend” strategy is a trading approach that involves identifying and capitalizing on prevailing market trends. As described by HowToTrade.com, this strategy relies on spotting the direction in which a market is moving and making trades that align with that trend. The goal is to ride the trend for as long as possible to maximize profit.

    However, I wanted to add a twist to this strategy. Imagine we’re in a bull market, a period during which prices of securities or assets are rising or expected to rise. In simpler terms, everyone is saying the stocks are going up. My idea is to rank the ETFs by their performance in the previous month and invest a weighted amount in each sector.

    The weight ratio by grand total is a formula used to express the proportion of a part relative to the grand total. It is calculated by dividing the weight of the part by the grand total weight, then multiplying by 100 to get a percentage. This shows how significant each part is within the whole.

    Let’s see an example of weighting with a grand total investment of 1,000:

    • Company A – 100
    • Company B – 150
    • Company C – 50
    • Company D – 250
    • Company E – 450

    Grand Total Investment = 100 + 150 + 50 + 250 + 450 = 1,000.

    Now, to compute the weight ratios for each company:

    • Company A: Weight Ratio = (100/1,000) × 100 = 10%
    • Company B: Weight Ratio = (150/1,000) × 100 = 15%
    • Company C: Weight Ratio = (50/1,000) × 100 = 5%
    • Company D: Weight Ratio = (250/1,000) × 100 = 25%
    • Company E: Weight Ratio = (450/1,000) × 100 = 45%

    What this means is that from the monthly available amount, 10% of it will be invested in Company A, 15% in Company B, 5% in Company C, 25% in Company D, and 45% in Company E.

    Every month, the rank will be recalculated, and specific amounts from the monthly available amount will again be invested according to the calculated weight based on the performance of each ETF in the previous month.

    Now, let’s see a real world example with the Sector SPDR ETFs.

    According to SPDR page, December 31, 2024, monthly performance for each sector is detailed below:

    After working some magic with Power Query, I generated the ranking below. Keep in mind: lower ranks indicate poorer performance.

    SymbolSector1 MonthRankRatio of grand total
    XLBMaterials-10.79%11.52%
    XLEEnergy-9.54%23.03%
    XLREReal Estate-8.60%34.55%
    XLIIndustrials-7.96%46.06%
    XLUUtilities-7.93%57.58%
    XLVHealth Care-6.20%69.09%
    XLFFinancials-5.44%710.61%
    XLPConsumer Staples-4.81%812.12%
    XLCCommunication Services-1.38%913.64%
    XLKTechnology-0.34%1015.15%
    XLYConsumer Discretionary1.13%1116.67%

    Given the table, we need to allocate 16.67% of our available funds into the XLY ETF (Consumer Discretionary) and 1.52% into the XLB ETF (Basic Materials), and similarly for each sector.

    If we have 1,000 to invest this month, the distribution would match the percentages listed in the final column:

    SymbolSectorRatio of grand totalMonthly investment
    XLBMaterials1.52%                                     15.15
    XLEEnergy3.03%                                     30.30
    XLREReal Estate4.55%                                     45.45
    XLIIndustrials6.06%                                     60.61
    XLUUtilities7.58%                                     75.76
    XLVHealth Care9.09%                                     90.91
    XLFFinancials10.61%                                  106.06
    XLPConsumer Staples12.12%                                  121.21
    XLCCommunication Services13.64%                                  136.36
    XLKTechnology15.15%                                  151.52
    XLYConsumer Discretionary16.67%                                  166.67

    For this test, my focus is on the long-term performance of this investment strategy. I’ll be disregarding recent events like the fake Santa rally, new presidency, and the past two years of high returns, starting with data from December 2024 only.

    My plan is to conduct this exercise every month, investing 1,000 each time using my Demo account in Interactive Brokers broker. I’ll be sharing monthly blog updates on the progress. As for the duration of this test – I’m not sure yet, I will let the Universe decide this 🙂

    So here’s the January test investment of $1,000 into the 11 sectors:

    SymbolDate/TimeTypeQuantityPriceInvestedCommission
    XLB2025-01-23, 09:30:00BUY0.170688.78-15.15-0.15
    XLC2025-01-23, 09:30:00BUY1.382198.6572354-136.35-1
    XLE2025-01-23, 09:30:00BUY0.327392.5500092-30.29-0.3
    XLF2025-01-23, 09:30:00BUY2.100150.5009533-106.06-1
    XLI2025-01-23, 09:30:00BUY0.429141.26-60.6-0.61
    XLK2025-01-23, 09:30:00BUY0.6323239.62-151.51-1
    XLP2025-01-23, 09:30:01BUY1.572577.08-121.21-1
    XLRE2025-01-23, 09:30:00BUY1.101941.2453762-45.45-0.45
    XLU2025-01-23, 09:30:00BUY0.963478.63-75.75-0.76
    XLV2025-01-23, 09:30:00BUY0.6372142.649997-90.9-0.91
    XLY2025-01-23, 09:30:10BUY0.7251229.83-166.65-1