Comex gold is up a solid 27.5% for the year to date, but gold mining stocks and the exchange-traded fund that tracks the sector are outperforming the precious metal.

The VanEck Vectors Gold Miners ETF (GDX) - Get Report is up 128.1% year to date and set an all-time high on Wednesday.

Barrick Gold (ABX) is the largest component of the ETF at a weighting of 10.52% and has a gain of 195% year to date.

Yamana Gold (AUY) - Get Report is a component of the gold ETF with a weighting of just 2.43%. This stock as a gain of 208.1% year to date. The stock was an "option on survival" when it traded as low as $1.38 on Jan. 19. Remember that any stock trading between $1 and $3 a share is considered at "option on survival."

Goldcorp (GG) is the third-largest component of the gold ETF with a weighting of 6.46% and has a gain of 64% year to date.

Newmont Mining (NEM) - Get Report is the second-largest component of the gold ETF with a weighting of 9.97% and this stock has a gain of 153.3% year to date and set its 2016 high of $46.02 on Wednesday.

Here's the weekly chart for Comex gold.

Image placeholder title

Courtesy of MetaStock Xenith

The weekly chart for gold is positive with the precious metal above its key weekly moving average of $1,329.6. Gold has been above its 200-week simple moving average since the week of June 24 when this average was $1,310.6. Today this average is down to $1,296.1. Weekly momentum is projected to rise to 79.93 this week up from 77.35 on August 5.

I show a quarterly value level for the third quarter of $1,072.24 with monthly and annual risky levels of $1,421.18 and $1,639.86, respectively.

Here's a scorecard for Comex gold, the gold ETF and the four gold mining stocks.

Image placeholder title

The weekly charts shown below are mixed. The red line through the weekly price bars is the key weekly moving average (a 5-week modified moving average). The green line is the 200-week simple moving average considered the "reversion to the mean." The study in red along the bottom of the chart is weekly momentum (a 12x3x3 weekly slow stochastic), which scales between 00.00 and 100.00, where readings above 80.00 indicates overbought and readings below 20.00 indicates oversold. A negative weekly chart shows the stock below its key weekly moving average with weekly momentum declining below 80.00 in a trend towards 20.00.

Here's the weekly chart for the VanEck Vectors Gold Miners ETF.

Image placeholder title

Courtesy of MetaStock Xenith

The weekly chart for the gold exchange-traded fund is positive but overbought with the ETF above its key weekly moving average of $29.12 and has been above its 200-week simple moving average since the week of June 10 with this average now $24.66. The weekly momentum reading is projected to end the week well above the overbought threshold of 80.00 with a reading of 90.20.

Investors looking to buy the gold ETF should do so on weakness to $28.08, which is the 50-day simple moving average. Investors looking to reduce holdings should sell strength to $31.70 and $32.22, which are key levels on technical charts until the end of August and the end of this week, respectively.

Here's the weekly chart for Barrick Gold.

Image placeholder title

Courtesy of MetaStock Xenith

The weekly chart for Barrick is neutral with the stock above its key weekly moving average of $20.95 and above its 200-week simple moving average of $17.11. The weekly momentum reading is projected to decline to 74.81 this week down from 74.99 on August 5.

Investors looking to buy Barrick on weakness should do so at $14.22, which is a key level on technical charts until the end of 2016. Investors looking to reduce holdings should sell strength to $25.10, which is a key level on technical charts until the end of August.

Here's the weekly chart for Yamana Gold.

Image placeholder title

Courtesy of MetaStock Xenith

The weekly chart for Yamana is positive but overbought with the stock above its key weekly moving average of $5.46. The stock is well below its 200-week simple moving average of $7.44. The weekly momentum reading is projected to be 84.50 above the overbought threshold of 80.00.

Investors looking to buy Yamana on weakness should do so at $4.87, which is a key level on technical charts until the end of 2016. Investors looking to reduce holdings should sell strength to $5.72 and $6.03, which are key levels on technical charts until the end of August and the end of this week, respectively.

Here's the weekly chart for Goldcorp.

Image placeholder title

Courtesy of MetaStock Xenith

The weekly chart for Goldcorp is neutral with the stock above its key weekly moving average of $18.40 and well below its 200-week simple moving average of $22.95. The weekly momentum reading is projected to decline to 55.08 this week down from 58.82 on August 5.

Investors looking to buy Goldcorp on weakness should do so at $18.44 and $15.38, which are the 50-day and 200-day simple moving averages, respectively. Investors looking to reduce holdings should sell strength to $20.48 and $24.09, which are key levels on technical charts until the end of August and the end of 2016, respectively.

Here's the weekly chart for Newmont Mining.

Image placeholder title

Courtesy of MetaStock Xenith

The weekly chart for Newmont is positive but overbought with the stock above its key weekly moving average of $41.46 and well above its 200-week simple moving average of $27.87. The weekly momentum reading is projected to remain well above the overbought threshold of 80.00 with a reading of 95.23.

Investors looking to buy Newmont on weakness should do so at $25.35, which is a key level on technical charts until the end of 2016. Investors looking to reduce holdings should sell strength to $44.89 and $46.38, which are key levels on technical charts until the end of August and the end of this week, respectively.

This article is commentary by an independent contributor. At the time of publication, the author held no positions in the stocks mentioned.