XAUUSD Historical Data: Gold Price OHLC Data Download

3,884.40 −0.02%

XAUUSD close · daily

Nov 3Feb 6May 12Aug 13Nov 13
260 rows
DateOpenHighLowCloseChange (pips)Change (%)
Nov 13, 20263,883.303,927.203,871.103,886.3030.0+0.08%
Nov 12, 20263,994.004,005.903,856.703,885.30-1,087.0−2.72%
Nov 11, 20264,043.704,074.703,989.604,000.50-432.0−1.07%
Nov 10, 20264,149.004,156.204,020.804,030.20-1,188.0−2.86%
Nov 9, 20264,074.304,157.704,062.504,114.50402.0+0.99%
Nov 6, 20264,098.504,116.204,035.104,074.90-236.0−0.58%
Nov 5, 20264,075.404,155.804,067.004,113.50381.0+0.93%
Nov 4, 20263,940.804,081.203,928.204,073.001,322.0+3.35%
Nov 3, 20263,960.503,981.703,904.103,940.40-201.0−0.51%
Nov 2, 20263,890.003,980.803,889.003,969.60796.0+2.05%
Oct 30, 20264,033.604,038.203,879.303,898.90-1,347.0−3.34%
Oct 29, 20264,081.404,081.704,016.304,031.40-500.0−1.23%
Oct 28, 20264,073.604,097.204,036.904,051.60-220.0−0.54%
Oct 27, 20264,032.804,079.404,001.604,074.60418.0+1.04%
Oct 26, 20264,012.204,044.003,990.904,038.40262.0+0.65%
Oct 23, 20264,042.204,050.203,989.104,007.90-343.0−0.85%
Oct 22, 20264,159.004,164.304,036.804,060.40-986.0−2.37%
Oct 21, 20264,143.404,160.604,122.304,150.0066.0+0.16%
Oct 20, 20264,162.404,174.904,130.104,142.60-198.0−0.48%
Oct 19, 20264,185.004,211.204,155.604,160.10-249.0−0.59%
Oct 16, 20264,192.104,220.404,167.504,181.10-110.0−0.26%
Oct 15, 20264,128.304,197.704,120.904,170.10418.0+1.01%
Oct 14, 20264,184.204,193.504,095.004,107.90-763.0−1.82%
Oct 13, 20264,195.504,224.804,169.704,177.30-182.0−0.43%
Oct 12, 20264,220.804,242.304,178.104,190.60-302.0−0.72%
Oct 9, 20264,159.704,233.704,156.104,216.30566.0+1.36%
Oct 8, 20264,139.904,170.704,128.104,157.00171.0+0.41%
Oct 7, 20264,195.004,197.804,091.204,140.70-543.0−1.29%
Oct 6, 20264,169.204,212.404,130.704,187.10179.0+0.43%
Oct 5, 20264,169.404,198.904,150.404,156.80-126.0−0.30%
Oct 2, 20264,204.604,259.004,153.804,162.30-423.0−1.01%
Oct 1, 20264,190.104,222.804,169.404,202.30122.0+0.29%
Sep 30, 20264,216.204,251.104,178.204,186.70-295.0−0.70%
Sep 29, 20264,150.104,218.104,145.204,179.70296.0+0.71%
Sep 28, 20264,315.004,315.604,143.104,168.40-1,466.0−3.40%
Sep 25, 20264,309.504,351.604,289.204,321.20117.0+0.27%
Sep 24, 20264,324.404,338.004,278.304,298.00-264.0−0.61%
Sep 23, 20264,394.704,407.504,310.704,318.40-763.0−1.74%
Sep 22, 20264,382.504,414.104,327.604,376.40-61.0−0.14%
Sep 21, 20264,413.004,422.104,360.304,383.90-291.0−0.66%
Sep 18, 20264,381.604,439.804,372.204,424.90433.0+0.99%
Sep 17, 20264,301.404,423.304,294.504,399.70983.0+2.29%
Sep 16, 20264,333.504,413.104,273.304,387.50540.0+1.25%
Sep 15, 20264,340.304,358.204,301.604,332.80-75.0−0.17%
Sep 14, 20264,375.004,396.804,293.004,351.90-231.0−0.53%
Sep 11, 20264,359.404,444.904,333.004,408.90495.0+1.14%
Sep 10, 20264,448.004,479.904,354.704,407.30-407.0−0.92%
Sep 9, 20264,399.004,479.004,384.104,460.70617.0+1.40%
Sep 8, 20264,466.504,488.804,381.004,439.00-275.0−0.62%
Sep 4, 20264,522.004,537.804,412.004,476.60-454.0−1.00%
Sep 3, 20264,436.404,558.504,426.704,539.901,035.0+2.33%
Sep 2, 20264,377.204,444.404,329.204,414.60374.0+0.85%
Sep 1, 20264,498.704,510.504,369.704,396.40-1,023.0−2.27%
Aug 31, 20264,483.204,521.504,445.604,481.50-17.0−0.04%
Aug 28, 20264,656.004,688.004,495.004,529.90-1,261.0−2.71%
Aug 27, 20264,650.004,697.704,616.004,664.00140.0+0.30%
Aug 26, 20264,715.704,730.904,638.204,653.30-624.0−1.32%
Aug 25, 20264,710.104,755.004,659.504,694.50-156.0−0.33%
Aug 24, 20264,673.404,738.504,651.804,697.80244.0+0.52%
Aug 21, 20264,577.004,690.404,565.504,680.601,036.0+2.26%
Aug 20, 20264,580.004,597.104,506.004,571.40-86.0−0.19%
Aug 19, 20264,391.404,582.804,378.004,545.301,539.0+3.50%
Aug 18, 20264,473.404,493.104,383.304,420.60-528.0−1.18%
Aug 17, 20264,440.004,486.504,422.304,473.70337.0+0.76%
Aug 14, 20264,408.204,454.604,365.504,437.30291.0+0.66%
Aug 13, 20264,468.804,509.104,400.004,420.40-484.0−1.08%
Aug 12, 20264,430.004,502.704,421.404,467.50375.0+0.85%
Aug 11, 20264,446.904,495.004,415.704,441.10-58.0−0.13%
Aug 10, 20264,400.004,453.804,373.904,419.70197.0+0.45%
Aug 7, 20264,298.304,432.304,288.004,399.701,014.0+2.36%
Aug 6, 20264,307.004,363.704,281.204,299.60-74.0−0.17%
Aug 5, 20264,133.804,328.204,121.604,305.201,714.0+4.15%
Aug 4, 20264,109.604,163.804,098.204,152.60430.0+1.05%
Aug 3, 20264,135.204,145.504,074.004,090.50-447.0−1.08%
Jul 31, 20264,163.904,170.704,076.404,107.00-569.0−1.37%
Jul 30, 20264,060.704,118.504,028.504,100.10394.0+0.97%
Jul 29, 20264,020.904,115.203,993.804,036.30154.0+0.38%
Jul 28, 20264,083.004,085.704,011.104,038.70-443.0−1.08%
Jul 27, 20264,097.504,119.304,067.104,077.00-205.0−0.50%
Jul 24, 20264,053.404,085.204,024.004,070.80174.0+0.43%
Jul 23, 20264,126.004,144.004,042.504,050.20-758.0−1.84%
Jul 22, 20264,084.704,171.404,081.004,151.90672.0+1.65%
Jul 21, 20264,013.404,092.504,003.304,076.40630.0+1.57%
Jul 20, 20264,005.604,046.003,986.504,015.90103.0+0.26%
Jul 17, 20263,980.104,028.903,963.004,018.80387.0+0.97%
Jul 16, 20264,068.904,071.903,973.403,992.10-768.0−1.89%
Jul 15, 20264,059.804,089.104,023.304,051.80-80.0−0.20%
Jul 14, 20264,005.904,112.503,990.404,069.70638.0+1.59%
Jul 13, 20264,106.604,111.603,992.904,005.70-1,009.0−2.46%
Jul 10, 20264,135.404,144.604,081.704,113.70-217.0−0.52%
Jul 9, 20264,087.604,148.404,063.404,140.80532.0+1.30%
Jul 8, 20264,106.504,144.704,032.504,082.40-241.0−0.59%
Jul 7, 20264,176.404,192.404,102.704,157.40-190.0−0.45%
Jul 6, 20264,187.504,215.504,140.604,167.50-200.0−0.48%
Jul 2, 20264,049.204,157.104,042.804,125.70765.0+1.89%
Jul 1, 20264,025.004,131.003,973.004,082.40574.0+1.43%
Jun 30, 20264,032.504,078.103,955.404,038.5060.0+0.15%
Jun 29, 20264,101.104,102.904,012.004,038.90-622.0−1.52%
Jun 26, 20264,044.404,111.503,998.104,096.30519.0+1.28%
Jun 25, 20264,019.004,060.003,976.304,047.60286.0+0.71%
Jun 24, 20264,130.004,132.403,975.704,008.80-1,212.0−2.93%
Jun 23, 20264,210.804,216.004,108.204,149.40-614.0−1.46%
Jun 22, 20264,163.904,238.104,151.404,202.70388.0+0.93%
Jun 18, 20264,275.104,350.204,220.304,245.90-292.0−0.68%
Jun 17, 20264,352.604,403.604,237.404,381.40288.0+0.66%
Jun 16, 20264,331.304,376.504,326.704,354.40231.0+0.53%
Jun 15, 20264,289.404,391.504,283.404,351.60622.0+1.45%
Jun 12, 20264,234.904,267.804,191.104,238.8039.0+0.09%
Jun 11, 20264,094.404,241.304,046.204,114.00196.0+0.48%
Jun 10, 20264,276.104,281.104,090.104,133.30-1,428.0−3.34%
Jun 9, 20264,354.704,388.604,259.904,286.40-683.0−1.57%
Jun 8, 20264,354.004,377.504,293.004,363.4094.0+0.22%
Jun 5, 20264,503.004,508.704,336.604,365.30-1,377.0−3.06%
Jun 4, 20264,462.604,543.204,450.104,505.00424.0+0.95%
Jun 3, 20264,520.004,525.104,454.004,466.90-531.0−1.17%
Jun 2, 20264,515.804,571.304,492.304,519.9041.0+0.09%
Jun 1, 20264,575.204,577.304,476.004,506.30-689.0−1.51%
May 29, 20264,527.604,627.104,519.504,593.00654.0+1.44%
May 28, 20264,453.604,512.604,363.504,499.30457.0+1.03%
May 27, 20264,507.404,528.104,398.504,448.40-590.0−1.31%
May 26, 20264,532.004,583.304,480.004,502.30-297.0−0.66%
May 22, 20264,544.204,547.004,488.004,523.20-210.0−0.46%
May 21, 20264,548.004,572.404,488.304,542.50-55.0−0.12%
May 20, 20264,486.604,558.404,455.004,535.30487.0+1.09%
May 19, 20264,570.604,593.204,467.104,511.20-594.0−1.30%
May 18, 20264,547.604,588.604,483.504,558.00104.0+0.23%
May 15, 20264,654.504,670.104,513.804,561.90-926.0−1.99%
May 14, 20264,696.804,725.804,649.304,685.30-115.0−0.24%
May 13, 20264,722.304,734.804,676.004,706.70-156.0−0.33%
May 12, 20264,745.304,783.404,645.204,686.70-586.0−1.23%
May 11, 20264,690.004,758.404,655.104,728.70387.0+0.83%
May 8, 20264,682.504,760.404,671.004,730.70482.0+1.03%
May 7, 20264,702.204,775.204,693.304,710.9087.0+0.19%
May 6, 20264,569.304,734.604,556.104,694.301,250.0+2.74%
May 5, 20264,534.004,597.504,522.704,568.50345.0+0.76%
May 4, 20264,644.004,650.604,510.104,533.30-1,107.0−2.38%
May 1, 20264,636.904,673.004,570.004,644.5076.0+0.16%
Apr 30, 20264,557.004,658.804,550.804,629.60726.0+1.59%
Apr 29, 20264,611.404,624.304,522.204,561.50-499.0−1.08%
Apr 28, 20264,697.504,716.504,567.604,608.40-891.0−1.90%
Apr 27, 20264,713.104,745.804,681.204,693.70-194.0−0.41%
Apr 24, 20264,715.604,757.104,672.204,740.90253.0+0.54%
Apr 23, 20264,759.204,771.304,680.104,724.00-352.0−0.74%
Apr 22, 20264,738.704,790.804,733.104,753.00143.0+0.30%
Apr 21, 20264,842.404,854.804,685.804,719.60-1,228.0−2.54%
Apr 20, 20264,811.804,847.904,752.004,828.80170.0+0.35%
Apr 17, 20264,811.804,917.704,785.904,879.60678.0+1.41%
Apr 16, 20264,813.604,861.304,792.104,808.30-53.0−0.11%
Apr 15, 20264,862.704,895.404,807.904,823.60-391.0−0.80%
Apr 14, 20264,769.304,870.304,767.604,850.10808.0+1.69%
Apr 13, 20264,710.004,774.404,626.004,767.40574.0+1.22%
Apr 10, 20264,790.504,820.004,752.704,787.40-31.0−0.06%
Apr 9, 20264,744.804,826.004,718.604,818.00732.0+1.54%
Apr 8, 20264,747.204,888.004,720.604,777.20300.0+0.63%
Apr 7, 20264,678.604,745.704,631.904,684.7061.0+0.13%
Apr 6, 20264,675.004,733.104,626.204,684.7097.0+0.21%
Apr 2, 20264,783.004,825.904,580.404,679.70-1,033.0−2.16%
Apr 1, 20264,698.404,821.004,690.004,813.101,147.0+2.44%
Mar 31, 20264,510.004,684.104,508.604,647.601,376.0+3.05%
Mar 30, 20264,482.804,579.104,413.404,526.00432.0+0.96%
Mar 27, 20264,371.804,552.104,369.104,492.501,207.0+2.76%
Mar 26, 20264,508.904,541.604,348.204,376.30-1,326.0−2.94%
Mar 25, 20264,473.504,601.004,458.204,552.30788.0+1.76%
Mar 24, 20264,414.804,485.604,306.304,402.00-128.0−0.29%
Mar 23, 20264,450.004,537.104,100.004,407.30-427.0−0.96%
Mar 20, 20264,653.904,738.204,478.404,574.90-790.0−1.70%
Mar 19, 20264,828.004,868.704,505.004,605.70-2,223.0−4.60%
Mar 18, 20265,010.605,022.004,809.304,896.20-1,144.0−2.28%
Mar 17, 20265,012.205,049.404,977.005,008.20-40.0−0.08%
Mar 16, 20265,010.005,044.504,970.105,002.20-78.0−0.16%
Mar 13, 20265,084.005,132.405,014.105,061.70-223.0−0.44%
Mar 12, 20265,185.405,197.805,058.205,125.80-596.0−1.15%
Mar 11, 20265,194.005,230.905,155.905,179.10-149.0−0.29%
Mar 10, 20265,152.405,248.705,127.105,242.10897.0+1.74%
Mar 9, 20265,186.705,210.405,021.205,103.70-830.0−1.60%
Mar 6, 20265,099.705,185.005,071.005,158.70590.0+1.16%
Mar 5, 20265,155.705,204.305,058.905,078.70-770.0−1.49%
Mar 4, 20265,110.005,218.305,092.805,134.70247.0+0.48%
Mar 3, 20265,335.705,394.205,005.005,123.70-2,120.0−3.97%
Mar 2, 20265,360.005,434.105,272.905,311.60-484.0−0.90%
Feb 27, 20265,201.905,299.005,182.905,247.90460.0+0.88%
Feb 26, 20265,175.305,221.905,144.805,194.20189.0+0.37%
Feb 25, 20265,160.005,237.305,135.905,226.20662.0+1.28%
Feb 24, 20265,247.505,269.405,109.505,176.30-712.0−1.36%
Feb 23, 20265,128.805,257.305,120.405,225.60968.0+1.89%
Feb 20, 20265,015.005,131.004,999.305,080.90659.0+1.31%
Feb 19, 20264,993.705,042.804,971.504,997.4037.0+0.07%
Feb 18, 20264,898.505,031.904,868.505,009.501,110.0+2.27%
Feb 17, 20265,050.005,074.404,854.204,905.90-1,441.0−2.85%
Feb 13, 20264,950.005,069.104,907.105,046.30963.0+1.95%
Feb 12, 20265,107.305,122.804,900.004,948.40-1,589.0−3.11%
Feb 11, 20265,048.005,144.505,036.305,098.50505.0+1.00%
Feb 10, 20265,084.305,102.705,011.005,031.00-533.0−1.05%
Feb 9, 20265,003.605,111.104,988.605,079.40758.0+1.51%
Feb 6, 20264,800.004,995.604,670.004,979.801,798.0+3.75%
Feb 5, 20264,986.605,045.004,779.604,889.50-971.0−1.95%
Feb 4, 20264,966.105,113.904,867.704,950.80-153.0−0.31%
Feb 3, 20264,691.005,018.104,690.204,935.002,440.0+5.20%
Feb 2, 20264,816.004,905.604,423.204,652.60-1,634.0−3.39%
Jan 30, 20265,410.005,480.204,700.404,745.10-6,649.0−12.29%
Jan 29, 20265,415.705,586.205,097.505,318.40-973.0−1.80%
Jan 28, 20265,179.005,415.205,154.805,303.601,246.0+2.41%
Jan 27, 20265,005.505,190.805,004.505,082.60771.0+1.54%
Jan 26, 20265,013.405,107.904,983.605,082.50691.0+1.38%
Jan 23, 20264,940.004,991.404,901.204,979.70397.0+0.80%
Jan 22, 20264,836.204,944.304,772.704,913.40772.0+1.60%
Jan 21, 20264,767.504,891.104,757.104,837.50700.0+1.47%
Jan 20, 20264,633.704,771.504,622.204,765.801,321.0+2.85%
Jan 16, 20264,621.604,625.504,539.104,595.40-262.0−0.57%
Jan 15, 20264,635.704,637.204,584.004,623.70-120.0−0.26%
Jan 14, 20264,594.304,650.504,594.304,635.70414.0+0.90%
Jan 13, 20264,610.004,644.004,576.704,599.10-109.0−0.24%
Jan 12, 20264,529.104,640.504,520.804,614.70856.0+1.89%
Jan 9, 20264,489.304,527.004,461.804,500.90116.0+0.26%
Jan 8, 20264,467.104,489.304,415.004,460.70-64.0−0.14%
Jan 7, 20264,505.404,512.404,432.904,462.50-429.0−0.95%
Jan 6, 20264,459.804,508.304,437.904,496.10363.0+0.81%
Jan 5, 20264,368.304,467.604,354.604,451.50832.0+1.90%
Jan 2, 20264,340.004,414.804,319.704,329.60-104.0−0.24%
Dec 31, 20254,353.004,384.904,284.304,341.10-119.0−0.27%
Dec 30, 20254,350.304,420.504,338.804,386.30360.0+0.83%
Dec 29, 20254,568.004,581.304,316.004,343.60-2,244.0−4.91%
Dec 26, 20254,523.504,584.004,518.004,552.70292.0+0.65%
Dec 24, 20254,516.704,555.104,474.304,502.80-139.0−0.31%
Dec 23, 20254,481.804,530.804,457.704,505.70239.0+0.53%
Dec 22, 20254,369.904,484.504,367.904,469.40995.0+2.28%
Dec 19, 20254,363.604,389.004,336.304,387.30237.0+0.54%
Dec 18, 20254,371.504,409.504,338.004,364.50-70.0−0.16%
Dec 17, 20254,333.504,383.604,330.704,373.90404.0+0.93%
Dec 16, 20254,334.304,367.904,297.404,332.30-20.0−0.05%
Dec 15, 20254,330.004,384.304,315.904,335.2052.0+0.12%
Dec 12, 20254,309.104,387.804,286.004,328.30192.0+0.45%
Dec 11, 20254,258.304,317.304,231.204,313.00547.0+1.28%
Dec 10, 20254,237.504,268.804,207.804,224.70-128.0−0.30%
Dec 9, 20254,219.604,251.704,197.804,236.20166.0+0.39%
Dec 8, 20254,228.104,247.904,204.004,217.70-104.0−0.25%
Dec 5, 20254,239.504,290.504,221.404,243.0035.0+0.08%
Dec 4, 20254,234.504,251.104,203.304,243.0085.0+0.20%
Dec 3, 20254,241.604,273.304,225.104,232.50-91.0−0.21%
Dec 2, 20254,265.304,269.204,194.004,220.80-445.0−1.04%
Dec 1, 20254,258.504,299.604,241.104,274.80163.0+0.38%
Nov 28, 20254,198.604,263.104,174.604,254.90563.0+1.34%
Nov 26, 20254,128.604,171.004,127.504,165.20366.0+0.89%
Nov 25, 20254,133.504,156.304,106.704,140.0065.0+0.16%
Nov 24, 20254,069.204,138.204,036.404,094.20250.0+0.61%
Nov 21, 20254,074.904,101.004,018.104,079.5046.0+0.11%
Nov 20, 20254,079.904,109.604,034.004,060.00-199.0−0.49%
Nov 19, 20254,067.804,134.304,055.604,082.80150.0+0.37%
Nov 18, 20254,045.604,083.703,997.404,066.50209.0+0.52%
Nov 17, 20254,084.404,107.604,006.804,074.50-99.0−0.24%
Nov 14, 20254,174.904,215.104,032.604,094.20-807.0−1.93%
Nov 13, 20254,202.404,250.004,148.504,194.50-79.0−0.19%
Nov 12, 20254,132.204,218.504,104.404,213.60814.0+1.97%
Nov 11, 20254,124.004,155.004,102.804,116.30-77.0−0.19%
Nov 10, 20254,007.204,124.004,004.204,122.001,148.0+2.86%
Nov 7, 20253,986.904,035.803,981.604,009.80229.0+0.57%
Nov 6, 20253,992.404,028.703,973.203,991.00-14.0−0.04%
Nov 5, 20253,939.504,000.703,935.703,992.90534.0+1.36%
Nov 4, 20254,013.704,018.003,937.103,960.50-532.0−1.33%
Nov 3, 20254,001.004,043.103,971.304,014.00130.0+0.32%

XAUUSD historical data records the price of one troy ounce of gold in US dollars as a series of bars, each with an open, high, low and close (OHLC), on four time frames (hourly, daily, weekly and monthly), each downloadable as CSV. Both “Change” columns compare a bar’s close with that same bar’s open, not with the previous bar’s close. That choice changes daily return figures, volatility estimates and any strategy test built on them.

What each row measures

XAU is the ISO 4217 code for one troy ounce of gold, which weighs 31.1035 grams. XAU is the base and USD is the quote, so a reading of 2,000.00 means one ounce costs 2,000 US dollars.

Each row in the tables is one bar:

Column What it records
Date The label of the bar: a date and hour for hourly bars, a date for daily, weekly and monthly bars
Open The first price of the period
High The highest price reached during the period
Low The lowest price reached during the period
Close The last price of the period
Change (pips) Close minus Open, expressed in pips of 0.10 dollars
Change (%) Close minus Open, divided by Open

The high and low tell you how far price traveled. The open and close tell you where it started and finished. A bar with a wide high-to-low range and a close near its open describes a period when gold moved a lot and went nowhere. A narrow bar that closes near its high describes a quiet, one-directional period.

How the change columns are calculated

The figures in the tables reconcile to these formulas:

  • Change (pips) = (Close − Open) ÷ 0.10
  • Change (%) = (Close − Open) ÷ Open × 100

