Experts: Angry Bird (Scalping) - page 4

 
Vladimir Karputov #:
You need to read the description and you need to read the code.  Please open the code and read the variables.  If it's not clear, indicate the lines of code that are not clear.

I cannot find this description, that's why I'm asking, I'm not specialist in code either, just checked description inside code and it lacks this info there, but as I understand it's in this part :

 if(UseEquityStop)
     {
      if(CurrentPairProfit<0.0 && MathAbs(CurrentPairProfit)>TotalEquityRisk*m_account.Equity()/100.0)
        {
         CloseThisSymbolAll();
         Print("Closed All due to Stop Out");
         NewOrdersPlaced=false;
         return;


so it's in account equity % , right?

 
Terek # :

I cannot find this description, that's why I'm asking, I'm not specialist in code either, just checked description inside code and it lacks this info there, but as I understand it's in this part :


so it's in account equity % , right?

Yes, funds in%

 
ok, so that's was the issue when testing with different initial balance results was different and, seems when account grows lots are kept the same initial but this equity loss keeps increasing. I've found good settings for small initial balance of 50 eur,  equity stop 5 (%) ,  it equals 2.5 eur. But I would like to keep it this way when account grows and change it manually together with lot size not in % but in currency units, I wonder is it hard and maybe I can ask you for help to achieve it? of course there is always a work around, trying to change this % if needed or using second equity stop ea, but I have such ea only for mt4, but all this is not good for backtesting, so maybe it's possible to put it in code?
 
why doesn't it take a take profit?
 
magnit742 take profit?

Hello! It does not set take profit because it is designed by the author of the Expert Advisor.

Regards, Vladimir.

 
MrBrooklin #:

Hello! It does not set take profit because the author of the Expert Advisor designed it that way.

Regards, Vladimir.

sorry
 
The code does not work, with many errors in logic. There are code blocks that do not participate in the work, many unused variables are declared. How was such a code allowed to be placed in Codebase?