Repository navigation
Releases
Releases · TalyxTerminal/TalyxTerminal
TalyxTerminal 0.2.1
What's new
Chart
- Built-in indicators have their colours as inputs, as on TradingView: MACD's four histogram colours, Volume's up and down, Funding rate and Basis positive and negative, CVD and Open interest up and down, the Ichimoku cloud, and the three volume profiles (up, down and POC). They look the same until you change them. Alerts and screens built on these indicators show that the indicator was updated and keep running on the version they were made with.
- A colour picked in an indicator's Style tab now applies, also where the script colours each bar (EMA kept its blue before). It paints the whole output in one colour; Defaults › Reset settings brings back the script's colours. Fills, backgrounds, candles and horizontal lines follow the same rule, and a horizontal line's width and line style apply.
- Bars a script colours
naare not drawn: line segments, fills, shapes andplot(x, color=na). - Fills are drawn under the indicator's lines.
- CVD and Open interest are coloured by rise and fall.
- Your own indicators with colour or enum inputs can be added to a chart; enum inputs are a dropdown, time inputs a date and time picker.
- An indicator file put in the indicators folder by hand shows in My indicators when you open Indicators, without reloading.
- Basis no longer draws its data-window-only lines, which squeezed its columns.
- Indicators on monthly, quarterly and yearly charts that read lower-timeframe bars read each calendar month, quarter or year. Before, a month could miss its last days or take the first days of the next one.
request.security(..., lookahead=barmerge.lookahead_on), TradingView's usual way to take yesterday's close without repainting, gives a value on every bar, including the forming one. Before, it had a value only on the last bar of each day.- Funding rate and Open interest show their first points as soon as they arrive on a new install, instead of waiting a minute; where no history exists, they say so at once.
- The AI has a guide for bringing over TradingView Pine scripts: it asks for libraries' source, says what cannot be brought over (protected scripts, strategy orders) and where Chart may differ from TradingView.
- Editing an existing alert saves. Before, saving failed and the alert kept its old condition.
- An edited screen runs again with its new conditions. A new screen's starting value no longer follows the price.
- A screen still running when TALYX closes shows that it was interrupted and can be run again; closing its workspace stops it and keeps the rows found.
- "Once per minute" alerts no longer fire again within the minute after reopening a workspace.
- A chart change that fails to save leaves the chart as it was, ready to try again; before, the chart showed the change, a retry conflicted and a restart lost it.
- Colours the AI passes as short hex (
#F00) are read correctly; other forms are refused with how to write them.
Market
- Exporting a contract's trade and mark prices together writes a file for each instead of mixing both in one. Exporting a mark-price row from the panel exports mark prices (it exported trade prices twice).
- Exports of funding rates and open interest download missing data first, as they do for bars.
- A batch export asks only for the price bases you chose; a series that cannot be downloaded is left out alone and named, and the instrument's other series are still exported.
- Bar times across the last day of a bundled exchange calendar return the known sessions instead of an error.
Quant
- Weekly and monthly aligned allocations keep a halted asset's move: the period it trades again carries the change from its last price. Before, the move counted as zero. Library tracking after publication follows.
- Weekly and monthly prices are dated on the period's last trading day, so weekly US allocations whose week ends on a holiday (Good Friday) can be published.
- "Exclude names listed under 1 year" counts a calendar year; crypto entered about four months early before.
- With a fixed risk-free rate (A shares' default 4% a year), the library's Sharpe since publication is computed; weekly and monthly allocations' library volatility and Sharpe use the right periods a year and no longer report a false drift.
Developer
- A file changed on disk under your edits is marked on its tab, and above the editor you choose: Compare, Use disk version or Keep mine. The External changes sheet and the full-width banner are gone.
- Keep mine after Compare applies to the version you compared; if the file changed again on disk, the new difference is shown instead of being overwritten.
- Text files of about 9 MB and more, under the editor's 16 MB limit, open.
Agent
- Spending limits count spending in every currency: the overall limit and each bot's convert other currencies at the European Central Bank's daily reference rates, fetched online once a day. Before, a bot could be paused by mistake after the billing currency changed, or spend in another currency without limit. If a rate has never been fetched, paid requests are refused with the reason.
- A group message with an image goes to the bots that can read it and names those that cannot; it is no longer shown as failed, so nothing is sent twice.
- Deleting a routine also stops its runs still waiting in the queue.
Platform
- Uninstalling a module removes its code and keeps its data: installed again, it finds its data. Modules you installed or wrote move to
installed-modulesin your personal folder on the first start; their old folders stay as they are and keep the modules' data. - A module whose files are in use can be uninstalled again after you close the program holding them; it stays in the list until then.
- Reload picks up every changed file of an installed module, not only its entry file.
- Saving a workspace that TALYX could not open again is refused, and the saved workspace stays as it was.
更新内容
图表
- 内置指标的颜色改为参数,和 TradingView 一样:MACD 柱的四种颜色、成交量的涨跌色、资金费率和基差的正负色、CVD 和持仓量的涨跌色、一目均衡表的云,以及三个成交量分布(上涨、下跌和 POC)。不改时样子不变。建在这些指标上的警报和筛选会提示指标已更新,照旧按建立时的版本运行。
- 在指标"样式"里选的颜色现在会生效,脚本逐根配色的输出也一样(以前 EMA 改色后仍是蓝色)。选色后整条输出用这一种颜色;"默认值 › 重置设置"恢复脚本原来的配色。填充、背景色、蜡烛和水平线同样如此,水平线的线宽、线型也会生效。
- 脚本设为
na(不显示)的地方不再画出来:线段、填充、标记,以及plot(x, color=na)。 - 填充画在指标线下面。
- CVD 和持仓量按涨跌分色。
- 带颜色或枚举参数的自写指标可以加到图上;枚举参数是下拉框,时间参数是日期时间选择框。
- 手动放进指标文件夹的文件,打开"指标"就出现在"我的指标"里,不用刷新页面。
- 基差指标不再画出只该在数据窗口显示的线(以前会把柱子压扁)。
- 月线、季线、年线上读小周期数据的指标,按自然月、季、年读取。以前一个月可能少读月底几天,或多读下个月头几天。
request.security(..., lookahead=barmerge.lookahead_on)(TradingView 上取昨日收盘又不重绘的常用写法)每根 K 线都有值,包括正在形成的那根。以前只有每天最后一根有值。- 新安装后,资金费率和持仓量指标收到第一批数据就显示,不再空等一分钟;确实没有历史数据时会马上说明。
- AI 有了转换 TradingView Pine 脚本的指南:会向你要引用的库的源码,说明哪些搬不过来(不公开源码的脚本、策略的下单部分),以及哪里可能和 TradingView 不同。
- 修改已有警报可以保存了。以前保存会报错,警报继续按旧条件运行。
- 改过条件的筛选可以重新运行。新建筛选的初始数值不再跟着行情跳。
- 筛选运行到一半时关掉 TALYX,再打开会显示运行中断,可以直接重跑;关闭工作区会停止它在跑的筛选,保留已经找到的结果。
- 设为"每分钟一次"的警报,重开工作区后不会不到一分钟又响一次。
- 图表改动保存失败时,图表保持原样,可以直接重试。以前界面上已经改了,重试会冲突,重启后改动丢失。
- AI 用简写颜色(如
#F00)改指标颜色时能正确识别;写法不对会提示该怎么写。
行情
- 同时导出同一合约的成交价和标记价,会各写一个文件,不再混在一起。在面板里导出标记价那一行,导出的就是标记价(以前会导出两遍成交价)。
- 导出资金费率和未平仓量时,会先下载缺少的数据,和 K 线一样。
- 批量导出只请求你选的价格口径;某条序列下载不到时只少这一条,并写明是哪条,同一品种的其他序列照常导出。
- 查询跨过内置交易日历最后一天的 K 线时间,返回已知的交易时段,不再报错。
量化
- 按周或按月对齐的资产配置,某资产整期停牌时,复牌那一期计入从停牌前最后价格起的整段涨跌。以前这段涨跌按零算。成果库发布后的跟踪也一样。
- 周、月价格标在该期最后一个交易日,所以一周最后一天是假日(如耶稣受难日)的美股按周对齐配置也能发布了。
- "排除上市不足一年"按日历上的一整年算;以前对加密货币会提前约四个月放入。
- 使用固定无风险利率(A 股默认年化 4%)的配置,成果库能算出"发布后的夏普比率";按周、按月对齐的配置在成果库里的波动率和夏普按正确的每年期数计算,不再误报风险跑偏。
开发
- 文件在你编辑期间被外部改动时,标签上会有标记,编辑器上方直接给出"比较""使用磁盘版本""保留我的";去掉了原来的"外部更改"侧栏和整条横幅。
- 比较后点"保留我的",只对你比较过的那个版本生效;如果磁盘上的文件又变了,会重新显示差异,不会覆盖你没看过的修改。
- 约 9 MB 以上、但在编辑器 16 MB 上限以内的文本文件可以打开了。
Agent
- 花费上限会计入所有币种的花费:总上限和每个 Bot 的上限都按欧洲央行每日参考汇率(每天联网获取一次)把其他币种折算进来。以前切换计费币种后 Bot 可能被误停,或用其他币种花费时不受上限约束。从未取到某种汇率时,要花钱的调用会被拒绝并说明原因。
- 带图片的群消息会发给能读图的 Bot,并列出没收到的 Bot 和原因;不再显示成整条失败,也就不会重复发送。
- 删除日程时,它在队列里还没开始的运行也会一起撤掉。
平台
- 卸载模块只删除代码,保留它的数据,重新安装后数据还在。你安装或编写的模块,第一次启动新版本时会移到个人文件夹的
installed-modules里;原来的文件夹原样保留,继续存放模块的数据。 - 模块文件被其他程序占用导致卸载失败时,模块仍留在列表里,关闭占用的程序后可以再卸载。
- 点 Reload 会加载已安装模块所有改过的文件,不只是入口文件。
- TALYX 打不开的工作区不会被保存,原来保存的工作区保持不变。
TalyxTerminal 0.2.0
What's new
Platform
- New user guide:
docs/user-guide.md(English) anddocs/user-guide.zh-CN.md(简体中文). - Simplified Chinese interface: Settings › General › Language.
- One-click update: when a new version is out, Update downloads the installer, checks its SHA-256 checksum, installs and reopens TALYX. The first start of a new version shows its notes once.
- Upgrades keep your workspaces, data and settings; the installer asks you to quit TALYX first.
Market
- Paid sources: with a Sharadar key, delisted US stocks are listed and priced, so past S&P 500 members that were delisted or acquired have prices. Tushare adds monthly index weights and share counts. Databento adds the EQUS.MINI and EQUS.SUMMARY datasets.
- Sharadar, Tushare, Alpaca and Databento have a Requests per minute setting; set it to your plan's limit.
- CSI 300, CSI 500 and SSE 50 members over time, from Baostock's weekly lists, under Get data.
- A-share industry is kept by date (the CSRC classification, read quarterly).
- Hong Kong board lots from the HKEX list of securities.
Quant
- Industry as known on each date: A-share neutralisation, industry ranks and groups, and the strategy sector cap follow each day's classification; the sector cap now works for A shares. US and Hong Kong stocks still have only the current classification.
- In code,
q.data().industryis now a table of dates by instruments instead of one label per instrument: useindustry.loc[date, symbol], orindustry.iloc[-1]for the latest labels. - Notebooks read prices adjusted for splits and dividends by default, like factors, models and strategies. Pass
adjustment="split"toq.data(...)for the previous default. - A stock whose prices stop (delisted, or no later data) exits at its last close in every kind of run.
- Halted days leave a stock out of that day's cross-section in factor research instead of failing the run.
- Names without prices are left out of a symbol-list run with a note; the run fails only when none is left.
- Orders from your code round down to whole lots: 100 shares for A shares (a final odd lot sells with the last lot), board lots for Hong Kong.
- Strategy benchmarks default by market (SPY, CSI 300, 02800.HK; crypto: buy and hold of what it trades), as do risk-free rates (13-week T-bill for US and Hong Kong, 4% a year for A shares, zero for crypto). Allocations have a tracking-benchmark setting (default 60% SPY, 40% IEF).
- Crypto fees per symbol; where the exchange lists none, its standard tier is used and shown as assumed.
- Large index backtests use less memory (S&P 500 Top 50, 2015–2024: peak 4.8 → 3.0 GB). A run over the memory estimate waits and runs alone instead of being refused.
- No caps on sweeps, walk-forwards and model batches; one estimated at over ten minutes asks first.
- A notebook's kernel keeps running when you go to another page of the panel; closing the panel stops it.
- Stopped library versions can still be backtested.
- The "short sample" tag is gone.
更新内容
平台
- 新增使用指南:
docs/user-guide.md(英文)和docs/user-guide.zh-CN.md(简体中文)。 - 界面支持简体中文:设置 › 通用 › 语言。
- 一键更新:有新版本时点“更新”,下载安装包、核对 SHA-256 校验值、安装后重新打开 TALYX。新版本第一次启动时显示一次更新内容。
- 升级保留你的工作区、数据和设置;安装前会请你先退出 TALYX。
行情
- 付费数据源:填了 Sharadar 密钥后,美股退市股会列入名单并有价格,标普 500 里已退市、被收购的历史成分因此有价格。Tushare 新增指数月度权重和股本。Databento 新增 EQUS.MINI 和 EQUS.SUMMARY 数据集。
- Sharadar、Tushare、Alpaca 和 Databento 可设置“每分钟请求数”,填你所购套餐的上限。
- “获取数据”新增沪深 300、中证 500 和上证 50 的历史成分(Baostock 每周名单)。
- A 股行业按日期保存(证监会分类,每季度读取)。
- 港股每手股数取自港交所证券名单。
量化
- 行业按当时已知的分类:A 股的中性化、行业内排名和分组、策略的行业上限都按当天的行业;行业上限现在对 A 股也有效。美股、港股仍只有当前分类。
- 代码里的
q.data().industry改为“日期 × 品种”的表,不再是每个品种一个标签:请用industry.loc[日期, 代码],或用industry.iloc[-1]取最新的行业。 - 笔记本读价格默认按拆股和分红复权,和因子、模型、策略一致。需要原来的默认时给
q.data(...)传adjustment="split"。 - 价格中途断掉的股票(退市,或数据源之后没有数据)在各类运行里都按最后一根收盘价退出。
- 因子研究中,停牌的股票不进当天的截面,不再让整次运行失败。
- 按代码列表运行时,没有价格的名字会被剔除并注明;只有一个都不剩时才失败。
- 代码下单按整手向下取整:A 股 100 股(剩下的零股随最后一手卖出),港股按每手股数。
- 策略的默认基准按市场(SPY、沪深 300、02800.HK;加密为所交易品种的买入并持有),无风险利率也按市场(美股、港股用 13 周美国国债利率,A 股固定年化 4%,加密为 0)。资产配置新增跟踪基准设置(默认 60% SPY、40% IEF)。
- 加密货币手续费按品种计算;交易所没给费率时,使用它的标准费率并标为假设值。
- 大型指数回测更省内存(标普 500 前 50 只,2015–2024:峰值 4.8 → 3.0 GB)。超出内存估计的运行改为排队后单独运行,不再被拒绝。
- 参数扫描、滚动验证和模型批量训练不再限制数量;估计超过 10 分钟的会先询问。
- 在面板里切到别的页面时,笔记本内核继续运行;关闭面板才停止。
- 已停用的成果库版本仍可用于回测。
- 去掉了 “short sample” 标签。
TalyxTerminal v0.1.0
Initial public release of TalyxTerminal for Windows x64.
Download TALYX-Setup-x64.exe to install the desktop app. The matching NautilusTrader wheel and source archive are included below.