源代碼

0
(0)
姓名:
源代碼
作者: 我 (2011.05.10 10:06)
已下載: 4048
下載:
Source Code 1
源代碼.mq4 (3.0 KB) 看法

描述:

這是我提供給每個人看和工作的第一個 EA. 這是我寫的. 此 EA 應在 EURUSD 上使用 15 分鐘,初始資本為 $1000. 如果您從 1 月 14 日開始運行此 EA 2011 till today, you might find profit with good profit%.

建議:

  • EURUSD only
  • 15 最小圖表
  • Firstly run this as long, then as short, then as long+ short from 12th Jan till today to see in which direction the wind is blowing. Then please test according to that wind direction.
5 評論 發表新評論, 請 登錄 或者 登記

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 :(.

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.