学习中心
学习中心

市场资讯及洞察

Flag of USA and Venezuela painted on a concrete wall
Geopolitical events
Oil, Metals, Soft Commodities
Venezuela headlines and the Asia open: oil spreads to watch

Asia starts the week with a fresh geopolitical shock that is already being framed in oil terms, not just security terms. The first-order move may be a repricing of risk premia and volatility across energy and macro, while markets wait to see whether this becomes a durable physical disruption or a fast-fading headline premium.

At a glance

  • What happened: US officials said the US carried out “Operation Absolute Resolve”, including strikes around Caracas, and that Venezuela’s President Nicolás Maduro and his wife were taken into US custody and flown to the United States (subject to ongoing verification against the cited reporting).
  • What markets may focus on now: Headline-driven risk premia and volatility, especially in products and heavy-crude-sensitive spreads, rather than a clean “missing barrels” shock.
  • What is not happening yet: Early pricing has so far looked more like a headline risk premium than a confirmed physical supply shock, though this can change quickly, with analysts pointing to ample global supply as a possible cap on sustained upside.
  • Next 24 to 72 hours: Market participants are likely to focus on the shape of the oil “quarantine”, the UN track, and whether this stays “one and done” or becomes open-ended.
  • Australia and Asia hook: AUD as a risk barometer, Asia refinery margins in diesel and heavy, and shipping and insurance where the price can show up in friction before it shows up in benchmarks.

What happened, facts fast

Before anyone had time to workshop the talking points, there were strikes, there was a raid, and there was a custody transfer. US officials say the operation culminated in Maduro and his wife being flown to the United States, where court proceedings are expected.

Then came the line that turned a foreign policy story into a markets story. President Trump publicly suggested the US would “run” Venezuela for now, explicitly tying the mission to oil.

Almost immediately after that came a message-discipline correction. Secretary of State Marco Rubio said the US would not govern Venezuela day to day, but would press for changes through an oil “quarantine” or blockade.

That tension, between maximalist presidential rhetoric and a more bureaucratically describable “quarantine”, is where the uncertainty lives. Uncertainty is what gets priced first.

Source: Adobe images

Why this is price relevant now

What’s new versus known for positioning

What’s new, and price relevant, is that the scale and outcome are not incremental. A major military operation, a claimed removal of Venezuela’s leadership from the country, and a US-led custody transfer are not the sort of things markets can safely treat as noise.

Second, the oil framing is explicit. Even if you assume the language gets sanded down later, the stated lever is petroleum. Flows, enforcement, and pressure via exports.

Third, the embargo is not just a talking point anymore. Reporting says PDVSA has begun asking some joint ventures to cut output because exports have been halted and storage is tightening, with heavy-crude and diluent constraints featuring prominently.

What’s still unknown, and where volatility comes from

Key unknowns include how strict enforcement is on water, what exemptions look like in practice, how stable the on-the-ground situation is, and which countries recognise what comes next. Those are not philosophical questions. Those are the inputs for whether this is a temporary risk premium or a durable regime shift.

Political and legal reaction, why this drives tail risk

The fastest way to understand the tail here is to watch who calls this illegal, and who calls it effective, then ask what those camps can actually do.

Internationally, reaction has been fast, with emphasis on international law and the UN Charter from key partners, and UN processes in view. In the US, lawmakers and commentators have begun debating the legal basis, including questions of authority and war powers. That matters for markets because it helps define whether this is a finite operation with an aftershock, or the opening chapter of a rolling policy regime that keeps generating headlines.

Market mechanism, the core “so what”

Here’s the key thing about oil shocks. Sometimes the headline is the shock. Sometimes the plumbing is the shock.

Venezuela’s heavy-crude system: Orinoco production, key pipelines, and export/refining bottlenecks.

Volumes and cushion

Venezuela is not the world’s swing producer. Its production is meaningful at the margin, but not enough by itself to imply “the world runs out of oil tomorrow”. The risk is not just volume. It is duration, disruption, and friction.