So a pip in this dataset is ten cents per ounce, and a one-dollar move equals 10 pips. Some brokers define a gold pip as 0.01 instead, so the same move can appear as 100 pips in one place and 1,000 in another. When sizing a position, match your broker’s pip definition; a pip calculator for XAUUSD handles the conversion.

Open-to-close versus close-to-close

Most published “daily change” figures, including the headline change on a live quote, compare the current price with the previous close. The tables here compare close with open of the same bar. The two numbers differ whenever a bar opens at a different level from the prior close, which happens regularly after weekends and after the daily trading break.

Hypothetical example (not market data):

  • Previous daily close: 2,010.00
  • Today: Open 2,000.00, High 2,030.00, Low 1,985.00, Close 2,020.00
Measure Calculation Result
Change in the table (open to close) (2,020.00 − 2,000.00) ÷ 0.10 +200 pips, +1.00%
Close-to-close change (2,020.00 − 2,010.00) ÷ 0.10 +100 pips, +0.50%
Bar range (high to low) (2,030.00 − 1,985.00) ÷ 0.10 450 pips

The table would show gold up 1.00% for the day, while the change from yesterday’s close is half that. Summing the open-to-close percentages across many bars will not reproduce the overall change in price, because every gap between one bar’s close and the next bar’s open drops out of the total. For returns over a period, use closes: (Close at end ÷ Close at start) − 1.

