- 一月 7, 2014
- 發表者: 外匯維基團隊
- 類別: 專家顧問
暫無評論
1676
1542
姓名: |
|
||
作者: | 我 (2011.05.10 10:06) | ||
已下載: | 4048 | ||
下載: |
|
||
描述:這是我提供給每個人看和工作的第一個 EA. 這是我寫的. 此 EA 應在 EURUSD 上使用 15 分鐘,初始資本為 $1000. 如果您從 1 月 14 日開始運行此 EA 2011 till today, you might find profit with good profit%. 建議:
|
|||
tg2007:
This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. 然而, look at the percent won and the graphs. However also note that the total trade # 低. Hence dont expect a trade right away. Maybe a few trades (less than 5) a month can be expected. int init() { return(0); } int deinit() { return(0); } int start() { int total = OrdersTotal(); 如果 (OrdersTotal() < 1) // I wont open more than 1 trade per time. 如果(小時() > 8 && 小時() < 17) //Will trade during volatile times when people are usually awake if( iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) 如果 ( ( (iMA(無效的,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(無效的,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(無效的, 15, 0.02, 0.2, 0) > 高的[0]) && ( iBearsPower(無效的,15,13,PRICE_CLOSE,0) < 0 && iBearsPower(無效的,15,13,PRICE_CLOSE,0) > iBearsPower(無效的,15,13,PRICE_CLOSE,1))) OrderSend(象徵(),OP_SELL,0.1,Bid,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,紅色的); // Risk/Reward sucks here.. 如果 (OrdersTotal() < 1) // I wont open more than 1 trade per time. 如果(小時() > 8 && 小時() < 17) //Will trade during volatile times when people are usually awake //If the prices are within Boil Band and EMA 3,34 crossover in favor and BullsPower in favor, then trade in buy if( iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) 如果( (高的[1] < iBands(無效的,0,20,2,0,PRICE_LOW,MODE_UPPER,1)) && (高的[2] < iBands(無效的,0,20,2,0,PRICE_LOW,MODE_UPPER,2))) 如果 ( (iMA(無效的,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(無效的,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(無效的, 15, 0.02, 0.2, 0) < 低的[0])&&( iBullsPower(無效的,15,13,PRICE_CLOSE,0) > 0) && (iBullsPower(無效的,15,13,PRICE_CLOSE,0) < iBullsPower(無效的,15,13,PRICE_CLOSE,1))) OrderSend(象徵(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,綠色的);// Risk/Reward sucks here.. } Start testing with 1000USD EURUSD M15 21.05.2011 10:49 tg2007
This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. 然而, look at the percent won and the graphs. However also note that the total trade # 低. Hence dont expect a trade right away. Maybe a few trades (less than 5) a month can be expected.
int init() { return(0); } int deinit() { return(0); } int start() { int total = OrdersTotal(); 如果 (OrdersTotal() < 1) // I wont open more than 1 trade per time. 如果(小時() > 8 && 小時() < 17) //Will trade during volatile times when people are usually awake if( iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) 如果 ( ( (iMA(無效的,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(無效的,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(無效的, 15, 0.02, 0.2, 0) > 高的[0]) && ( iBearsPower(無效的,15,13,PRICE_CLOSE,0) < 0 && iBearsPower(無效的,15,13,PRICE_CLOSE,0) > iBearsPower(無效的,15,13,PRICE_CLOSE,1))) OrderSend(象徵(),OP_SELL,0.1,Bid,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,紅色的); // Risk/Reward sucks here.. 如果 (OrdersTotal() < 1) // I wont open more than 1 trade per time. 如果(小時() > 8 && 小時() < 17) //Will trade during volatile times when people are usually awake //If the prices are within Boil Band and EMA 3,34 crossover in favor and BullsPower in favor, then trade in buy if( iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(無效的,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) 如果( (高的[1] < iBands(無效的,0,20,2,0,PRICE_LOW,MODE_UPPER,1)) && (高的[2] < iBands(無效的,0,20,2,0,PRICE_LOW,MODE_UPPER,2))) 如果 ( (iMA(無效的,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(無效的,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(無效的, 15, 0.02, 0.2, 0) < 低的[0])&&( iBullsPower(無效的,15,13,PRICE_CLOSE,0) > 0) && (iBullsPower(無效的,15,13,PRICE_CLOSE,0) < iBullsPower(無效的,15,13,PRICE_CLOSE,1))) OrderSend(象徵(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,綠色的);// Risk/Reward sucks here.. } 21.05.2011 10:44 tg2007
Can anyone help me with this? Why is this not trading live?
17.05.2011 14:35 tg2007
I am not entirely sure either. WHen I run this on backtest, it does trade nicely. However on real test no trade
17.05.2011 14:28 tg2007
EA compiles OK, but I get no trades at all. Even if I lengthen the time. Thanks anyway, I needed a simple EA to get me writing my own. I think I have problems with my proxy server and the strategy tester :(.
|