Old MT4 EAs no longer working on new MT4

To add comments, please log in or register
RFire
45
RFire  
Please help guys. Why all EAs stopped working on this latest MT4?

Anything to do or convert inside EAs? Or any latest compiler?

Please help
Keith Watford
Moderator
20585
Keith Watford  
RFire:
Please help guys. Why all EAs stopped working on this latest MT4?

Anything to do or convert inside EAs? Or any latest compiler?

Please help

They haven't.

RFire
45
RFire  
Keith Watford:

They haven't.

I don't understand you Sir. What to do?
RFire
45
RFire  
Anyone guys

William Roeder
20249
William Roeder  
RFire: Why our old MT4 EAs no longer working even from those MT4s from our brokers?
  1. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.

    We can't see your broken code — we can only guess. There are no mind readers here and our crystal balls are cracked.

  3. Badly coded indicators assumed that buffers were lines. Terminal change broke that assumption. In build 1090 buffers no longer default to DRAW_LINE. You must explicitly set them:
    #property   indicator_typeX   DRAW_LINE                  // Bug 1090 must set.
    ⋮
    SetIndexStyle(X-1, DRAW_LINE);                           // Or in OnInit().
    

  4. Badly coded EAs assumed that PIP equals point. Didn't check Free Margin (leverage changed) Didn't check MODE_STOPLEVEL * _Point or SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL).
              Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
              What is a TICK? - MQL4 programming forum

  5. If it's from your broker, why aren't you asking them?

RFire
45
RFire  
William Roeder:
  1. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.

    We can't see your broken code — we can only guess. There are no mind readers here and our crystal balls are cracked.

  3. Badly coded indicators assumed that buffers were lines. Terminal change broke that assumption. In build 1090 buffers no longer default to DRAW_LINE. You must explicitly set them:

  4. Badly coded EAs assumed that PIP equals point. Didn't check Free Margin (leverage changed) Didn't check MODE_STOPLEVEL * _Point or SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL).
              Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
              What is a TICK? - MQL4 programming forum

  5. If it's from your broker, why aren't you asking them?

Thanks for your reply. Look, all EAs were fine before i donload the new MT4 platform. After downloading and pasting all my EAs under Experts folder.

After restarting my MT4,  when trying to attach each EA on each chart, nothing happens. Why? What need to be converted from our EAs?
RFire
45
RFire  
William Roeder:
  1. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.

    We can't see your broken code — we can only guess. There are no mind readers here and our crystal balls are cracked.

  3. Badly coded indicators assumed that buffers were lines. Terminal change broke that assumption. In build 1090 buffers no longer default to DRAW_LINE. You must explicitly set them:

  4. Badly coded EAs assumed that PIP equals point. Didn't check Free Margin (leverage changed) Didn't check MODE_STOPLEVEL * _Point or SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL).
              Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
              What is a TICK? - MQL4 programming forum

  5. If it's from your broker, why aren't you asking them?

Even when trying to create a new EA or Indicator using the latest MetaEditor, it's not starting when trying to attach on a chart. Even the original EAs like MACD and Indicators are not working from this latest MT4 they not starting, ypu can't even attach on a chart.

Why guys?
William Roeder
20249
William Roeder  
RFire: attach each EA on each chart, nothing happens. Why?
Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
RFire: Even when trying to create a new EA or Indicator using the latest MetaEditor, it's not starting when trying to attach on a chart.

Do you really expect an answer? Do you have a smiley face in the upper right? What is in the logs? Are you even logged in? There are no mind readers here and our crystal balls are cracked.

Drazen Penic
2961
Drazen Penic  

It looks that some EA's that use old syntax with "start()" function won't run anymore because MT4 recognizes them as scripts. 

You have to replace "start()" with "OnTick()" and add "#property strict" directive.

That will probably expose several other problems you'll have to fix.

RFire
45
RFire  
Drazen Penic:

It looks that some EA's that use old syntax with "start()" function won't run anymore because MT4 recognizes them as scripts. 

You have to replace "start()" with "OnTick()" and add "#property strict" directive.

That will probably expose several other problems you'll have to fix.

Thank you very much for your positive reply. I will try that man. Thanks 
RFire
45
RFire  
Nothing happens. It seems MetaQuotes is done with MT4 
12
To add comments, please log in or register