The market’s mental brake is spare capacity and the broader supply backdrop. Reporting over the weekend pointed to ample global supply as a likely cap on sustained gains, even as prices respond to risk.

Quality and transmission

Venezuela’s barrels are disproportionately extra heavy, and extra heavy crude is not just “oil”. It is oil that often needs diluent or condensate to move and process. That is exactly the kind of constraint that shows up as grade-specific tightness and product effects.

Reporting has highlighted diluent constraints and storage pressure as exports stall. Translation: even if Brent stays relatively civil, watch cracks, diesel and distillates, and any signals that “heavy substitution” is getting expensive.

Heavy-light spread as a stress gauge: rising differentials can signal costly substitution and tighter heavy supply.

Products transmission, volatility first, pump later

If crude is the headline, products are the receipt, because products tell you what refiners can actually do with the crude they can actually get. The short-run pattern is usually: futures reprice risk fast, implied volatility pops; physical flows adapt more slowly; retail follows with a lag, and often with less drama than the first weekend of commentary promised.

For Australia and Asia desks, the bigger point is transmission. Energy moves can influence inflation expectations, which can feed into rates pricing and the dollar, and in turn affect Asia FX and broader risk, though the links are not mechanical and can vary by regime.

Some market participants also monitor refined-product benchmarks, including gasoline contracts such as reformulated gasoline blendstock, as part of that chain rather than as a stand-alone signal.

Historical context, the two patterns that matter

Two patterns matter more than any single episode.

Pattern A: scare premium. Big headline, limited lasting outage. A spike, then a fade as the market decides the plumbing still works.

Pattern B: structural. Real barrels are lost or restrictions lock in; the forward curve reprices; the premium migrates from front-month drama to whole-curve reality.

One commonly observed pattern is that when it is only premium, volatility tends to spike more than price. When it is structural, levels and time spreads move more durably.

The three possible market reactions

Contained, rhetorical: quarantine exists but porous; diplomacy churns; no second-wave actions. Premium bleeds out; volatility mean-reverts.

Embargo tightens, exports curtailed, quality shock: enforcement hardens; PDVSA cuts deepen; diluent constraints bite. Heavies bid; cracks and distillates react; freight and insurance add friction.

Escalation, prolonged control risk: “not governing” language loses credibility; repeated operations; allies fracture further. Longer-duration premium; broader risk-off impulse across FX and rates.

Australia and Asia angle

For Sydney, Singapore, and Hong Kong screens, this is less about Venezuelan retail politics and more about how a Western Hemisphere intervention bleeds into Asia pricing.

AUD is the quick and dirty risk proxy. Asia refiners care about the kind of oil and the friction cost. Heavy crude plus diluent dependency makes substitution non-trivial. If enforcement looks aggressive, the “price” can show up in freight, insurance, and spreads before it shows up in headline Brent.

Catalyst calendar, key developments markets may monitor

  • US policy detail: quarantine rules, enforcement posture, exemptions.
  • UN and allies: statements that signal whether this becomes a long legitimacy fight.
  • PDVSA operations: storage, shut-ins, diluent availability, floating storage signals.
  • OPEC+ signalling: whether the group stays committed to stability if spreads blow out.
GO Markets
January 5, 2026
每日财经快讯
全球金融市场观察:2025 年年末总结与 2026 年关键关注点

2025 年即将收官,全球金融市场经历了一段复杂且充满挑战的时期。从宏观经济到货币政策,从资本市场到地缘政治,多重因素交织影响着市场走向。进入 2026 年,市场关注点正从“方向判断”转向“节奏与兑现”。

一、宏观经济:全球增长放缓但整体稳健

回顾 2025 年,全球经济的整体状态可以概括为 “低速增长伴随高不确定性”

在经历了高通胀和高利率的双重挤压后,主要经济体的增长动能普遍减弱。美国经济表现相对突出,消费和服务业依然提供支撑,但制造业和企业投资明显放慢;欧洲经济受到高融资成本和财政空间受限影响,增长乏力;中国则在结构调整背景下,通过政策托底稳定预期,政策重心更多倾向于稳增长、防控风险以及提振市场信心。新兴市场在美元压力缓解后有所改善,但内部差异加大。

