From 256c4d87f4d65c4dd9e409817baf75d17b31096a Mon Sep 17 00:00:00 2001 From: Endless Agent Date: Fri, 17 Jul 2026 10:22:22 +0000 Subject: [PATCH 1/5] feat(final): add indicator CLI docs and footer update across locales Generated by Endless task #39. Co-authored-by: Huacnlee Li Huashun --- .../.vitepress/theme/components/AppFooter.vue | 1 + .../theme/components/HomePage/Footer.vue | 1 + .../theme/components/NewHomePage/Footer.vue | 1 + docs/en/docs/cli/quant/indicator.md | 19 +++++++++++++++++++ docs/zh-CN/docs/cli/quant/indicator.md | 18 ++++++++++++++++++ docs/zh-HK/docs/cli/quant/indicator.md | 18 ++++++++++++++++++ 6 files changed, 58 insertions(+) diff --git a/docs/.vitepress/theme/components/AppFooter.vue b/docs/.vitepress/theme/components/AppFooter.vue index 7c9b5048f..4add11c24 100644 --- a/docs/.vitepress/theme/components/AppFooter.vue +++ b/docs/.vitepress/theme/components/AppFooter.vue @@ -64,6 +64,7 @@ const year = new Date().getFullYear()
  • CLI
  • MCP
  • LLMs
  • +
  • Navi
  • diff --git a/docs/.vitepress/theme/components/HomePage/Footer.vue b/docs/.vitepress/theme/components/HomePage/Footer.vue index 6dec13f1e..25650c7d9 100644 --- a/docs/.vitepress/theme/components/HomePage/Footer.vue +++ b/docs/.vitepress/theme/components/HomePage/Footer.vue @@ -69,6 +69,7 @@ const rightLinks = computed(() => [ { href: '/docs/cli', label: 'CLI' }, { href: '/docs/llm', label: 'LLM' }, { href: '/docs/assets', label: t('footer.assets') }, + { href: 'https://navi-lang.org', label: 'Navi' }, { href: 'https://github.com/longbridge/developers/issues', label: 'Feedback' }, ]) diff --git a/docs/.vitepress/theme/components/NewHomePage/Footer.vue b/docs/.vitepress/theme/components/NewHomePage/Footer.vue index e670c30e7..598eb69a2 100644 --- a/docs/.vitepress/theme/components/NewHomePage/Footer.vue +++ b/docs/.vitepress/theme/components/NewHomePage/Footer.vue @@ -70,6 +70,7 @@ const rightLinks = computed(() => [ { href: '/docs/cli', label: 'CLI' }, { href: '/docs/llm', label: 'LLM' }, { href: '/docs/assets', label: t('footer.assets') }, + { href: 'https://navi-lang.org', label: 'Navi' }, { href: 'https://github.com/longbridge/developers/issues', label: 'Feedback' }, ]) diff --git a/docs/en/docs/cli/quant/indicator.md b/docs/en/docs/cli/quant/indicator.md index 1726fa7fe..13eb2507f 100644 --- a/docs/en/docs/cli/quant/indicator.md +++ b/docs/en/docs/cli/quant/indicator.md @@ -133,3 +133,22 @@ plot(ta.rsi(close, period), "RSI") ``` Parameters are matched positionally: `[21]` replaces the first `input.*()` call. + +## Navi — The Script Language + +OpenPine scripts are powered by [Navi](https://navi-lang.org) — a scripting language +designed for quantitative analysis, compatible with most PineScript V6 syntax. + +Install the Navi CLI to validate scripts locally before running them on Longbridge servers: + +```bash +curl -sSL https://navi-lang.org/install | sh -s -- nightly +``` + +Once installed, run a script file directly: + +```bash +navi run my_indicator.pine +``` + +This lets you catch syntax errors locally without a network round-trip to `longbridge quant run`. diff --git a/docs/zh-CN/docs/cli/quant/indicator.md b/docs/zh-CN/docs/cli/quant/indicator.md index 7bc6c49e7..77f13f3b9 100644 --- a/docs/zh-CN/docs/cli/quant/indicator.md +++ b/docs/zh-CN/docs/cli/quant/indicator.md @@ -133,3 +133,21 @@ plot(ta.rsi(close, period), "RSI") ``` 参数按位置匹配:`[21]` 覆盖第一个 `input.*()` 调用。 + +## Navi — 脚本语言 + +OpenPine 脚本由 [Navi](https://navi-lang.org) 驱动——这是一门专为量化分析设计的脚本语言,兼容大多数 PineScript V6 语法。 + +安装 Navi CLI,在将脚本提交至 Longbridge 服务器前先在本地验证: + +```bash +curl -sSL https://navi-lang.org/install | sh -s -- nightly +``` + +安装完成后,可直接运行脚本文件: + +```bash +navi run my_indicator.pine +``` + +这样可以在本地捕获语法错误,避免每次都需要通过 `longbridge quant run` 远程执行。 diff --git a/docs/zh-HK/docs/cli/quant/indicator.md b/docs/zh-HK/docs/cli/quant/indicator.md index 5d126fa03..48ca2cdbd 100644 --- a/docs/zh-HK/docs/cli/quant/indicator.md +++ b/docs/zh-HK/docs/cli/quant/indicator.md @@ -133,3 +133,21 @@ plot(ta.rsi(close, period), "RSI") ``` 參數按位置匹配:`[21]` 覆蓋第一個 `input.*()` 調用。 + +## Navi — 腳本語言 + +OpenPine 腳本由 [Navi](https://navi-lang.org) 驅動——這是一門專為量化分析設計的腳本語言,相容大多數 PineScript V6 語法。 + +安裝 Navi CLI,在將腳本提交至 Longbridge 伺服器前先在本地驗證: + +```bash +curl -sSL https://navi-lang.org/install | sh -s -- nightly +``` + +安裝完成後,可直接執行腳本檔案: + +```bash +navi run my_indicator.pine +``` + +這樣可以在本地捕獲語法錯誤,避免每次都需要透過 `longbridge quant run` 遠端執行。 From 45f166a962205b663d815848d0d243e18a9be4c6 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 17 Jul 2026 18:46:16 +0800 Subject: [PATCH 2/5] Update AppFooter.vue --- docs/.vitepress/theme/components/AppFooter.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/theme/components/AppFooter.vue b/docs/.vitepress/theme/components/AppFooter.vue index 4add11c24..cfb6c2e3e 100644 --- a/docs/.vitepress/theme/components/AppFooter.vue +++ b/docs/.vitepress/theme/components/AppFooter.vue @@ -64,7 +64,7 @@ const year = new Date().getFullYear()
  • CLI
  • MCP
  • LLMs
  • -
  • Navi
  • +
  • Navi
  • From 5e34550fee973ae96027c5aaf49b0ca2ee93e4ee Mon Sep 17 00:00:00 2001 From: Endless Agent Date: Fri, 17 Jul 2026 10:49:10 +0000 Subject: [PATCH 3/5] chore: update quant index and indicator docs across all locales Generated by Endless task #39. Co-authored-by: Huacnlee Li Huashun --- docs/en/docs/cli/quant/index.md | 6 +++--- docs/en/docs/cli/quant/indicator.md | 2 +- docs/zh-CN/docs/cli/quant/index.md | 6 +++--- docs/zh-CN/docs/cli/quant/indicator.md | 2 +- docs/zh-HK/docs/cli/quant/index.md | 6 +++--- docs/zh-HK/docs/cli/quant/indicator.md | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/en/docs/cli/quant/index.md b/docs/en/docs/cli/quant/index.md index 23475946f..6c46139e9 100644 --- a/docs/en/docs/cli/quant/index.md +++ b/docs/en/docs/cli/quant/index.md @@ -27,13 +27,13 @@ Pipe a file instead of using `--script`: cat strategy.pine | longbridge quant run TSLA.US --start 2024-01-01 --end 2024-12-31 ``` -## Script Language — OpenPine +## Script Language — Navi -Scripts are written in **OpenPine** — an independent indicator scripting language compatible with most **PineScript V6** syntax. Existing Pine scripts work with little to no modification. +Scripts are written in **Navi** — an independent indicator scripting language compatible with most **PineScript V6** syntax. Existing Pine scripts work with little to no modification. ### Script Types -Every OpenPine script must begin with one of these declarations — it determines the execution mode: +Every Navi script must begin with one of these declarations — it determines the execution mode: | Declaration | Purpose | | ----------- | ------- | diff --git a/docs/en/docs/cli/quant/indicator.md b/docs/en/docs/cli/quant/indicator.md index 13eb2507f..094ede681 100644 --- a/docs/en/docs/cli/quant/indicator.md +++ b/docs/en/docs/cli/quant/indicator.md @@ -136,7 +136,7 @@ Parameters are matched positionally: `[21]` replaces the first `input.*()` call. ## Navi — The Script Language -OpenPine scripts are powered by [Navi](https://navi-lang.org) — a scripting language +Scripts run on [Navi](https://navi-lang.org) — a scripting language designed for quantitative analysis, compatible with most PineScript V6 syntax. Install the Navi CLI to validate scripts locally before running them on Longbridge servers: diff --git a/docs/zh-CN/docs/cli/quant/index.md b/docs/zh-CN/docs/cli/quant/index.md index 6709ff94c..b06884f02 100644 --- a/docs/zh-CN/docs/cli/quant/index.md +++ b/docs/zh-CN/docs/cli/quant/index.md @@ -27,13 +27,13 @@ longbridge quant run \ cat strategy.pine | longbridge quant run TSLA.US --start 2024-01-01 --end 2024-12-31 ``` -## 脚本语言 — OpenPine +## 脚本语言 — Navi -脚本使用 **OpenPine** 编写 — 一种独立的指标脚本语言,兼容大部分 **PineScript V6** 语法,现有 Pine 脚本无需或只需少量修改即可直接运行。 +脚本使用 **Navi** 编写 — 一种独立的指标脚本语言,兼容大部分 **PineScript V6** 语法,现有 Pine 脚本无需或只需少量修改即可直接运行。 ### 脚本类型 -每个 OpenPine 脚本必须以其中一个声明开头,它决定了脚本的执行模式: +每个 Navi 脚本必须以其中一个声明开头,它决定了脚本的执行模式: | 声明 | 用途 | | ---- | ---- | diff --git a/docs/zh-CN/docs/cli/quant/indicator.md b/docs/zh-CN/docs/cli/quant/indicator.md index 77f13f3b9..74b77be06 100644 --- a/docs/zh-CN/docs/cli/quant/indicator.md +++ b/docs/zh-CN/docs/cli/quant/indicator.md @@ -136,7 +136,7 @@ plot(ta.rsi(close, period), "RSI") ## Navi — 脚本语言 -OpenPine 脚本由 [Navi](https://navi-lang.org) 驱动——这是一门专为量化分析设计的脚本语言,兼容大多数 PineScript V6 语法。 +脚本运行于 [Navi](https://navi-lang.org)——这是一门专为量化分析设计的脚本语言,兼容大多数 PineScript V6 语法。 安装 Navi CLI,在将脚本提交至 Longbridge 服务器前先在本地验证: diff --git a/docs/zh-HK/docs/cli/quant/index.md b/docs/zh-HK/docs/cli/quant/index.md index a54f1751a..d7634ef46 100644 --- a/docs/zh-HK/docs/cli/quant/index.md +++ b/docs/zh-HK/docs/cli/quant/index.md @@ -27,13 +27,13 @@ longbridge quant run \ cat strategy.pine | longbridge quant run TSLA.US --start 2024-01-01 --end 2024-12-31 ``` -## 腳本語言 — OpenPine +## 腳本語言 — Navi -腳本使用 **OpenPine** 編寫 — 一種獨立的指標腳本語言,兼容大部分 **PineScript V6** 語法,現有 Pine 腳本無需或只需少量修改即可直接運行。 +腳本使用 **Navi** 編寫 — 一種獨立的指標腳本語言,兼容大部分 **PineScript V6** 語法,現有 Pine 腳本無需或只需少量修改即可直接運行。 ### 腳本類型 -每個 OpenPine 腳本必須以其中一個聲明開頭,它決定了腳本的執行模式: +每個 Navi 腳本必須以其中一個聲明開頭,它決定了腳本的執行模式: | 聲明 | 用途 | | ---- | ---- | diff --git a/docs/zh-HK/docs/cli/quant/indicator.md b/docs/zh-HK/docs/cli/quant/indicator.md index 48ca2cdbd..7e3e6ecf0 100644 --- a/docs/zh-HK/docs/cli/quant/indicator.md +++ b/docs/zh-HK/docs/cli/quant/indicator.md @@ -136,7 +136,7 @@ plot(ta.rsi(close, period), "RSI") ## Navi — 腳本語言 -OpenPine 腳本由 [Navi](https://navi-lang.org) 驅動——這是一門專為量化分析設計的腳本語言,相容大多數 PineScript V6 語法。 +腳本運行於 [Navi](https://navi-lang.org)——這是一門專為量化分析設計的腳本語言,相容大多數 PineScript V6 語法。 安裝 Navi CLI,在將腳本提交至 Longbridge 伺服器前先在本地驗證: From bc4078c5230e59be425c624a0b4328726ebadbea Mon Sep 17 00:00:00 2001 From: Endless Agent Date: Fri, 17 Jul 2026 10:51:10 +0000 Subject: [PATCH 4/5] chore: update quant index and indicator docs across all locales Generated by Endless task #39. Co-authored-by: Huacnlee Li Huashun --- docs/en/docs/cli/quant/index.md | 2 +- docs/en/docs/cli/quant/indicator.md | 2 +- docs/zh-CN/docs/cli/quant/index.md | 2 +- docs/zh-CN/docs/cli/quant/indicator.md | 2 +- docs/zh-HK/docs/cli/quant/index.md | 2 +- docs/zh-HK/docs/cli/quant/indicator.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/docs/cli/quant/index.md b/docs/en/docs/cli/quant/index.md index 6c46139e9..e4a75ed4f 100644 --- a/docs/en/docs/cli/quant/index.md +++ b/docs/en/docs/cli/quant/index.md @@ -29,7 +29,7 @@ cat strategy.pine | longbridge quant run TSLA.US --start 2024-01-01 --end 2024-1 ## Script Language — Navi -Scripts are written in **Navi** — an independent indicator scripting language compatible with most **PineScript V6** syntax. Existing Pine scripts work with little to no modification. +Scripts are written in **Navi** — an independent indicator scripting language for quantitative analysis. ### Script Types diff --git a/docs/en/docs/cli/quant/indicator.md b/docs/en/docs/cli/quant/indicator.md index 094ede681..8852a27e5 100644 --- a/docs/en/docs/cli/quant/indicator.md +++ b/docs/en/docs/cli/quant/indicator.md @@ -137,7 +137,7 @@ Parameters are matched positionally: `[21]` replaces the first `input.*()` call. ## Navi — The Script Language Scripts run on [Navi](https://navi-lang.org) — a scripting language -designed for quantitative analysis, compatible with most PineScript V6 syntax. +designed for quantitative analysis. Install the Navi CLI to validate scripts locally before running them on Longbridge servers: diff --git a/docs/zh-CN/docs/cli/quant/index.md b/docs/zh-CN/docs/cli/quant/index.md index b06884f02..25263f421 100644 --- a/docs/zh-CN/docs/cli/quant/index.md +++ b/docs/zh-CN/docs/cli/quant/index.md @@ -29,7 +29,7 @@ cat strategy.pine | longbridge quant run TSLA.US --start 2024-01-01 --end 2024-1 ## 脚本语言 — Navi -脚本使用 **Navi** 编写 — 一种独立的指标脚本语言,兼容大部分 **PineScript V6** 语法,现有 Pine 脚本无需或只需少量修改即可直接运行。 +脚本使用 **Navi** 编写 — 一种面向量化分析的独立指标脚本语言。 ### 脚本类型 diff --git a/docs/zh-CN/docs/cli/quant/indicator.md b/docs/zh-CN/docs/cli/quant/indicator.md index 74b77be06..ba14e0cb7 100644 --- a/docs/zh-CN/docs/cli/quant/indicator.md +++ b/docs/zh-CN/docs/cli/quant/indicator.md @@ -136,7 +136,7 @@ plot(ta.rsi(close, period), "RSI") ## Navi — 脚本语言 -脚本运行于 [Navi](https://navi-lang.org)——这是一门专为量化分析设计的脚本语言,兼容大多数 PineScript V6 语法。 +脚本运行于 [Navi](https://navi-lang.org)——这是一门专为量化分析设计的脚本语言。 安装 Navi CLI,在将脚本提交至 Longbridge 服务器前先在本地验证: diff --git a/docs/zh-HK/docs/cli/quant/index.md b/docs/zh-HK/docs/cli/quant/index.md index d7634ef46..a60ce96e6 100644 --- a/docs/zh-HK/docs/cli/quant/index.md +++ b/docs/zh-HK/docs/cli/quant/index.md @@ -29,7 +29,7 @@ cat strategy.pine | longbridge quant run TSLA.US --start 2024-01-01 --end 2024-1 ## 腳本語言 — Navi -腳本使用 **Navi** 編寫 — 一種獨立的指標腳本語言,兼容大部分 **PineScript V6** 語法,現有 Pine 腳本無需或只需少量修改即可直接運行。 +腳本使用 **Navi** 編寫 — 一種面向量化分析的獨立指標腳本語言。 ### 腳本類型 diff --git a/docs/zh-HK/docs/cli/quant/indicator.md b/docs/zh-HK/docs/cli/quant/indicator.md index 7e3e6ecf0..56b4fa10c 100644 --- a/docs/zh-HK/docs/cli/quant/indicator.md +++ b/docs/zh-HK/docs/cli/quant/indicator.md @@ -136,7 +136,7 @@ plot(ta.rsi(close, period), "RSI") ## Navi — 腳本語言 -腳本運行於 [Navi](https://navi-lang.org)——這是一門專為量化分析設計的腳本語言,相容大多數 PineScript V6 語法。 +腳本運行於 [Navi](https://navi-lang.org)——這是一門專為量化分析設計的腳本語言。 安裝 Navi CLI,在將腳本提交至 Longbridge 伺服器前先在本地驗證: From 031f312b024f3467ae94e27aae592130c6ce13be Mon Sep 17 00:00:00 2001 From: Endless Agent Date: Fri, 17 Jul 2026 10:51:49 +0000 Subject: [PATCH 5/5] chore: update indicator docs in en, zh-CN, and zh-HK Generated by Endless task #39. Co-authored-by: Huacnlee Li Huashun --- docs/en/docs/cli/quant/indicator.md | 2 +- docs/zh-CN/docs/cli/quant/indicator.md | 2 +- docs/zh-HK/docs/cli/quant/indicator.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/docs/cli/quant/indicator.md b/docs/en/docs/cli/quant/indicator.md index 8852a27e5..9e8c12d11 100644 --- a/docs/en/docs/cli/quant/indicator.md +++ b/docs/en/docs/cli/quant/indicator.md @@ -142,7 +142,7 @@ designed for quantitative analysis. Install the Navi CLI to validate scripts locally before running them on Longbridge servers: ```bash -curl -sSL https://navi-lang.org/install | sh -s -- nightly +curl -fsSL https://navi-lang.org/install.sh | sh ``` Once installed, run a script file directly: diff --git a/docs/zh-CN/docs/cli/quant/indicator.md b/docs/zh-CN/docs/cli/quant/indicator.md index ba14e0cb7..b9933750c 100644 --- a/docs/zh-CN/docs/cli/quant/indicator.md +++ b/docs/zh-CN/docs/cli/quant/indicator.md @@ -141,7 +141,7 @@ plot(ta.rsi(close, period), "RSI") 安装 Navi CLI,在将脚本提交至 Longbridge 服务器前先在本地验证: ```bash -curl -sSL https://navi-lang.org/install | sh -s -- nightly +curl -fsSL https://navi-lang.org/install.sh | sh ``` 安装完成后,可直接运行脚本文件: diff --git a/docs/zh-HK/docs/cli/quant/indicator.md b/docs/zh-HK/docs/cli/quant/indicator.md index 56b4fa10c..bdf1eb87c 100644 --- a/docs/zh-HK/docs/cli/quant/indicator.md +++ b/docs/zh-HK/docs/cli/quant/indicator.md @@ -141,7 +141,7 @@ plot(ta.rsi(close, period), "RSI") 安裝 Navi CLI,在將腳本提交至 Longbridge 伺服器前先在本地驗證: ```bash -curl -sSL https://navi-lang.org/install | sh -s -- nightly +curl -fsSL https://navi-lang.org/install.sh | sh ``` 安裝完成後,可直接執行腳本檔案: