Gold is one of the most attractive commodities and popular investments. Investment experts often recommend investing in gold because gold is one of the safest investments. It is a stable classic hedge, although the conditions of currency volatility or global markets are depreciated. However, the gold price fluctuations can be influenced by some other factors, such as the USD Index, which reflect and measure the strength of the US Dollar currency, and the Index of Dow Jones Industrial Average (DJIA) or a reflection of the political and economic conditions of the stock market. In this study, we conduct a global gold price forecast (USD) based on the USD Index, the DJIA Index, and the influence of time trends. Based on the data's characteristics, we face the fact that the data is nonlinear, contains outliers, and its pattern is not easy to specify parametrically. Due to the complexity of the model, we then propose a more flexible, robust modeling technique called the Bayesian Nonparametric Quantile Generalized Additive Model method. According to the results for the median case, the proposed method shows an accurate forecasting category due to the value of the Mean Absolute Percentage Error, MAPE less than 10 percent.