New MetaTrader 4 build 1170 - page 2

 
daTrada:
I am trying to download MT4 from https://www.metatrader4.com/e.  I click on MT4, which darkens MT4 and "Download for free".  A file named "mt4setup.exe" downloads, I click on it to install, run the install, and I the program that is actually installed is MT5.  I've tried it 3 times... MT5 each time. How can I download the current build of MT4?

You can install MT4 from the broker's website (from the any broker who is still supporting Metatrader 4).

 

class CCustomMessage : public CObject
  {
public:
   bool              done;
   long              update_id;
   long              message_id;
   //---
   long              from_id;
   string            from_first_name;
   string            from_last_name;
   string            from_username;
   //---
   long              chat_id;
   string            chat_first_name;
   string            chat_last_name;
   string            chat_username;
   string            chat_type;
   //---  
   datetime          message_date;
   string            message_text;
  };



         CCustomMessage msg={0};


Error : cannot be initialized with initializer list !!


why is this error ? in the last build it was allowed.

 

@MetaQuotes Software Corp.

Do you planing realise MODE_COMMISSION?

https://docs.mql4.com/constants/environment_state/marketinfoconstants

as

Print("Low day price=",MarketInfo(Symbol(),MODE_COMMISSION));

https://www.mql5.com/en/forum/31928

How to get commission fee before open order?
How to get commission fee before open order?
  • 2014.06.09
  • www.mql5.com
Hi there, I'd like to know any MQL4/5 function to get commission fee before open order. Thanks in advance...
 

I got big issues with this version guy. I am using Windows 7. At least 2 terrible issues I got

1/ Meta editor issue: after complied and EA with this version and attach to Mt4 termial (across versions), Mt4 says that it's not an EA and can't be executed. I tried the same code with older version of Meta editor, my EA works well.... WTF?

2/ Many of my EA/indicators seems not to work anymore, I don't see them trade or send an alert even all condition met. My EA send me many notifications everyday, they just silence right after the new version automatically updated. This hard to investigate,.. hmn.

 

Hello, Ryan,

What event handling function is your EA using (besides OnInit() and OnDeinit()) - OnTick() or OnTimer()?

 

There are some weird behaviors with the files functions on this build 1170,

for example, with FileIsExist and ChartSaveTemplate function, as I wrote here: https://www.mql5.com/en/forum/298112 

Any suggestions?

FileIsExist return error 5002 (file not found)
FileIsExist return error 5002 (file not found)
  • 2019.01.06
  • www.mql5.com
I'm trying to copy a temporary .tpl file that I saved using the ChartSaveTemplate function into the Files directory. The...
 

I downloaded an EA last week and was compiling in the old build without any problem.

When MT4 was updated, it began to fail at this line:

if(IsStopped())return(-1);

This is the error:

'1' - expression not boolean

Double click on the error, the cursor is pointing to -1.

I'm only changing values in the EA so no major changes.  I also tried compiling the original code from the zip file and as expected, it is still failing at the same line.

Why?

I'm just new in MQL4.  Does -1 need to be replaced with another value?

Can anyone help, please?


 
n1ckwolf:

I downloaded an EA last week and was compiling in the old build without any problem.

When MT4 was updated, it began to fail at this line:

if(IsStopped())return(-1);

This is the error:

'1' - expression not boolean

Double click on the error, the cursor is pointing to -1.

I'm only changing values in the EA so no major changes.  I also tried compiling the original code from the zip file and as expected, it is still failing at the same line.

Why?

I'm just new in MQL4.  Does -1 need to be replaced with another value?

Can anyone help, please?



Replace return(-1); with return(false);

 
Philippe Pauleau:


Replace return(-1); with return(false);

I thank you very much!
 

Hello,

Will it effect the EA (robot) written in previous version ? Please comment.
Thanks