从全球层面看,2025 年并不是一个“强复苏”的年份,这种状态为金融市场提供了有限但尚可的基本面支撑。经济虽无大幅反弹,但也未出现系统性衰退,市场在这种不确定的环境中寻求平衡。

二、通胀与利率:从核心主线转为背景变量

如果说 2022–2024 年金融市场的核心矛盾是“通胀”,那么到了 2025 年,这一问题的重要性明显下降。

从 2025 年下半年开始,通胀不再是市场唯一的关注焦点,但依然是政策制定和资产价格的重要 “底层约束”。商品价格的剧烈波动趋于平稳,但服务业通胀仍保持一定黏性,工资增长速度虽有所放缓,但并未出现明显下滑。

这一变化促使主要央行逐步从 “强力压制通胀” 转向在 “增长与通胀间寻找平衡”,为 2026 年货币政策转向降息周期奠定了基础。

三、货币政策:降息周期开启,但并非一条直线

美联储在确认通胀趋势性回落后,逐步启动降息,但态度始终谨慎,反复强调政策将取决于经济和数据变化;欧洲央行因经济疲弱,更早释放宽松信号;澳洲、英国等央行则在通胀与增长之间保持平衡;日本央行继续推进政策正常化,但节奏缓慢,日元汇率成为市场关注重点。

整体而言,2025 年的货币政策环境呈现出 “方向一致、节奏分化” 的特点。这也意味着,市场不再是单边押注宽松,而是需要不断调整对利率路径的判断。

四、资本市场:从情绪驱动回归基本面

2025 年资本市场的一个显著特征是 AI 及相关科技板块的估值经历了明显的重构。年初至年中,科技和人工智能相关概念股表现强劲,但下半年随着市场关注点转向盈利兑现,部分高估值资产出现调整。高资本开支和现金流压力成为估值波动的主要诱因。

与此同时,价值股、红利股以及现金流稳定的行业在年末重新受到投资者青睐,市场风格出现明显切换。这表明投资者从 “故事驱动” 转向 “盈利驱动”,更加注重基本面质量。

债券市场方面,降息预期推动收益率整体下行,但财政赤字和债务规模的扩大限制了长期收益率的下行空间。收益率曲线形态的变化成为宏观经济预期的重要信号。进入 2026 年初,债券市场仍将在政策宽松预期与财政可持续性之间寻求平衡。

外汇市场方面,美元在降息周期背景下整体偏弱,但其避险属性依然保持吸引力。日元和欧元等则受政策差异和经济基本面的显著影响,波动加剧。黄金价格则在降息预期、地缘政治紧张和资产配置多元化需求的共同推动下,维持较高关注度。

五、地缘政治:长期风险并未退场

地缘政治虽并未成为持续性的市场主线,但始终以“潜在风险”的形式存在。

贸易摩擦、科技限制、区域冲突和能源安全问题,使市场对全球供应链和金融体系稳定性的担忧难以彻底消散。这些因素并未每天影响价格,却在关键时刻迅速放大市场波动,成为风险定价中不可忽视的一部分。

六、展望 2026 年:开年首月的关键观察点

进入 2026 年,市场将从年末的流动性和仓位调整阶段,逐步回归对基本面的关注。开年首周,以下几个方面尤为重要:

宏观数据

  • 1 月 5 日:美国 ISM 制造业 PMI(12 月数据) → 观察经济是否放缓
  • 1月6日:日本央行账户数据(BOJ Accounts)
    → 反映日本央行的货币政策操作与流动性投放情况,市场将据此评估政策正常化节奏及其对日元、日债和全球资金流动的潜在影响
  • 1 月 7 日:美国 JOLTS 职位空缺 → 劳动力市场状况
  • 1 月 9 日:美国非农就业报告 → 就业、失业率、平均时薪,影响美联储降息预期
  • 1月14日:美国 PPI(2025 年 11 月,含 10 月延迟数据)
    → 观察生产端通胀压力变化,为 CPI 与美联储政策预期提供前瞻信号
  • 1 月初:中国官方制造业 PMI / 财新 PMI → 全球需求与风险偏好参考
  • 1 月 15 日:美国 CPI 通胀数据(12 月)→ 判断通胀回落是否持续
  • 1 月 30 日:美国 PPI(2025 年 12 月,常规发布)
    → 判断年末通胀走势及其对 2026 年货币政策路径的影响
  • 1 月 31 日:CME 比特币期货合约到期→ 可能引发加密资产波动

 央行动态

  • 无利率决议,但美联储官员讲话 → 指导全年政策预期

风险偏好

  • 资金在防御资产与风险资产间流动
  • 美债收益率曲线与 VIX 波动率 → 观察市场风险偏好变化

 政策与地缘政治不确定性

  • 财政、产业、贸易政策及地缘事件可能影响市场定价

总结 

2025 年,全球金融市场完成了一次重要的过渡:从高通胀、高利率向降息周期初段的转变;从单一逻辑,走向多因素博弈。进入 2026 年,投资者面临的核心挑战不再仅仅是判断市场的大方向,而是如何在高不确定性环境中实现更精细、更动态的风险定价和资产配置。关注宏观经济数据、政策信号、资本市场结构变化及地缘政治风险,将是制定投资策略的关键。

Alena Wang
December 31, 2025
每日财经快讯
白银节假日搞偷袭,没有闪的欧美市场圣诞期间在劫难逃!

自上周以来白银价格已经飙升25%以上,在欧美国家欢庆佳节的时刻,一场以白银领导的全球贵金属市场的超大动荡以迅雷不及掩耳之势袭来。

 

2025年毋庸置疑可以被称作贵金属年,迄今为止距离年初黄金涨幅已经超过73%,白银涨幅超过190%,铂金涨幅超过180%。作为本轮的主角白银来说他从各方面性质又和黄金不完全相同,白银在工业属性上的强力需求是本轮能完成戴维斯双击共鸣的重要因素,如果想了解白银本次一飞冲天的本质因素,需要从两个宏观基本面和两个资金导向因素进行挖掘。

 

贵金属的宏观“避险”逻辑

我们总说大炮一响黄金万两,但是俄乌战争这个贵金属最初的催化剂已过去数年,中东地区的战争冲突也已阶段性进入平静,但是今年的黄金和一众贵金属小弟则是鸡犬升天,究其原因市场避险的并非是阶段性全球发生的冲突与炮火而是在避险被庞大债务阴影笼罩的美国经济。自上世纪70年代布雷顿森林体系崩盘以来黄金已经上涨超过了128倍,细数这中间每一轮的牛市其实都和美国的经济周期有莫大的关系。概括来说,这一轮美国国债体量达到38万亿之后,市场曾以为美联储依旧会根据其独立性去审慎定义货币体系和全球的金融规则,但是特朗普作为搅局者在上台后从大而美法案(提高债务上限),到疯狂叫嚣美联储降息(发推特),安插激进鸽派进入美联储(米兰上任),以及甄选比鲍威尔更听话的主席继任(鲍明年中退休,现预计候选人为激进鸽派)。一系列手段基本验证了一个全球市场都不想接受的事实就是美国发现在通胀不会严重失控的前提下将开启进一步的宽松通过稀释来减缓债务压力,现阶段美国的债务压力极强,万亿利息支出早已超越军费。全球各国在识穿了美国的阳谋之后能做的事情就是囤积黄金降低美债持有,今年的贵金属整体趋势是黄金作为头部对冲长期通胀资产所引领,而作为贵金属的二号头目白银自然不会脱离本轮主要牛市的趋向。

 

白银的工业需求和恐怖的供需失衡

虽然作为贵金属之一跟随牛市的Alpha只是上涨的因素之一,白银本轮的上涨Beta则深深的藏在其较为可怕的供需失衡当中,在过去五年中白银全球市场已经连续五年处于供应短缺状态,最新数据显示2024年到2025年之间白银的年度供给缺口为1.5到2亿盎司,而其中伦敦金银市场协会LBMA和纽约COMEX的白银显性库存距离2021年的峰值已经下降了40%,上交所的库存也跌至近十年低位。与之对应的是白银可怕的工业需求,作为全球光伏巨头在新光伏技术方向上对白银的消耗较此前PERC技术的消耗量高出30%-50%,异质结的银耗量则接近翻倍,这种可怕的工业需求是其他贵金属所不具备的。尤其是在人工智能高速发展对电网和电能需求进一步攀升的今天。

供给侧嗷嗷待哺,供应侧却面临无米之炊的难产,不同于金价对金矿的扩产催动,白银是一个高度伴生的矿产,全球28%的白银来自原生家庭,而剩下的72%则全部来自于铜铅锌的副产品,所以白银价格对供应影响是极其不敏感的,哪怕白银价格翻倍暴涨,供应端的涨幅仍旧不紧不慢,这种供需之间可怕的失衡是促成此次戴维斯双击的重要共振因素。

 

圣诞劫亚洲盘面的猎杀时刻:

本轮欧美节假日是一年交投理论上最清淡的时刻,欧盘美盘的做市商交易员忙着欢庆节假日,亚洲主力利用这一流动性真空时期发动了多头的强力逼空,这轮行情中COMEX的挂单簿极其稀薄,推动价格上涨的资金需求远非正常时段,上交所直接主导了本轮白银价格的龙头趋势,导致欧美交割库进一步紧张,同时多个欧美空头关键技术点位触及止损带来市场进一步的资金倾轧,而本轮节假日结束白银先是向上跳张就完美的印证了这点,而这从长期看也是国家战略布局的阳谋之一,毕竟光伏大国在东方,白银的定价需求对未来的能源战略地位是有举足轻重的影响。

 

板块轮动带来的强势补涨

这轮白银上涨不是单纯自己上涨,铂金等年内没有跟着黄金大幅走强的贵金属也有提振,而白银历史上和黄金的比例(俗称金银比)约为50-60之间,今年因为黄金快速起飞这个数据之前被拉升到了80以上,而历史上每一轮出现这种情况,金银比都会因为板块资金轮动快速修正到40-50左右,所以这轮上涨板块轮动也是因素之一,ETF的资金回流进一步促成了这一趋势。

 

总结:历史上白银的牛市都很短促会在短期内高涨后下跌,但是现阶段几个因素来看这轮涨势的因素仍旧存在,在重要因素没有转向之前,趋势或难以断定是否逆转,市场有风险,交易需谨慎。

 

 

William Zhao
December 29, 2025
每日财经快讯
澳洲联储12月货币政策会议纪要解读
一、全球及澳大利亚金融状况概览:

 

在本次会议上,委员们回顾了全球及澳大利亚的金融状况。近期全球科技股估值过高引发市场波动,股票价格一度下跌后反弹,美国市场受预期宽松货币政策支撑,而澳大利亚股市下跌持续更久,反映市场对现金利率上升和部分板块估值调整。全球债市利差仍低,但部分国家公司债收益率上升。利率预期方面,美联储预计降息并延续宽松,欧洲央行维持利率,加拿大、新西兰、瑞典和澳大利亚可能上调,日本则在通胀压力下逐步加息。澳大利亚短期债券收益率上升,但澳元仅小幅升值,缓解金融紧缩压力。国内方面,抵押贷款支出高企,家庭储蓄率维持高位,信贷需求回升,企业债务占GDP比重恢复至疫情前水平,显示金融状况喜忧参半。

 

二、经济增长与通胀趋势:

 

