The information provided is of general nature only and does not take into account your personal objectives, financial situations or needs. Before acting on any information provided, you should consider whether the information is suitable for you and your personal circumstances and if necessary, seek appropriate professional advice. All opinions, conclusions, forecasts or recommendations are reasonably held at the time of compilation but are subject to change without notice. Past performance is not an indication of future performance. Go Markets Pty Ltd, ABN 85 081 864 039, AFSL 254963 is a CFD issuer, and trading carries significant risks and is not suitable for everyone. You do not own or have any interest in the rights to the underlying assets. You should consider the appropriateness by reviewing our TMD, FSG, PDS and other CFD legal documents to ensure you understand the risks before you invest in CFDs. These documents are available here.
免责声明:文章来自 GO Markets 分析师和参与者,基于他们的独立分析或个人经验。表达的观点、意见或交易风格仅代表作者个人,不代表 GO Markets 立场。建议,(如有),具有“普遍”性,并非基于您的个人目标、财务状况或需求。在根据建议采取行动之前,请考虑该建议(如有)对您的目标、财务状况和需求的适用程度。如果建议与购买特定金融产品有关,您应该在做出任何决定之前了解并考虑该产品的产品披露声明 (PDS) 和金融服务指南 (FSG)。
当用户将一个 Pine 脚本添加到图表中时,脚本会在一个等同于“大循环”的环境中运行:它会在可用数据中的每一根历史 K 线以及每一个实时 tick 上各执行一次代码。脚本可以通过历史引用运算符(history-referencing operator)访问之前 K 线上的执行结果;而通过使用 var 或 varip 关键字声明的变量,其计算结果可以在多次执行之间保持不变。这些特性使脚本能够通过逐 K 线(bar-by-bar)的计算来完成各种任务,而无需依赖显式的循环。
接下来进入For循环,首先判断过去某根 K 线的最高价 > 当前(最后历史)K 线的最高价,如果高于,则紫色圆形标签自动绘制在 K 线柱的上方。
最后一行代码,使用三元运算符判断给最后一根历史 K 线上色高亮。如果是最后一根历史 K 线,则为橙色,否则不改变颜色。
可以看到,当我们将长度参数设置为 60 后,图表中会在最高价高于当前 K 线最高价的历史 K 线上方显示紫色圆点,同时还会绘制一条表示当前 K 线最高价的水平虚线,用于直观地标示该参考价位。
综上所述,本文通过示例对比说明了 Pine Script 中“不必要循环”和“必须使用循环”的典型场景。合理理解 Pine 的执行模型,优先使用内置函数,可以提升脚本的简洁性与性能;而在需要基于当前 K 线回溯并分析历史数据时,循环则不可或缺。掌握循环的正确使用方式,有助于编写更高效、清晰且功能强大的 Pine Script 脚本。
2025 has seen a material decline in the fortunes of the greenback. A technical structure breakdown early in the year was followed by a breach of the 200-day moving average (MA) at the end of Q1. The index then entered correction territory, printing a three-year low at the end of Q2.
Since then, we have seen attempts to build a technical base, including a re-test of the end-of-June lows in mid-September. However, buying pressure has not been strong enough to push price back above the technically critical and psychologically important 100 level.
What the levels suggest from here
As things stand, the index remains more than 10% lower for 2025. On this technical view, the index may revisit the 96 area. However, technical levels can fail and outcomes depend on multiple factors.
US dollar index
Source: TradingView
The key question for 2026
The key question remains: are we likely to see further losses in the early part of next year and beyond, or will current support hold?
We cannot assess the US dollar in isolation and any outlook is shaped by internal and global factors, not least its relative strength versus other major currencies. Many of these drivers are interrelated, but four potential headwinds stand out for any US dollar recovery. Collectively, they may keep downside pressure in play.
Four headwinds for any US dollar recovery
1. The US dollar as a safe-haven trade
One scenario where US dollar support has historically been evident is during major global events, slowdowns and market shocks. However, the more muted response of the US dollar during risk-off episodes this year suggests a shift away from the historical norm, with fewer sustained US dollar rallies.
Instead, throughout 2025, some investors appearedto favour gold, and at other times, FX and even equities, rather than into the US dollar. If this change in behaviour persists through 2026, it could make recovery harder, even if global economic pressure builds over the year ahead.
2. US versus global trade
Trade policy is harder to measure objectively, and outcomes can be difficult to predict. That said, trade battles driven by tariffs on US imports are often viewed as an additional potential drag on the US dollar.
The impact may be twofold if additional strain is placed on the US economy through:
a slowdown in global trade volumes as impacted countries seek alternative trade relationships, with supply chain distortions that may not favour US growth
pressure on US corporate profit margins as tariffs lift costs for importers
3. Removal of quantitative tightening
The Fed formally halted its balance sheet reduction, quantitative tightening (QT), as of 1 December 2025, ending a program that shrank assets by roughly US$2.4 trillion since mid-2022.
Traditionally, ending QT is seen as marginally negative for the US dollar because it stops the withdrawal of liquidity, can ease global funding conditions, and may reduce the scarcity that can support dollar demand. Put simply, more dollars in the system can soften the currency’s support at the margin, although outcomes have varied historically and often depend on broader financial conditions.
4. Interest rate differential
Interest rate differential (IRD) is likely to be a primary driver of US dollar strength, or otherwise, in the months ahead. The latest FOMC meeting delivered the expected 0.25% cut, with attention on guidance for what may come next.
Even after a softer-than-expected CPI print, markets have been reluctant to price aggressive near-term easing. At the time of writing, less than a 20% chance of a January cut is priced in, and it may be March before we see the next move.
The Fed is balancing sticky inflation against a jobs market under pressure, with the headline rate back at levels last seen in 2012. The practical takeaway is that a more accommodative stance may add to downward pressure on the US dollar.
Current expectations imply around two rate cuts through 2026, with the potential for further easing beyond that, broadly consistent with the median projections shown in the chart below. These are forecasts rather than guarantees, and they can shift as economic data and policy guidance evolve.
Source: US Federal Reserve, Summart of Economic Projections