Results 13 comments of David

Awesome work! I tried lightweight-charts-v5, and it seems that chart.marker(**data) is incompatible. The entire chart becomes unresponsive, with no clicking or scrolling. Switching back to lightweight-charts resolves the issue. @tran-thanh-phong

> > Awesome work! I tried lightweight-charts-v5, and it seems that chart.marker(**data) is incompatible. The entire chart becomes unresponsive, with no clicking or scrolling. Switching back to lightweight-charts resolves the...

> update_from_tick method just combine volume and change ohlc of last_bar. If the indicator you want to update is just a LINE, you don't need to change the ohlc or...

> ``` > line_name = f"SMA {period}" > if line_name in self._lines: > ma_values = await indicators.calculate_sma(data, period, slice=True) > if not ma_values.empty: > ma_values = ma_values.iloc[-1] > ma_values =...

使用场景,见讨论:https://github.com/MetaCubeX/mihomo/issues/1479#issuecomment-2379333353

> 我认为这个功能不应该只是用来解决所谓的广告问题, 如果更新成现在这样的逻辑的话感觉fake-ip-filter-mode其实是不需要的。 因为已经有返回fake-ip和real-ip的两条路径了。 在这种情况下,不能被匹配到这两条路径中的其他域名我觉得就应该直接上一条兜底路径。 即先匹配real-ip,再匹配fake-ip, 其余的都直接fake-ip,但是这样看起来又多此一举了。 所以我的意见是:直接看fake-ip-filter和real-ip-filter的先后顺序,在后面的做兜底;即如果real-ip-filter在前,那么fake-ip兜底,如果fake-ip-filter,那real-ip兜底。 这样一来至于fake-ip-filter-mode就不需要了。或者像rules那样直接 > > * RULE-SET,Google_CN,real-ip > * RULE-SET,Google_domain,fake-ip > * MATCH,fake-ip/real-ip 我也认为fake-ip-filter-mode是不需要的,如果管理员认可的话可以按你的想法,我如此改动是因为不想影响原有的特性。

@wwqgtxx 好兄弟,麻烦review下,有意见的话可以修改 :)

> 看群里有讨论了一下,break changing的话不会合并,最好是给fake-ip-filter-mode再加个rule模式,然后再套用上面这套装流程来处理。 这是仓库Maintainers的意见吗? 当前改动break changing是指?另外确定最终行为是 ``` fake-ip-filter-mode: rule fake-ip-filter: - rule-set:anti-AD,fake-ip - rule-set:my_proxy,fake-ip - geosite:cn,real-ip - MATCH:fake-ip/real-ip ``` 还是与全局的rules对齐?

Just like this: ``` def clear_drawings(chart): chart.run_script(f'if ({chart.id}.toolBox) {chart.id}.toolBox.clearDrawings()') # add a button that will clear all lines created with toolbox when clicked chart.topbar.button('clear', 'clear_drawings', func=clear_drawings) ``` I also implemented...

> ### Question > Is it possible to delete all lines created with toolbox as one action? chart.lines() function returns nothing for those created by toolbox. I found clearDrawings() function...