Time frames and how bars are built

Spot gold trades over the counter almost around the clock from Sunday evening to Friday evening (US time), with a short daily break. The way a data provider cuts that continuous stream into periods decides what each bar contains.

Hourly bars each cover sixty minutes. The hourly table includes a row from Sunday evening, when trading reopens after the weekend, and none for the closed hours of Saturday. The newest row may still be forming: a bar where open, high, low and close are identical usually means the hour has just started and only one price has been recorded. Treat the latest row of any time frame as provisional until its period ends.

Daily bars appear only for weekdays. Sunday evening trading is folded into Monday’s bar: the low of the Monday daily bar matches the low of the Sunday evening hourly bar that preceded it. If you build your own daily bars from hourly data using midnight-to-midnight calendar days, you will get a different Monday and a stray Sunday bar, so your OHLC will not match these.

Weekly bars are labeled with the first trading day of the week, normally a Monday. When Monday is a US holiday, the label can fall on Tuesday. Monthly bars are labeled with the first trading day of the month, which is why a month can carry the date of the 2nd or 3rd.

In the downloads, 120 hourly rows cover roughly one trading week, 260 daily rows about a year of weekdays, 156 weekly rows about three years, and 60 monthly rows five years.

Gaps between bars

The open of a bar does not have to equal the close of the bar before it. A gap appears when price moves while the market is closed (over the weekend or during the daily break) or when the provider’s first recorded quote of a new period differs from its last quote of the previous one. Weekend gaps in gold can be large after geopolitical news. A stop-loss order placed inside a gap fills at the first available price when trading resumes, not at the stop level, and historical bars will not show you that fill.

