外汇均线EA编程实例.docxVIP

  • 16
  • 0
  • 约2.89千字
  • 约 9页
  • 2021-01-16 发布于山东
  • 举报
外汇平均线 EA编程实例 int MAGICMA = input double Lots =0.1; input double MaximumRisk =0.02; input double DecreaseFactor=3; input int MovingPeriod =12; input int MovingShift =6; //+---------------------------------------------------------------- --+ //| Calculate open positions | //+---------------------------------------------------------------- --+ int CalculateCurrentOrders(string symbol) { int buys=0,sells=0; //--- for(int i=0;iOrdersTotal();i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break; if(OrderSymbol()==Symbol() OrderMagicNumber()==MAGICMA) { if(OrderType()==OP_BUY)

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档