有您的持续关注
我们会做得更好

mo_bidir_v0_1 EA



mo_bidir_v0_1 EA有人称之为对锁趋势EA。程序简单到了极点。无数次小的亏损博一次大的盈利可能是这款EA唯一值得关注的地方。

本网收集整理智能交易EA仅为MQL4编程爱好者提供语法及相关编程技巧的学习研究之用,智能交易存在极高的风险测试请用模拟盘,请勿用于实盘。mo_bidir_v0_1 EA源码:

//+------------------------------------------------------------------+
//| mo_bidir_v0_1.mq4                                                |
//|                                                                  |
//| - Works best in 5M timeframe                                     |
//| - Bug fix to stop_loss in line 22 2010.04.07                     |
//+------------------------------------------------------------------+
#property copyright "Copyright @2010 - Monu Ogbe"

#define MAGIC  1234
#define IDENT  "mo_bidir_v0_1"

extern double  lots           = 1;
extern double  stop_loss      = 80;   // (8 pips) optimise 50-2000
extern double  take_profit    = 750;  // (75 pips) optimise 50-2000

int            last_bar       = 0;

void deinit() {
  Comment("www.125808047.com");
}

int start(){
   if (last_bar == Bars) return(0);
   last_bar = Bars;
   if (OrdersTotal() == 0){
         bool cg = OrderSend(Symbol(), OP_BUY, lots ,Ask, 3, Ask - stop_loss * Point, Bid + take_profit * Point, IDENT, MAGIC, 0, Blue);
         cg = OrderSend(Symbol(), OP_SELL, lots ,Bid, 3, Bid + stop_loss * Point, Ask - take_profit * Point, IDENT, MAGIC, 0, Red);
   } 
   return(0);
}

如您喜欢此文章请点下面分享按钮↴峰汇在线 » mo_bidir_v0_1 EA
上一篇:
下一篇:
分享到:更多 ()