找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
首页论坛EAHub 外汇论坛
查看: 9|回复: 0

ea要怎么样才能开单?

[复制链接]

4万

主题

54

回帖

4万

积分

管理员

积分
45954
发表于 2026-8-20 23:28:00 | 显示全部楼层 |阅读模式
ea要怎么样才能开单?

//+------------------------------------------------------------------+

//|                                                           03.mq5 |

//|                                                             UUYU |

//|                                             https://www.mql5.com |

//+------------------------------------------------------------------+

#property copyright  GK

#property link      "https://www.mql5.com"

#property version   "1.00"

//--- input parameters

input string   手数="0.02";

input string   计算方式="整体计算";

input string   整体计算递增手数="0.04";

input string   最大加仓组数="8";

input string   止盈金额="10";

input string   品种设置="---------------品种设置---------------";

input string   品种1="NZDUSD";

input string   品种2="AUDUD";

input bool     品种1为主=true;

input bool     品种2为主=false;

//+------------------------------------------------------------------+

//| Expert initialization function                                   |

//+------------------------------------------------------------------+

int OnInit()

  {

//--- create timer

   EventSetTimer(60);


//---

   return(INIT_SUCCEEDED);

  }

//+------------------------------------------------------------------+

//| Expert deinitialization function                                 |

//+------------------------------------------------------------------+

void OnDeinit(const int reason)

  {

//--- destroy timer

   EventKillTimer();


  }

//+------------------------------------------------------------------+

//| Expert tick function                                             |

//+------------------------------------------------------------------+

void OnTick()

  {

//---


  }

//+------------------------------------------------------------------+

//| Timer function                                                   |

//+------------------------------------------------------------------+

void OnTimer()

  {

//---


  }

//+------------------------------------------------------------------+

//| Trade function                                                   |

//+------------------------------------------------------------------+

void OnTrade()

  {

//---


  }

//+------------------------------------------------------------------+

//| TradeTransaction function                                        |

//+------------------------------------------------------------------+

void OnTradeTransaction(const MqlTradeTransaction& trans,

                        const MqlTradeRequest& request,

                        const MqlTradeResult& result)

  {

//---Open ea to open an order, type 1 to open a long order, and type 2 to open a short order, and the total profit will be $10 to close all positions, and then the cycle will continue.


  }

//+------------------------------------------------------------------+

//| Tester function                                                  |

//+------------------------------------------------------------------+

double OnTester()

  {

//---

   double ret=0.0;

//---


//---

   return(ret);

  }

//+------------------------------------------------------------------+

//| TesterInit function                                              |

//+------------------------------------------------------------------+

void OnTesterInit()

  {

//---


  }

//+------------------------------------------------------------------+

//| TesterPass function                                              |

//+------------------------------------------------------------------+

void OnTesterPass()

  {

//---


  }

//+------------------------------------------------------------------+

//| TesterDeinit function                                            |

//+------------------------------------------------------------------+

void OnTesterDeinit()

  {

//---


  }

//+------------------------------------------------------------------+

//| ChartEvent function                                              |

//+------------------------------------------------------------------+

void OnChartEvent(const int id,

                  const long &lparam,

                  const double &dparam,

                  const string &sparam)

  {

//---


  }

//+------------------------------------------------------------------+

//| BookEvent function                                               |

//+------------------------------------------------------------------+

void OnBookEvent(const string &symbol)

  {

//---


  }

//+------------------------------------------------------------------+
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|EAHub外汇论坛

GMT+8, 2026-10-10 22:08 , Processed in 0.127926 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表