PortfoliosLab logoPortfoliosLab logo
TREX vs. PLTR
Performance
Return for Risk
Drawdowns
Volatility
Dividends
Financials

Performance

TREX vs. PLTR - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in Trex Company, Inc. (TREX) and Palantir Technologies Inc. (PLTR). The values are adjusted to include any dividend payments, if applicable.

Loading charts...

Returns By Period

In the year-to-date period, TREX achieves a 29.25% return, which is significantly higher than PLTR's -34.35% return.


TREX

1D
-2.28%
1M
15.72%
YTD
29.25%
6M
28.77%
1Y
-17.92%
3Y*
-9.21%
5Y*
-14.76%
10Y*
15.86%

PLTR

1D
-2.34%
1M
-14.74%
YTD
-34.35%
6M
-39.89%
1Y
-16.60%
3Y*
102.61%
5Y*
34.48%
10Y*
*Multi-year figures are annualized to reflect compound growth (CAGR)

TREX vs. PLTR - Yearly Performance Comparison


2026 (YTD)202520242023202220212020
TREX
Trex Company, Inc.
29.25%-49.18%-16.62%95.58%-68.65%61.29%18.27%
PLTR
Palantir Technologies Inc.
-34.35%135.03%340.48%167.45%-64.74%-22.68%135.50%

Correlation

The correlation between TREX and PLTR is 0.10, meaning there is essentially no relationship between their price movements. Each responds to its own set of market drivers, making them strong candidates for combining in a diversified portfolio.


Correlation
Correlation (1Y)
Calculated over the trailing 1-year period

0.10

Correlation (3Y)
Calculated over the trailing 3-year period

0.27

Correlation (5Y)
Calculated over the trailing 5-year period

0.39

Correlation (All Time)
Calculated using the full available price history since Sep 30, 2020

0.37

Over the past year, the correlation between TREX and PLTR has dropped to 0.10 - well below their long-term average of 0.37, suggesting their price drivers have been diverging.

Fundamentals

Market Cap

TREX:

$4.77B

PLTR:

$300.03B

EPS

TREX:

$1.80

PLTR:

$0.89

PE Ratio

TREX:

25.24

PLTR:

131.32

PEG Ratio

TREX:

69.39

PLTR:

0.76

PS Ratio

TREX:

4.10

PLTR:

57.35

PB Ratio

TREX:

4.79

PLTR:

35.51

Total Revenue (TTM)

TREX:

$1.18B

PLTR:

$5.22B

Gross Profit (TTM)

TREX:

$461.26M

PLTR:

$4.39B

EBITDA (TTM)

TREX:

$308.51M

PLTR:

$2.01B

Compare stocks, funds, or ETFs

Search for stocks, ETFs, and funds for a quick comparison or use the comparison tool for more options.


Return for Risk

TREX vs. PLTR — Risk / Return Rank

Compare risk-adjusted metric ranks to identify better-performing investments over the past 12 months.

TREX
TREX Risk / Return Rank: 3030
Overall Rank
TREX Sharpe Ratio Rank: 2727
Sharpe Ratio Rank
TREX Sortino Ratio Rank: 2929
Sortino Ratio Rank
TREX Omega Ratio Rank: 2828
Omega Ratio Rank
TREX Calmar Ratio Rank: 3232
Calmar Ratio Rank
TREX Martin Ratio Rank: 3434
Martin Ratio Rank

PLTR
PLTR Risk / Return Rank: 2929
Overall Rank
PLTR Sharpe Ratio Rank: 2929
Sharpe Ratio Rank
PLTR Sortino Ratio Rank: 2929
Sortino Ratio Rank
PLTR Omega Ratio Rank: 2929
Omega Ratio Rank
PLTR Calmar Ratio Rank: 3030
Calmar Ratio Rank
PLTR Martin Ratio Rank: 2828
Martin Ratio Rank
The rank (0–100) shows how this investment's returns compare to the risk taken. Higher = better. Based on the past 12 months of data, combining Sharpe, Sortino, and other metrics used by quantitative funds and institutional investors.

TREX vs. PLTR - Risk-Adjusted Trends Comparison

This table presents a comparison of risk-adjusted performance metrics for Trex Company, Inc. (TREX) and Palantir Technologies Inc. (PLTR). Risk-adjusted metrics are performance indicators that assess an investment's returns in relation to its risk, enabling a more accurate comparison of different investment options.

Values are calculated on a 1-year rolling basis and updated daily. Risk-adjusted metrics are more stable over longer periods — use the period switch above to explore them.


TREXPLTRDifference
Sharpe ratioReturn per unit of total volatility

-0.03

Sortino ratioReturn per unit of downside risk

-0.01

Omega ratioGain probability vs. loss probability

0.98

0.98

0.00

Calmar ratioReturn relative to maximum drawdown

-0.32

-0.38

+0.06

Martin ratioReturn relative to average drawdown

-0.50

-0.75

+0.25

TREX vs. PLTR - Sharpe Ratio Comparison

