New Version of MetaTrader 4 Client Terminal Build 402

 

On Saturday, May 13, the new build 402 of the MetaTrader 4 will be released:

  1. Fixed timezone correction when downloading history data to History Center.
  2. Fixed freezing of mobile terminals during startup and LiveUpdate on the HTC devices.
  3. Fixed bugs reported in error messages.
The live update will be available via the LiveUpdate system.
 
Rosh:

On Saturday, May 13, the new build 402 of the MetaTrader 4 will be released:

  1. Fixed timezone correction when downloading history data to History Center.
  2. Fixed freezing of mobile terminals during startup and LiveUpdate on the HTC devices.
  3. Fixed bugs reported in error messages.
The live update will be available via the LiveUpdate system.

Hi

My buy and sell scripts dont work anymore with 401 error 4062

what to do ?


Regards,

Hans

 
Could you provide your script to reproduce it?
 
Rosh:
Could you provide your script to reproduce it?

Hello

Another script "breakeven" is removing all my trendlines and fiblevels wil send it to you

Files:
buy_3.mq4  2 kb
 
Rosh:
Could you provide your script to reproduce it?
script breakeven
Files:
breakeven.mq4  1 kb
 
wansiman:
script breakeven
and sell
Files:
sell.mq4  2 kb
 
wansiman:

Hello

Another script "breakeven" is removing all my trendlines and fiblevels wil send it to you

We have checked your script Buy_3.mq4 on the 225-th build. It doesn't work there either. We didn't change anything in that place.

Are you sure that the script worked previously? You should explicitly initialize all string variables before using them.

 
Rosh:

We have checked your script Buy_3.mq4 on the 225-th build. It doesn't work there either. We didn't change anything in that place.

Are you sure that the script worked previously? You should explicitly initialize all string variables before using them.


it worked perfect before


with the breakeven script it is removing al my trendlines it did this never before

 
wansiman:

with the breakeven script it is removing al my trendlines it did this never before


I've asked you about the Buy_3.mq4 script.
 
Rosh:

On Saturday, May 13, the new build 402 of the MetaTrader 4 will be released:

  1. Fixed timezone correction when downloading history data to History Center.
  2. Fixed freezing of mobile terminals during startup and LiveUpdate on the HTC devices.
  3. Fixed bugs reported in error messages.
The live update will be available via the LiveUpdate system.

Hi Rosh,

I have been writing a bit of code for EAs recently. I've come across the following problem when I use the following lines:

extern double MACD_THRESH = 0.0018;

//... then inside main()

Print( MACD_THRESH );

// it prints "0.0001" and hence fails a logic test

Can you suggest how to handle double numbers?

Kind regards,

Leonymus

 
wansiman:

with the breakeven script it is removing al my trendlines it did this never before


Yes, it is correct behaviour of this script. Because I see in one function ObjectsDeleteAll();

int start()
  {
   int totalorders=OrdersTotal();
   for(int i=totalorders-1;i>=0;i--)
     {
      OrderSelect(i,SELECT_BY_POS);
        {
         if(OrderSymbol()==Symbol() && OrderType()==OP_BUY) 
           {
            OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,Green);
            ObjectsDeleteAll(); // if there is an OP_BUY order then delete all grafical objects
           }
         if(OrderSymbol()==Symbol() && OrderType()==OP_SELL) 
           {
            OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,Green);

           }
        }
     }
   return;
  }
I consider at all your questions were answered.