Experts: Sophia1_1 - page 2

To add comments, please log in or register
MQL4 Comments
16299
MQL4 Comments  
Me podria poner el enlace de Forex Factory, no lo encuentro.
MQL4 Comments
16299
MQL4 Comments  
Me podrias poner el enlace de Forex Factory, no lo encuentro.gracias.
Giulio Bucci
113
Giulio Bucci  
pineda69:
Me podria poner el enlace de Forex Factory, porque no lo encuentro.Gracias.

http://www.forexfactory.com/vangabestia#30
MQL4 Comments
16299
MQL4 Comments  

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?

MQL4 Comments
16299
MQL4 Comments  

Como puedo conseguir esta EA??

jonus
221
jonus  
Another Martingale bites the dust!
MQL4 Comments
16299
MQL4 Comments  

Ohh, so bad result....

MQL4 Comments
16299
MQL4 Comments  
barauskas:

MQL4 Comments
16299
MQL4 Comments  

How can I get an updated version of Sophia?

Thanks,

mdtarik
31
mdtarik  
One of the Best EA in this MetaTrader 4. Thank you so much for this EA Developer, I Really Like it, Thanks Again......
123
To add comments, please log in or register