Working with the CSV file

The downloaded file contains the same seven columns as the on-screen table. To use it in Excel, Google Sheets or a scripting language:

  1. Sort by date ascending. The tables list the newest bar first. Most calculations and charting tools expect the oldest bar first.
  2. Check number formatting. Prices use a comma as the thousands separator. Spreadsheets set to a European locale may read the comma as a decimal mark, turning 2,000.00 into 2.00. Import with the separator set explicitly, or strip the commas.
  3. Recompute what you need. Keep the change columns for reference, but calculate your own close-to-close returns if you want daily performance.

Useful derived columns:

  • Simple return: Closeₜ ÷ Closeₜ₋₁ − 1
  • Log return: ln(Closeₜ ÷ Closeₜ₋₁). Log returns add up across periods, which makes them convenient for volatility work.
  • True range: the largest of (High − Low), |High − previous Close| and |Low − previous Close|. Unlike the plain high-low range, it captures gaps.
  • Average true range (ATR): an average of true range over a set number of bars, commonly 14. ATR in dollars, divided by your pip size, gives a typical move in pips for sizing stops.
  • Realized volatility: the standard deviation of daily log returns, multiplied by the square root of the number of trading days in a year (about 252 is the usual convention) to annualize it.

Backtesting with historical OHLC

OHLC bars are a summary. They tell you the high and low of a period, not the order in which they occurred. If a backtest places both a stop and a target inside the same bar, the bar alone cannot say which was hit first, and testers that assume the favorable one overstate results. Testing on a shorter time frame than the strategy trades reduces this problem.