委员们对国内经济增长与通胀趋势进行了评估。10月年度CPI升至3.8%,部分因电费补贴停止,新房成本、市场服务、耐用品及国内旅行价格均高于预期,短期通胀前景上行风险增加,但数据波动性较大,需继续观察。劳动力市场方面,失业率上升趋势已在10月得到控制,其他未充分利用劳动力指标维持低水平,企业招聘仍有困难,但工资价格指数总体稳定,公共部门工资增长抵消私营部门放缓,整体略显紧张。经济增长方面,截至9月季度GDP增速接近潜在水平,私人需求增长强劲,数据中心和住房投资为主要动力,宽松政策效果预计在2026年显现。产出缺口为正,NAB产能利用率指标显示产能约束高于历史平均水平,表明经济存在一定需求过剩。

 

三、货币政策考量与决策

在政策讨论中,委员们重点关注三方面:总需求略高于潜在供给,通胀风险上升但持续性仍不明;私人需求复苏将支撑劳动力需求,经济增长动力依然存在;金融环境信号分化,部分委员认为不再紧缩,部分认为仍略紧,需观察债券收益率及利率上升影响。近期CPI及成本端指标显示通胀压力上行,但短期内过度推断趋势存在风险。若通胀持续上行,未来一年可能需加息,但仍需评估金融环境和市场利率对经济的作用。本次会议决定维持现金利率目标3.60%不变,并强调将持续密切关注数据变化及经济前景,在未来会议评估政策调整必要性。董事会重申其使命,致力实现价格稳定和充分就业,并将采取一切必要措施达成目标。

 

总结:

 

本次RBA会议表示,金融状况信号分化,利率上升与汇率变动影响尚未完全显现;通胀压力上行但短期持续性不明;劳动力市场略紧,私人需求复苏支撑经济。政策暂按兵不动,未来可能加息,重点关注2026年初通胀数据及金融市场动态。

Henry Zhang
December 24, 2025
Source: Adobe Images
Forex
Shares and Indices
Is the S&P 500 uptrend intact? January watchpoints + FX levels

In 2025, the S&P 500 traded around 6,835 and was up approximately 16% year to date (YTD). Market direction remained most sensitive to Federal Reserve expectations, inflation data and the earnings outlook, with returns also shaped by mega-cap tech leadership and the broader AI narrative. The index pulled back from earlier December highs, but it has so far held above key major moving averages (MA).

Key 2025 drivers included:

  • Fed expectations and inflation: Inflation cooled through the year but remained sticky around 2.5% to 3%. A Fed easing bias likely supported price to earnings (P/E) multiples and “risk-on” positioning. More recently, markets appeared increasingly rate-sensitive, with the decreased likelihood of an additional rate cut until March 2026.
  • Earnings and guidance: Corporate earnings remained strong quarter on quarter. Recent Q3 results reportedly saw over 80% of the S&P 500 beat earnings per share (EPS) expectations. For Q4, the estimated year-over-year earnings growth rate is 8.1%, despite ongoing concerns around import tariffs and potential margin pressure.
  • Index leadership and breadth: Returns were heavily influenced by mega-cap tech and AI beneficiaries, even as broader market breadth appeared less consistent at points through the year.
  • Policy headlines and volatility: Trade and tariff headlines drove sharp moves, particularly earlier in the year. Some investors pointed to the “TACO” trade, with rapid recoveries after policy proposals were softened. Over time, similar shocks appeared to have less impact as the market became somewhat desensitised.
  • Valuations and sensitivity: The forward 12-month P/E ratio for the S&P 500 is 22, above the 5-year average (20.0) and above the 10-year average (18.7). That gap kept valuation sensitivity, especially in AI-linked names, firmly in focus.

Current state

The S&P 500 is about 1% below record highs hit earlier in December. That could indicate the broader uptrend remains in place, with a move back toward the recent highs one possible scenario if momentum improves. Despite the recent retracement, the index remains above all key major moving averages (MA). The latest bounce followed lower than expected CPI numbers earlier this week, alongside continued, and to some, surprising optimism about what may come next.

