- 一月 22, 2014
- 發表者: 外匯維基團隊
- 類別: 專家顧問
姓名: |
|
||
作者: | forexavatar (2010.03.14 00:57) | ||
已下載: | 6117 | ||
下載: |
|
||
描述:This is a small example of using news trading strategy. There are few strategies. I described them all on my site and add my article to the pipswanted.com blog aggregator here: http://pipswanted.com/Trading-News-Working-Methods-%C2%B7-ForexFellowcom-Making-forex-trading-Easy. I wrote about four different strategies to play news. This simple EA includes one and the most interesting of these strategies in my opinion. Here is description of the strategy: Here is sample code: 如果(orderOpenDate == currentDate) { //we place 2 命令: buy stop and sell stop if(票 < 1) { orderAsk = Ask - bias * 觀點; orderBid = Bid - bias * 觀點; ticket=OrderSend(象徵(),OP_SELLSTOP,很多,orderBid,1,orderAsk+Point*sl,orderBid-tp*Point,"NewsTrader",2,0,紅色的); } 如果(ticket2 < 1) { orderAsk = Ask + bias * 觀點; orderBid = Bid + bias * 觀點; ticket2=OrderSend(象徵(),OP_BUYSTOP,很多,orderAsk,1,orderBid-Point*sl,orderAsk+tp*Point,"NewsTrader",2,0,綠色的); } } 建議:
|