我有一个交易策略但是不会写ea有大神帮忙写下吗...
//+------------------------------------------------------------------+ //| AG.mq4 | //| Alksnis Gatis | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Alksnis Gatis" #property link "http://www.metaquotes.net" //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ extern double 下注数量=0.1; //自定义 extern double 止损=200; //自定义 extern double 止盈=200; //自定义 extern double 滑点=30; //自定义 int start() //ea 开始运行 { if( //如果 OrdersTotal()==0 //没有单可以下注 ){ OrderSend(Symbol(),OP_BUY,下注数量,Ask,滑点,Ask-止损*Point,Ask+止盈*Point,"""",16384,0,Green); OrderSend(Symbol(),OP_SELL,下注数量,Bid,滑点,Bid+止损*Point,Bid-止盈*Point,"""",16384,0,Red); } return(0); } //+-------------------- GAME OWER --------------------------------+ |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1