What to watch in January

  • Q4 earnings from mid-January: Results and guidance may help clarify whether valuations are being supported by forward expectations.
  • AI narrative and positioning: With AI-linked mega-caps carrying a large share of market capitalisation, changes in sentiment or expectations could have an outsized impact on index performance.
  • US jobs and CPI data: The latest US jobs report reportedly points to the highest headline unemployment rate since 2021. Cooling inflation this week may keep markets alert to shifts in rate cut timing, particularly around the March decision.
S&P 500 daily chart
Source: TradingView

Major FX pairs

Source: Adobe Images
Source: Adobe Images

AUD/USD

AUD/USD has been choppy in 2025. Since the “redemption day” drop in April, the move has looked more like a steady grind higher than a clean upside trend.

Key levels
Recent peaks in early September and mid-December highlight resistance near 0.6625. Support has been evident around 0.6425, where price bounced over the last month.

What is supporting the bounce
That support test coincided with stronger than expected jobs and inflation data, lifting expectations that the Reserve Bank of Australia (RBA) may raise rates during 2026 rather than cut again. The latest pullback looks contained so far, with buying interest already visible and price still above key longer-term moving averages.

What could drive a breakout
The pair remains range-bound, but the tilt is still constructive. If Chinese data stays firm, metals prices hold up, and the central bank outlook remains relatively hawkish, a break above resistance could gain more traction.

AUD/USD daily chart

EUR/USD

After early 2025 euro strength, EUR/USD has mostly consolidated since June in a roughly 270 pip range. This month tested 1.18 resistance, reaching highs not seen since September.

What price is doing now
The recent pullback still lacks strong downside conviction. Some technical analysts refer to the 1.17 area as a near-term reference level.

What could come next
If price holds 1.17 and buyers step back in, another push toward 1.18 is possible. One view is that the European Central Bank (ECB) could be less inclined to ease in 2026, which could be consistent with a firmer EUR/USD scenario. Broader analyst commentary also suggests the euro may stall rather than collapse against the US dollar, although outcomes remain data and policy dependent.

EUR/USD daily chart

USD/JPY

Year-to-date picture
USD/JPY is close to flat overall for the year. After US dollar weakness in Q1, the pair reversed higher and now sits just below resistance near 158.

Rates remain the main driver
Rate differentials still favour the US dollar. The Bank of Japan (BOJ) held steady for much of the period despite expectations it might act, and the recent rate increase was modest. Policy has only moved marginally away from zero.

What could shift the balance
Rate differentials remain a key influence. Without a clearer shift in BOJ policy, the JPY may find it difficult to sustain a rebound. Some market commentators cite 154.20 as a chart reference level.

USD/JPY daily chart
Mike Smith
December 23, 2025
每日财经快讯
TradingView编程系列5:循环结构(上)

循环(Loops) 是一种结构,它会根据指定的条件反复执行一段语句块。它们允许脚本在不需要重复编写代码的情况下完成重复性的任务。Pine Script提供了三种不同的循环类型:forwhilefor…in

一、隐式循环

Pine Script的执行模型和时间序列结构,使得在许多情况下并不需要写出明显的循环。

当用户将一个 Pine 脚本添加到图表中时,脚本会在一个等同于“大循环”的环境中运行:它会在可用数据中的每一根历史 K 线以及每一个实时 tick 上各执行一次代码。脚本可以通过历史引用运算符(history-referencing operator)访问之前 K 线上的执行结果;而通过使用 var 或 varip 关键字声明的变量,其计算结果可以在多次执行之间保持不变。这些特性使脚本能够通过逐 K 线(bar-by-bar)的计算来完成各种任务,而无需依赖显式的循环。

下面我们来看一个简单的示例,说明在 Pine Script 中不必要地使用循环的情况。

A screenshot of a computer programAI-generated content may be incorrect.

下面按逐行解释这段 Pine Script 代码的含义和执行逻辑:

首先,声明这是一个指标脚本(indicator)。test是指标在图表上显示的名称。overlay = true 表示该指标绘制在主价格图表上。

其次,声明一个整数类型变量名为lengthInput的变量。input.int()为创建一个用户可在参数设置中修改的整数输入项,其中默认值为 20 根 K 线。在参数面板中显示的名称为length。