The current TREX Sharpe Ratio is -0.35, which is comparable to the PLTR Sharpe Ratio of -0.32. The chart below compares the historical Sharpe Ratios of TREX and PLTR, calculated using daily returns over the previous 12 months. A higher Sharpe Ratio indicates better risk-adjusted performance relative to the risk-free rate.


Loading charts...

Drawdowns

TREX vs. PLTR - Drawdown Comparison

The maximum TREX drawdown since its inception was -90.53%, which is greater than PLTR's maximum drawdown of -84.62%. Use the drawdown chart below to compare losses from any high point for TREX and PLTR.


Loading charts...

Drawdown Indicators


TREXPLTRDifference

Max Drawdown

Largest peak-to-trough decline

-90.53%

-84.62%

-5.91%

Max Drawdown (1Y)

Largest decline over 1 year

-56.01%

-43.67%

-12.34%

Max Drawdown (3Y)

Largest decline over 3 years

-69.90%

-43.67%

-26.23%

Max Drawdown (5Y)

Largest decline over 5 years

-78.58%

-79.14%

+0.56%

Max Drawdown (10Y)

Largest decline over 10 years

-78.58%

Current Drawdown

Current decline from peak

-67.77%

-43.67%

-24.10%

Average Drawdown

Average peak-to-trough decline

-38.79%

-40.26%

+1.47%

Ulcer Index

Depth and duration of drawdowns from previous peaks

35.92%

22.06%

+13.86%

Volatility

TREX vs. PLTR - Volatility Comparison

The current volatility for Trex Company, Inc. (TREX) is 14.63%, while Palantir Technologies Inc. (PLTR) has a volatility of 19.16%. This indicates that TREX experiences smaller price fluctuations and is considered to be less risky than PLTR based on this measure. The chart below showcases a comparison of their rolling one-month volatility.


Loading charts...

Volatility by Period


TREXPLTRDifference

Volatility (1M)

Calculated over the trailing 1-month period

14.63%

19.16%

-4.53%

Volatility (6M)

Calculated over the trailing 6-month period

28.72%

38.60%

-9.88%

Volatility (1Y)

Calculated over the trailing 1-year period

51.29%

51.49%

-0.20%

Volatility (5Y)

Calculated over the trailing 5-year period, annualized

47.38%

65.59%

-18.21%

Volatility (10Y)

Calculated over the trailing 10-year period, annualized

46.48%

69.73%

-23.25%

Dividends

TREX vs. PLTR - Dividend Comparison

Neither TREX nor PLTR has paid dividends to shareholders.


Tickers have no history of dividend payments

Financials

TREX vs. PLTR - Financials Comparison

This section allows you to compare key financial metrics between Trex Company, Inc. and Palantir Technologies Inc.. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.


Quarterly
Annual

Total Revenue: Total amount of money received from sales and other business activities


0.00500.00M1.00B1.50B20222023202420252026
343.40M
1.63B
(TREX) Total Revenue
(PLTR) Total Revenue
Values in USD except per share items

TREX vs. PLTR - Profitability Comparison

The chart below illustrates the profitability comparison between Trex Company, Inc. and Palantir Technologies Inc. over time, highlighting three key metrics: Gross Profit Margin, Operating Margin, and Net Profit Margin.

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

20.0%30.0%40.0%50.0%60.0%70.0%80.0%90.0%20222023202420252026
40.5%
86.8%
Portfolio components
TREX - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Trex Company, Inc. reported a gross profit of 139.02M and revenue of 343.40M. Therefore, the gross margin over that period was 40.5%.

PLTR - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Palantir Technologies Inc. reported a gross profit of 1.42B and revenue of 1.63B. Therefore, the gross margin over that period was 86.8%.

TREX - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Trex Company, Inc. reported an operating income of 83.51M and revenue of 343.40M, resulting in an operating margin of 24.3%.

PLTR - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Palantir Technologies Inc. reported an operating income of 754.00M and revenue of 1.63B, resulting in an operating margin of 46.2%.

TREX - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Trex Company, Inc. reported a net income of 61.40M and revenue of 343.40M, resulting in a net margin of 17.9%.

PLTR - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Palantir Technologies Inc. reported a net income of 870.53M and revenue of 1.63B, resulting in a net margin of 53.3%.


Frequently Asked Questions


TREX and PLTR have a correlation of 0.10, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.

PLTR has higher volatility (19.16%) compared to TREX (14.63%). In terms of maximum drawdown, TREX dropped -90.53% vs PLTR's -84.62%.

PLTR currently has the higher Sharpe Ratio (-0.32 vs -0.35), meaning it's delivered slightly more return per unit of risk over the trailing 12 months. However, this ranking shifts over time - use the Risk/Return Score above for a more comprehensive view that combines Sharpe, Sortino, and other measures used by quantitative funds.

Portfolio Optimizer

Find the right allocation for TREX and PLTR

Add both to a portfolio and optimize allocations for your target — whether that's maximizing returns, minimizing drawdowns, or balancing risk across holdings.

Open Portfolio Optimizer