欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

清理市场观察 - 一次性删除市场观察窗口中的所有交易品种 - MetaTrader 5 脚本

author emer | 623 人阅读 | 0 人评论 |

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

                                                                         前 :                                                                                                                                                                                                     秒后:

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5                                                              Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

清洁市场观察脚本是一个简单的实用工具,旨在通过单击快速从 MetaTrader 5 市场报价窗口中删除所有交易品种。当您想要使用干净的工作空间重新开始或当您的市场观察因太多符号而变得混乱时,此功能特别有用。

Clean Market Watch -  Removes All Symbols In the Market Watch Windows In One Go - script for MetaTrader 5

随着时间的推移,交易者经常会在市场观察窗口中积累大量符号,从而很难专注于他们积极交易的工具。手动一一删除符号可能既乏味又耗时。该脚本自动执行整个过程,在几秒钟内清除所有符号。它对于删除由于以编程方式添加而拒绝从市场观察窗口中删除的持久符号也很有用。

该脚本使用简单但有效的算法运行:

该脚本使用带 false 参数的 SymbolSelect() 函数从市场报价中删除交易品种。它从最高索引开始以相反的顺序处理符号,确保在整个删除过程中稳定的数组索引。多次迭代处理在第一次传递时可能无法删除的任何符号。

运行此脚本后,您的市场观察将完全清空。您将需要手动添加回您想要监控的任何符号。该脚本不会影响您的交易历史记录、未平仓头寸或挂单 - 它只会修改市场报价显示。

版本: 1.0
平台:元交易者 5
类别:实用脚本

                                          



附件下载

📎 Clean_Market_watch.mq5 (4.23 KB)

Source: MQL5 #65997

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录