Skip to main content

Posts

Showing posts from July 28, 2013

Evolve Expert Advisor Codes

NOTE! DO NOT USE THIS FOR REAL MONEY! THIS IS NOT TESTED! THIS SHOULD BE USE FOR DEMO PURPOSES! I had being thinking about this idea for awhile now, what if i can take a bunch of EA and randomly add in codes/indicator and see which one do the best and using that EA as a base and create another generation of EAs? My first EA is going to be a simple bot that will base on a random number 1 to 100 to buy or sell. As this is totally random, i dont see how it can randomly generate profit. But i had seem well made technical report totally ruin in the market. So being a totally random EA might have its random advantages. Codes static int LowRisk_ticket;   if(OrderSelect(LowRisk_ticket, SELECT_BY_TICKET)==false){    MathSrand(GetTickCount());    double rand1 = 1*MathRand()/32768.0;    MathSrand(GetTickCount());    double rand2 = 1*MathRand()/32768.0;    MathSrand(GetTickCount());    double rand3 = 1*MathRand()/32768.0;    if (rand1 ==0) rand1 = 1*MathRand()/32768.0;    if (rand2