A few further adjustments make a test closer to live trading:

  • Costs. Historical prices typically reflect a single quote, not the separate bid and ask your broker charges. Subtract the spread and any commission from every trade.
  • Contract size. Many brokers define one standard gold lot as 100 ounces, which would make a one-dollar move worth 100 dollars per lot. Contract specifications vary, so use your broker’s figure. A position size calculator converts a stop distance and risk amount into lots.
  • Overnight financing. Positions held past the daily rollover accrue swap charges or credits; add these to each trade’s result.

The file has no volume column, and because spot gold trades over the counter there is no single consolidated volume figure; the “volume” in broker platforms is tick volume, a count of price updates on that broker’s feed.

Minute-level data

Five-minute and one-minute bars for XAUUSD come mainly from trading platforms and broker servers. MetaTrader 5, for example, lets you request bar history for a symbol from your broker and export it to CSV, and that history will follow your broker’s prices, session times and server time zone. Futures exchanges also sell intraday data for gold futures, which trade at a different price from spot because the contract includes carrying costs to its delivery date. Whichever source you use, keep it consistent between backtesting and live trading.

Why XAUUSD prices differ between sources

Two datasets of “gold price history” rarely match to the cent. The usual reasons are:

  • Instrument. Spot gold, the nearest gold futures contract and the twice-daily LBMA benchmark price are different prices.
  • Quote type. A file may record bid, ask, mid or last-traded prices.
  • Session cut. One provider closes the day at New York 5 p.m., another at midnight UTC, another at the broker’s server time. Each produces different daily highs, lows and closes from the same underlying trades.
  • Time zone of timestamps. An hourly bar labeled 14:00 in one file can be 09:00 in another.

