Experts: Sophia1_1 - page 2

 
Me podria poner el enlace de Forex Factory, no lo encuentro.
 
Me podrias poner el enlace de Forex Factory, no lo encuentro.gracias.
 
pineda69:
Me podria poner el enlace de Forex Factory, porque no lo encuentro.Gracias.

http://www.forexfactory.com/vangabestia#30
 

Hi Vangabestia,

thanks for sharing your code!

I'm not really a fan of Martingale strategies - nonetheless I had a closer look an your EA. Several useful functions inside.

One question regarding your main routine start():

In line 65 you use variable AveragePrice to calculate the trailing stops:

     if (UseTrailingStop)
     {
      TrailingAlls(TrailStart, TrailStop, AveragePrice);
     }

But AveragePrice itself is not being calculated before line 245:

   for(cnt=OrdersTotal()-1;cnt>=0;cnt--)
     {
      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
      if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=MagicNumber)
         continue;
      if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber)
         if(OrderType()==OP_BUY || OrderType()==OP_SELL)
           {
            AveragePrice=AveragePrice+OrderOpenPrice()*OrderLots();
            Count=Count + OrderLots();
           }
     }

Can this work?

 

Como puedo conseguir esta EA??

 
Another Martingale bites the dust!
 

Ohh, so bad result....

 
barauskas:

 

How can I get an updated version of Sophia?

Thanks,

 
One of the Best EA in this MetaTrader 4. Thank you so much for this EA Developer, I Really Like it, Thanks Again......
Reason: