Bronkode

0
(0)
Naam:
Bronkode
Skrywer: Me (2011.05.10 10:06)
Afgelaai: 4048
Aflaai:
Source Code 1
SourceCode.mq4 (3.0 Kb) Beskou

Beskrywing:

This is first EA I am providing for everyone to see and work upon. This is written by me. This EA should be used on EURUSD 15min with initial capital of $1000. If you run this EA from 14th Jan 2011 till today, you might find profit with good profit%.

Aanbevelings:

  • EURUSD only
  • 15 min grafiek
  • 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 kommentaar Om 'n nuwe opmerking te plaas, asseblief teken aan of registreer

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. Egter, look at the percent won and the graphs. However also note that the total trade # is low. Hence dont expect a trade right away. Maybe a few trades (minder as 5) a month can be expected.
int init()
{
  return(0);
}

int deinit()
{  
  return(0);
}

int start()
{     
      int total = OrdersTotal();                  
      as (Bestellings Totaal() < 1)   // I wont open more than 1 trade per time.
         as(Uur() > 8 && Uur() < 17)  //Will trade during volatile times when people are usually awake
            if( iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )
            as ( ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(NULL, 15, 0.02, 0.2, 0) > Hoog[0]) &&
               ( iBearsPower(NULL,15,13,PRICE_CLOSE,0) <   0  &&  iBearsPower(NULL,15,13,PRICE_CLOSE,0) >    iBearsPower(NULL,15,13,PRICE_CLOSE,1)))          
               OrderSend(Simbool(),OP_VERKOOP,0.1,Bied,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,Rooi); // Risk/Reward sucks here..

      as (Bestellings Totaal() < 1)   // I wont open more than 1 trade per time.
         as(Uur() > 8 && Uur() < 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(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )       
            as( (Hoog[1] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,1))  &&  (Hoog[2] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,2)))
              as ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(NULL, 15, 0.02, 0.2, 0) < Laag[0])&&( iBullsPower(NULL,15,13,PRICE_CLOSE,0) >   0)  &&  (iBullsPower(NULL,15,13,PRICE_CLOSE,0) <    iBullsPower(NULL,15,13,PRICE_CLOSE,1)))  
               OrderSend(Simbool(),OP_KOOP,0.1,Vra,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,Green);// 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. Egter, look at the percent won and the graphs. However also note that the total trade # is low. Hence dont expect a trade right away. Maybe a few trades (minder as 5) a month can be expected.
int init()
{
  return(0);
}

int deinit()
{  
  return(0);
}

int start()
{     
      int total = OrdersTotal();                  
      as (Bestellings Totaal() < 1)   // I wont open more than 1 trade per time.
         as(Uur() > 8 && Uur() < 17)  //Will trade during volatile times when people are usually awake
            if( iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )
            as ( ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(NULL, 15, 0.02, 0.2, 0) > Hoog[0]) &&
               ( iBearsPower(NULL,15,13,PRICE_CLOSE,0) <   0  &&  iBearsPower(NULL,15,13,PRICE_CLOSE,0) >    iBearsPower(NULL,15,13,PRICE_CLOSE,1)))          
               OrderSend(Simbool(),OP_VERKOOP,0.1,Bied,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,Rooi); // Risk/Reward sucks here..

      as (Bestellings Totaal() < 1)   // I wont open more than 1 trade per time.
         as(Uur() > 8 && Uur() < 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(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )       
            as( (Hoog[1] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,1))  &&  (Hoog[2] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,2)))
              as ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(NULL, 15, 0.02, 0.2, 0) < Laag[0])&&( iBullsPower(NULL,15,13,PRICE_CLOSE,0) >   0)  &&  (iBullsPower(NULL,15,13,PRICE_CLOSE,0) <    iBullsPower(NULL,15,13,PRICE_CLOSE,1)))  
               OrderSend(Simbool(),OP_KOOP,0.1,Vra,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,Green);// 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 :(.

Hoe nuttig was hierdie pos nie?

Klik op 'n ster om dit te gradeer!

Gemiddelde gradering 0 / 5. Stemmetelling: 0

Geen stemme tot dusver nie! Wees die eerste om hierdie plasing te beoordeel.

Ons is jammer dat hierdie plasing nie vir jou nuttig was nie!

Kom ons verbeter hierdie pos!

Vertel ons hoe ons hierdie pos kan verbeter?



Skrywer: Forex Wiki-span
Ons is 'n span hoogs ervare Forex Handelaars [2000-2023] wat daaraan toegewy is om die lewe op ons eie terme te leef. Ons primêre doelwit is om finansiële onafhanklikheid en vryheid te verkry, en ons het selfonderrig nagestreef en uitgebreide ondervinding in die Forex-mark opgedoen as ons manier om 'n selfvolhoubare leefstyl te bereik.