regist001さんのプロフィール

生年月日
2010年6月13日
参考にするもの・情報源
http://twitter.com/regist001
自己紹介
#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);
}

フォロー/フォロワー

  • フォロー(0人)
  • フォロワー(0人)

フォローしている会員がいません