boy
- User
boy
- Assistant
Hello! Could you clarify or provide more context about what you're looking for? Are you asking for information, a definition, or something else related to "boy"? Let me know how I can assist!
- User
metaeditor mt5如何用?
- Assistant
MetaEditor 是 MetaTrader 5 (MT5) 平台开发中用于编写和编辑程序代码的工具,它主要用于开发交易策略(EA、指标、脚本等)。如果你对 MetaEditor 的使用不太熟悉,以下是一个简单的入门指南:
1. 打开 MetaEditor
- 在 MT5 平台界面上,点击“工具”菜单(或者快捷方式 Ctrl+D),然后选择“MetaQuotes 语言编辑器”。
- 或者,你也可以直接按快捷键 F4 进入 MetaEditor。
2. 创建新文件
在 MetaEditor 主界面中:
- 点击工具栏上的“新建”按钮,或者在菜单栏选择 文件 -> 新建。
- 打开“向导”窗口,根据需要选择要创建的文件类型:
- EA(交易机器人/自动化策略)
- 指标
- 脚本
- 函数库
- 填写文件的名称,并填写作者信息(可选),然后点击“完成”。
- MetaEditor 会生成一个模板代码供你使用。
3. 编辑代码
- User
簡單測試並打印的教學?
- Assistant
如果你是第一次使用 MetaEditor,希望学习如何简单地编写代码以测试和打印输出(调试用),以下是一个详细的入门教学。我们会编写一个脚本,在终端窗口中打印基本的信息,例如“Hello, world!” 或一些交易相关的数据。
- User
只有顯示2024.12.14 14:59:54.815 Experts expert test_nana (XAUUSD.x,Daily) loaded successfully
- Assistant
- User
//+------------------------------------------------------------------+ //| test_nana.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { Print("Hello, World!"); // 在终端窗口打印 "Hello, World!"
} //+------------------------------------------------------------------+
- Assistant
- User
2024.12.14 15:02:31.693 Experts expert test_nana (USDJPY.x,H1) loaded successfully
- Assistant
- User
//+------------------------------------------------------------------+ //| test_nany.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //---
//--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- Print("hello world"); } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //---
- Assistant
- User
2024.12.14 17:30:54.383 MQL5 debugger testing launched for debugging 'test_nany.ex5' on history
- Assistant
- User
//+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- printf("hello world"); // 在 EA 加载时打印 "hello world" //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- printf("EA 被移除,Goodbye!"); //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { printf("hello world"); } //+------------------------------------------------------------------+
##傳回的消息只有2024.12.14 17:33:59.628 MQL5 debugger connected 2024.12.14 17:33:59.735 Experts expert test_nany (AUDCAD.x,H1) loaded successfully
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.