|
添加魔术代码后样式(魔术代码=区分该ea之外的单子)
- #property copyright "Copyright 2016, MetaQuotes Software Corp."
- #property link "https://my.fx3q.com"
- #property version "1.00"
- #property strict
- #define MAGICMA 20030618
- int ticket4,ticket3;
- int OnInit()
- { return(INIT_SUCCEEDED); }
- void OnDeinit(const int reason)
- { }
- void OnTick()
- {
- for (int i=1; i<=5; i++) {
- if(OrdersTotal()>=10)
- { Print("TakeProfit less than 1000");
- return;}
- ticket4=OrderSend(Symbol(),OP_SELL,20,Bid,3,0,0,"",MAGICMA,0,Red);
- ticket3=OrderSend(Symbol(),OP_BUY,20,Ask,0,0,0,"",MAGICMA,0,Blue); }
- }
复制代码
|
|