OPEN-SOURCE SCRIPT
Strong Gold NN Forecast | ProjectSyndicate

Strong Gold NN Forecast turns the last five days of Gold into a single question, answered by a genuine neural network: where are today's HIGH and LOW most likely to land? Instead of a restyled oscillator, it runs a real multi-layer perceptron — trained offline on XAUUSD daily history, its weights baked into the script — and performs the forward pass live on your chart. Every new daily candle, it reads only completed bars, locks a forecast for that day's High, Low and Close at the open, and never moves it again. The whole network is drawn on the chart as an inspectable diagram — input, three hidden layers, output — with every node lit by its live activation and every connection weighted by the signal flowing through it. And every forecast that resolves is scored on a live accuracy panel against a naïve baseline — hits and misses alike — so you judge it on the instrument you trade, not on a number typed into a description.
🧠 Neural Core — the model is a 6·6·6·6·3 multi-layer perceptron: six inputs, three hidden layers of six tanh neurons, and three linear outputs, for 147 trained weights and biases. Its lifecycle each bar is FEATURE ▸ NORMALISE ▸ FORWARD ▸ RECONSTRUCT. The network was trained by backpropagation offline on XAUUSD daily data; the learned weight matrices are embedded directly in the script and the on-chart forward pass — weighted sums, biases, and tanh activations, layer by layer — reproduces the trained model exactly. Nothing is trained on your chart, so the mapping is fixed and deterministic.
🔢 Feature Anatomy — the fingerprint is six percentage-based ingredients, all derived from the last five completed days of OHLC plus RSI: 5-day momentum (mean daily return), range position (where the last close sits inside the 5-day high-low range), RSI(14) centred at 50, the 5-day average daily range %, the 5-day average candle body %, and a short-vs-medium momentum acceleration. Working in percentage space rather than raw price is what lets a model learn from a market that ran from the 2,600s into the 4,000s without the price level itself dominating the signal.
🧊 Frozen at the Open — this indicator does not repaint. Every input is read from candles that have already closed, and the forecast is anchored to the last completed close. That means the projected High, Low and Close for the current day are computed once when the candle opens and stay fixed until it closes — no sliding lines, no intrabar drift, no numbers that quietly improve as the session plays out.
🧭 No-Lookahead Normalisation — the part most on-chart ML gets wrong. Each feature is standardised against a causal rolling window of past bars only, computed live and identically to training. No future statistic ever touches a historical prediction: the forecast printed on any past bar is identical whether or not the bars after it exist. This is verified, not assumed.
📐 Volatility-Normalised Targets — the network does not predict raw High% and Low%; it predicts each excursion in units of the recent daily range, which the script measures live. The output is then rebuilt into a four-digit Gold price. Because the size of the move is expressed relative to current volatility, the same learned shape adapts automatically as the market shifts between calm and violent regimes instead of freezing the behaviour of the period it was trained on.
🕸️ Live Network Map — the model is not a black box. The full network is drawn to the right of price: an input column labelled with each feature, three hidden columns, and an output column carrying the four-digit High, Low and Close. Every node is shaded by its live activation and every connection is coloured by weight sign and brightened by the signal passing through it, so you can watch which inputs and pathways are actually driving today's forecast.
📊 Live Accuracy Panel — a compact dashboard reports, in real time: the setup and anchor close, the frozen High/Low/Close forecast with its implied % move and range, each input as a live z-score, and a running mean absolute error of the High and Low forecasts measured against the actual bars — shown next to the error of a naïve recent-range baseline. Every resolved forecast is counted, winners and misses in full, so the number is built live on your symbol and timeframe rather than advertised in advance.
🎚️ Controls — the map's size, horizontal position, column spacing, connection glow, node values and connection drawing are all adjustable, as are the forecast projection length, the shaded High-Low range, the historical prediction track, line width, two themes, and the dashboard's position and size. None of these change the model — they change how you read it.
🎯 Why this is different — most "AI" indicators restyle an oscillator and call the top; most that claim a neural network never show one. This runs an actual trained MLP, draws it live, normalises its inputs causally so there is no lookahead, freezes each forecast at the open so it cannot repaint, and reports an honest error tracked against a baseline instead of a marketing figure. You can see the network, see the inputs, and see how it has actually done on your chart.
🚀 Where to use it — the model was trained specifically on XAUUSD on the Daily timeframe, and that is where it is designed to run; the dashboard flags the setup when the symbol or timeframe differs. The first bars of any chart are a warm-up while the causal normalisation window fills, after which the forecast and the live accuracy panel come alive.
🎯 How to trade it
1 Apply it to XAUUSD on the Daily chart and let the causal window warm up until the dashboard reads a live forecast and the accuracy panel starts counting.
2 At each new daily candle, read the frozen High / Low / Close forecast and the shaded projected range — it is locked at the open and will not move.
3 Check the Live Accuracy panel: the High and Low mean-absolute-error against the naïve baseline tells you, on your own data, whether the model is adding anything right now.
4 Use the projected High and Low as context for where the session may stretch to — a reference for targets, fades, and stop placement — not as an automatic entry.
5 Combine the forecast with your own structure, levels, and risk management. It describes a likely daily envelope; it is not an entry-and-exit system on its own.
⚠️ Important — this is a decision-support tool, not a standalone buy/sell system, and it makes no performance guarantees. It is a fixed, pre-trained model: the weights were learned once on XAUUSD daily history and do not adapt on your chart, so bars inside that training period are in-sample by nature — genuine out-of-sample behaviour is what you see going forward on the live panel. In leakage-free walk-forward testing the network's High/Low error modestly beat a naïve recent-range baseline (strongest on the Low), at roughly 0.7–0.9% of price; that is a small, real edge, not a crystal ball, and on some periods it will sit close to the baseline. Forecasting a single day's exact high and low is inherently hard, and a sharp regime shift or a shock can run straight through any daily envelope. It is deliberately a small network — larger nets overfit this much daily data and test worse. Always wait for the candle to open so the forecast is frozen, and test it on your own data before trading it live.
🧠 Neural Core — the model is a 6·6·6·6·3 multi-layer perceptron: six inputs, three hidden layers of six tanh neurons, and three linear outputs, for 147 trained weights and biases. Its lifecycle each bar is FEATURE ▸ NORMALISE ▸ FORWARD ▸ RECONSTRUCT. The network was trained by backpropagation offline on XAUUSD daily data; the learned weight matrices are embedded directly in the script and the on-chart forward pass — weighted sums, biases, and tanh activations, layer by layer — reproduces the trained model exactly. Nothing is trained on your chart, so the mapping is fixed and deterministic.
🔢 Feature Anatomy — the fingerprint is six percentage-based ingredients, all derived from the last five completed days of OHLC plus RSI: 5-day momentum (mean daily return), range position (where the last close sits inside the 5-day high-low range), RSI(14) centred at 50, the 5-day average daily range %, the 5-day average candle body %, and a short-vs-medium momentum acceleration. Working in percentage space rather than raw price is what lets a model learn from a market that ran from the 2,600s into the 4,000s without the price level itself dominating the signal.
🧊 Frozen at the Open — this indicator does not repaint. Every input is read from candles that have already closed, and the forecast is anchored to the last completed close. That means the projected High, Low and Close for the current day are computed once when the candle opens and stay fixed until it closes — no sliding lines, no intrabar drift, no numbers that quietly improve as the session plays out.
🧭 No-Lookahead Normalisation — the part most on-chart ML gets wrong. Each feature is standardised against a causal rolling window of past bars only, computed live and identically to training. No future statistic ever touches a historical prediction: the forecast printed on any past bar is identical whether or not the bars after it exist. This is verified, not assumed.
📐 Volatility-Normalised Targets — the network does not predict raw High% and Low%; it predicts each excursion in units of the recent daily range, which the script measures live. The output is then rebuilt into a four-digit Gold price. Because the size of the move is expressed relative to current volatility, the same learned shape adapts automatically as the market shifts between calm and violent regimes instead of freezing the behaviour of the period it was trained on.
🕸️ Live Network Map — the model is not a black box. The full network is drawn to the right of price: an input column labelled with each feature, three hidden columns, and an output column carrying the four-digit High, Low and Close. Every node is shaded by its live activation and every connection is coloured by weight sign and brightened by the signal passing through it, so you can watch which inputs and pathways are actually driving today's forecast.
📊 Live Accuracy Panel — a compact dashboard reports, in real time: the setup and anchor close, the frozen High/Low/Close forecast with its implied % move and range, each input as a live z-score, and a running mean absolute error of the High and Low forecasts measured against the actual bars — shown next to the error of a naïve recent-range baseline. Every resolved forecast is counted, winners and misses in full, so the number is built live on your symbol and timeframe rather than advertised in advance.
🎚️ Controls — the map's size, horizontal position, column spacing, connection glow, node values and connection drawing are all adjustable, as are the forecast projection length, the shaded High-Low range, the historical prediction track, line width, two themes, and the dashboard's position and size. None of these change the model — they change how you read it.
🎯 Why this is different — most "AI" indicators restyle an oscillator and call the top; most that claim a neural network never show one. This runs an actual trained MLP, draws it live, normalises its inputs causally so there is no lookahead, freezes each forecast at the open so it cannot repaint, and reports an honest error tracked against a baseline instead of a marketing figure. You can see the network, see the inputs, and see how it has actually done on your chart.
🚀 Where to use it — the model was trained specifically on XAUUSD on the Daily timeframe, and that is where it is designed to run; the dashboard flags the setup when the symbol or timeframe differs. The first bars of any chart are a warm-up while the causal normalisation window fills, after which the forecast and the live accuracy panel come alive.
🎯 How to trade it
1 Apply it to XAUUSD on the Daily chart and let the causal window warm up until the dashboard reads a live forecast and the accuracy panel starts counting.
2 At each new daily candle, read the frozen High / Low / Close forecast and the shaded projected range — it is locked at the open and will not move.
3 Check the Live Accuracy panel: the High and Low mean-absolute-error against the naïve baseline tells you, on your own data, whether the model is adding anything right now.
4 Use the projected High and Low as context for where the session may stretch to — a reference for targets, fades, and stop placement — not as an automatic entry.
5 Combine the forecast with your own structure, levels, and risk management. It describes a likely daily envelope; it is not an entry-and-exit system on its own.
⚠️ Important — this is a decision-support tool, not a standalone buy/sell system, and it makes no performance guarantees. It is a fixed, pre-trained model: the weights were learned once on XAUUSD daily history and do not adapt on your chart, so bars inside that training period are in-sample by nature — genuine out-of-sample behaviour is what you see going forward on the live panel. In leakage-free walk-forward testing the network's High/Low error modestly beat a naïve recent-range baseline (strongest on the Low), at roughly 0.7–0.9% of price; that is a small, real edge, not a crystal ball, and on some periods it will sit close to the baseline. Forecasting a single day's exact high and low is inherently hard, and a sharp regime shift or a shock can run straight through any daily envelope. It is deliberately a small network — larger nets overfit this much daily data and test worse. Always wait for the candle to open so the forecast is frozen, and test it on your own data before trading it live.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Institutional-desk research · 10+ yrs building trading algos stocks options FX
Algo systems for gold/FX traders · levels desk: Gold FX NQ ES JPN225
Private systems for serious traders
syndicate001.com
TG channel
t.me/aisyndicate001
Algo systems for gold/FX traders · levels desk: Gold FX NQ ES JPN225
Private systems for serious traders
syndicate001.com
TG channel
t.me/aisyndicate001
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Institutional-desk research · 10+ yrs building trading algos stocks options FX
Algo systems for gold/FX traders · levels desk: Gold FX NQ ES JPN225
Private systems for serious traders
syndicate001.com
TG channel
t.me/aisyndicate001
Algo systems for gold/FX traders · levels desk: Gold FX NQ ES JPN225
Private systems for serious traders
syndicate001.com
TG channel
t.me/aisyndicate001
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.