日本
#property copyright "regist01" #define EANAME "EA_TEST1" extern double MAGIC = 1234; extern double lots = 0.1; extern double stop_loss = 100; extern double take_profit = 100; int nowbar = 0; int start(){ if (nowbar == Bars) return(0); nowbar = Bars; if (OrdersTotal() == 0){ OrderSend(Symbol(), OP_BUY, lots ,Ask, 3, Ask - stop_loss * Point, Bid + take_profit * Point,EANAME, MAGIC, 0, Blue); OrderSend(Symbol(), OP_SELL, lots ,Bid, 3, Bid + stop_loss * Point, Ask - take_profit * Point,EANAME, MAGIC, 0, Red); } return(0); }