Código fuente

0
(0)
Nombre:
Código fuente
Autor: A mí (2011.05.10 10:06)
descargado: 4048
Descargar:
Source Code 1
CódigoFuente.mq4 (3.0 Kb) Vista

Descripción:

Este es el primer EA que estoy proporcionando para que todos lo vean y trabajen en él.. esto es escrito por mi. Este EA debe usarse en EURUSD 15min con un capital inicial de $1000. Si ejecuta este EA desde el 14 de enero 2011 till today, you might find profit with good profit%.

Recomendaciones:

  • EURUSD only
  • 15 gráfico mínimo
  • 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 comentarios Para publicar un nuevo comentario, por favor acceso o registro

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. Sin embargo, look at the percent won and the graphs. However also note that the total trade # es bajo. Hence dont expect a trade right away. Maybe a few trades (menos que 5) a month can be expected.
int inicio()
{
  devolver(0);
}

int deinit()
{  
  devolver(0);
}

inicio int()
{     
      int total = OrdersTotal();                  
      si (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         si(Hora() > 8 && Hora() < 17)  //Will trade during volatile times when people are usually awake
            if( iMACD(NULO,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(NULO,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )
            si ( ( (iMA(NULO,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(NULO,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(NULO, 15, 0.02, 0.2, 0) > Alto[0]) &&
               ( iBearsPower(NULO,15,13,PRICE_CLOSE,0) <   0  &&  iBearsPower(NULO,15,13,PRICE_CLOSE,0) >    iBearsPower(NULO,15,13,PRICE_CLOSE,1)))          
               OrderSend(Símbolo(),OP_SELL,0.1,Licitación,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,Rojo); // Risk/Reward sucks here..

      si (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         si(Hora() > 8 && Hora() < 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(NULO,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(NULO,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )       
            si( (Alto[1] < iBands(NULO,0,20,2,0,PRICE_LOW,MODE_UPPER,1))  &&  (Alto[2] < iBands(NULO,0,20,2,0,PRICE_LOW,MODE_UPPER,2)))
              si ( (iMA(NULO,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(NULO,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(NULO, 15, 0.02, 0.2, 0) < Bajo[0])&&( iBullsPower(NULO,15,13,PRICE_CLOSE,0) >   0)  &&  (iBullsPower(NULO,15,13,PRICE_CLOSE,0) <    iBullsPower(NULO,15,13,PRICE_CLOSE,1)))  
               OrderSend(Símbolo(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,Verde);// 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. Sin embargo, look at the percent won and the graphs. However also note that the total trade # es bajo. Hence dont expect a trade right away. Maybe a few trades (menos que 5) a month can be expected.
int inicio()
{
  devolver(0);
}

int deinit()
{  
  devolver(0);
}

inicio int()
{     
      int total = OrdersTotal();                  
      si (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         si(Hora() > 8 && Hora() < 17)  //Will trade during volatile times when people are usually awake
            if( iMACD(NULO,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(NULO,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )
            si ( ( (iMA(NULO,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(NULO,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(NULO, 15, 0.02, 0.2, 0) > Alto[0]) &&
               ( iBearsPower(NULO,15,13,PRICE_CLOSE,0) <   0  &&  iBearsPower(NULO,15,13,PRICE_CLOSE,0) >    iBearsPower(NULO,15,13,PRICE_CLOSE,1)))          
               OrderSend(Símbolo(),OP_SELL,0.1,Licitación,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,Rojo); // Risk/Reward sucks here..

      si (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         si(Hora() > 8 && Hora() < 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(NULO,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(NULO,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )       
            si( (Alto[1] < iBands(NULO,0,20,2,0,PRICE_LOW,MODE_UPPER,1))  &&  (Alto[2] < iBands(NULO,0,20,2,0,PRICE_LOW,MODE_UPPER,2)))
              si ( (iMA(NULO,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(NULO,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(NULO, 15, 0.02, 0.2, 0) < Bajo[0])&&( iBullsPower(NULO,15,13,PRICE_CLOSE,0) >   0)  &&  (iBullsPower(NULO,15,13,PRICE_CLOSE,0) <    iBullsPower(NULO,15,13,PRICE_CLOSE,1)))  
               OrderSend(Símbolo(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,Verde);// 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 :(.

¿De cuánta utilidad te ha parecido este contenido?

¡Haz clic en una estrella para puntuarlo!

Promedio de puntuación 0 / 5. Recuento de votos: 0

Hasta ahora, ¡no hay votos!. Sé el primero en puntuar este contenido.

¡Siento que este contenido no te haya sido útil!

¡Déjame mejorar este contenido!

Diez centavos, ¿cómo puedo mejorar este contenido?



Autor: Equipo Wiki de Forex
Somos un equipo de comerciantes de Forex altamente experimentados [2000-2023] que se dedican a vivir la vida en nuestros propios términos. Nuestro principal objetivo es lograr la independencia financiera y la libertad., y hemos buscado la autoeducación y adquirido una amplia experiencia en el mercado Forex como nuestro medio para lograr un estilo de vida autosostenible..