The data comes from Yahoo Finance, with update times in UTC. Small differences from broker data in highs, lows and daily closes are expected for these reasons and do not by themselves indicate a bad feed.

What moves gold against the dollar

Gold pays no interest or dividend, so its price responds to the return available on alternatives and to the value of the currency it is quoted in. The main drivers are:

  • Real interest rates. When US yields after inflation rise, holding a non-yielding asset costs more in forgone income, and gold has tended to come under pressure. Falling real yields work the other way.
  • The US dollar. Because gold is priced in dollars, a stronger dollar makes it more expensive for buyers using other currencies. The relationship is not fixed, and it can be checked against other markets on the XAUUSD correlation page.
  • Federal Reserve policy and US data. Rate decisions, Fed speeches, inflation (CPI) and employment releases change rate expectations and often produce the widest hourly bars in the data.
  • Risk and geopolitics. Wars, financial stress and political shocks have historically drawn buyers looking for an asset outside the banking system.
  • Physical demand. Central bank reserve purchases, jewelry demand and investment in bars, coins and exchange-traded funds add or remove buying over longer horizons.

On a chart these drivers show up differently by time frame. A data release appears as one wide hourly bar; a shift in rate expectations appears as a run of monthly bars in one direction.

A brief history of the gold price

Free-market price history starts in August 1971, when President Nixon suspended the dollar’s convertibility into gold at a fixed 35 dollars per ounce. Since then gold has climbed to about 850 dollars in January 1980, bottomed near 250 dollars around 1999 to 2001, reached around 1,900 dollars in 2011, fallen below 1,100 by late 2015 and first crossed 2,000 dollars in 2020. Long-run statistics on gold therefore depend heavily on the window chosen: a study that starts in 1980 and one that starts in 2001 will reach opposite conclusions about the same instrument.

Updated Nov 13, 2026 · 14:00 UTCSource: Yahoo Finance5 min

About this page

Written by Forex & Brokers Desk

The Forex & Brokers Desk covers forex and CFD broker reviews, regulation checks, trading guides and the forex glossary.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.