接下来,再声明一个初始化变量为 0,浮点数类型的变量closeSum。注意,由于没有使用 var 关键字,在每一根 K 线上脚本执行时,closeSum 都会被重新置为 0。

然后进入for循环,对最近的 lengthInput 根 K 线进行循环,将每根 K 线的收盘价累加到 closeSum。在循环体中,把最近 lengthInput 根 K 线的收盘价逐一相加。

再之后,用收盘价总和除以 K 线数量,计算平均值,保存到变量avgClose中。

最后,将数据画成线,其中"Average close"为图例名称,线条颜色为橙色,线条宽度为2。

总结来说,这段代码就是用for循环计算并绘制最近 lengthInput 根 K 线的收盘价平均值。

其实,这个示例的重点在于演示 “不必要的循环”,在 Pine Script 中,这种均值计算可以直接使用内置函数ta.sma,例如:

avgClose = ta.sma(close, lengthInput)

二、显性循环

尽管 Pine 的执行模型、时间序列结构以及可用的内置函数在许多情况下都能消除对循环的需求,但并非所有迭代任务都可以不用循环。在以下几类任务中,循环是必不可少的:

  • 遍历或操作集合(如数组、矩阵和映射)
  • 执行无法通过无循环表达式或现有内置函数完成的计算
  • 回溯历史数据以分析过去的 K 线,而比较所需的参考值仅在当前 K 线上才可用

例如,要判断哪些过去的 K 线的最高价(high)高于当前 K 线的最高价,就必须使用循环。

这是因为:当前 K 线的数值在脚本运行于之前的历史 K 线时是无法获取的。脚本只能在执行到当前 K 线时访问该 K 线的数值,并且必须在这次执行过程中向后回溯历史序列,将之前的数值与当前值进行比较。

例如,下面的脚本使用 for 循环,将之前 lengthInput 根 K 线的最高价与最后一根历史 K 线的最高价进行比较。在循环中,它调用 label.new(),在每一根最高价高于最后一根历史 K 线最高价的过去 K 线上方绘制一个圆形标签:

A screenshot of a computer codeAI-generated content may be incorrect.

首先,声明这是一个名为test2的指标脚本。此脚本允许最多绘制 500 个label,否则在绘制大量标签时会触发限制错误。然后设置lengthInput变量,该变量表示要拿多少根过去的 K 线的最高价(high),来和最后一根历史 K 线的最高价比较,1和500为允许输入的最小值和最大值。

接下来,判断当前是否是最后一根已确认的历史 K 线。barstate.islastconfirmedhistory在历史数据的最后一根 K 线时返回 true,在实时 K 线或更早的历史 K 线上返回 false。

在最后一根历史K线的最高价位置画一条水平虚线。其中line.new的前四个参数分别为起点横坐标,起点纵坐标,终点横坐标,终点纵坐标。

接下来进入For循环,首先判断过去某根 K 线的最高价 > 当前(最后历史)K 线的最高价,如果高于,则紫色圆形标签自动绘制在 K 线柱的上方。

最后一行代码,使用三元运算符判断给最后一根历史 K 线上色高亮。如果是最后一根历史 K 线,则为橙色,否则不改变颜色。

A screenshot of a graphAI-generated content may be incorrect.

可以看到,当我们将长度参数设置为 60 后,图表中会在最高价高于当前 K 线最高价的历史 K 线上方显示紫色圆点,同时还会绘制一条表示当前 K 线最高价的水平虚线,用于直观地标示该参考价位。

综上所述,本文通过示例对比说明了 Pine Script 中“不必要循环”和“必须使用循环”的典型场景。合理理解 Pine 的执行模型,优先使用内置函数,可以提升脚本的简洁性与性能;而在需要基于当前 K 线回溯并分析历史数据时,循环则不可或缺。掌握循环的正确使用方式,有助于编写更高效、清晰且功能强大的 Pine Script 脚本。

Michael Miao
December 22, 2025