Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us
Home/ Questions/Q 2349
Next
In Process
vvebus
vvebus

vvebus

  • 3 Questions
  • 6 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
vvebus
Asked: December 26, 20202020-12-26T12:13:19+00:00 2020-12-26T12:13:19+00:00In: Forex Expert Advisors

Cannot set timer after successfully running EvenSetTimer()

  • 0
Cannot set timer after successfully running EvenSetTimer()

I know that there are similar branches, but no solution was found. 

Build 1170, the error Cannot set timer appears on one of the PCs. Sometimes it appears in OnInit() on the first run, sometimes after
UninitReason 5 (change of inputs), and sometimes the timer crashes during operation after the correct launch of EventSetTimer().  I started to
catch in OnTick() the moment when OnTimer () stops working and try to restart EventSetTimer () on OnTick (). Sometimes it
turns out the first time, sometimes with 10. the Problem appeared a few days ago, before that, more than a month, this error never appeared
.

GetLastError returns 4024-an Internal error (so-so explanation).

The terminal reinstalled, the PC rebooted – does not help.

You can translate to OnTick (), but the EA is multicurrency (I want to understand the error OnTimer ()).

Maybe someone will have some thoughts? Here is a piece of the log, as you can see-the timer flies quite often:

  • 8 8 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    8 Answers

    • Voted
    • Oldest
    • Recent
    1. vvebus

      vvebus

      • 3 Questions
      • 6 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      vvebus
      2020-12-26T12:14:08+00:00Added an answer on December 26, 2020 at 12:14 pm

      Thank you all for the options, apparently there are really problems with memory. 

      So far, I have transferred to OnTick without multicurrency.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. iks_

      iks_

      • 1 Question
      • 28 Answers
      • 0 Best Answers
      • 76 Points
      View Profile
      iks_
      2020-12-26T12:14:00+00:00Added an answer on December 26, 2020 at 12:14 pm

      Edgar:

      On a VPS with 1 GB at simultaneous startup
      multiple terminals with multiple experts-always. It helps to start the terminals in turn, first MT5, then
      MT4.

      Just don’t say again that memory is extremely low. This is clear enough. I’m just to the point that the problem with the timer is really due to
      memory.

      PS. The problem is in both platforms.

      I do not know how you have a problem with the timer. But for example, I have a hectare of RAM, 4 MT4/5 terminals work. Each multi-currency expert Advisor
      trades 12 symbols at the same time. They work through a timer, which is understandable due to the fact that ticks on symbols come in different ways. And
      there were no problems. They work quietly for a week, and VDS reboots on weekends. Yes maybe I win by using SWAP on 1
      a hectare in addition.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. thexpert

      thexpert

      • 0 Questions
      • 9 Answers
      • 0 Best Answers
      • 38 Points
      View Profile
      thexpert
      2020-12-26T12:13:56+00:00Added an answer on December 26, 2020 at 12:13 pm

      Edgar:

      I’m just saying that the problem with the timer is really because of the memory.

      On a cheap VPS the problem is uh just with everything that can be a problem ))

      And this does not negate the fact that the terminal has a bug that can not be fixed for several years.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. dali

      dali

      • 1 Question
      • 3 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      dali
      2020-12-26T12:13:52+00:00Added an answer on December 26, 2020 at 12:13 pm

      On a VPS with 1 GB at the same time running
      multiple terminals with multiple experts-always. It helps to start the terminals in turn, first MT5, then MT4.

      Just don’t say again that memory is extremely low. This is clear enough. I’m just saying that the problem with the timer is really because of the memory.

      PS. The problem is in both platforms.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    5. vladon

      vladon

      • 0 Questions
      • 13 Answers
      • 0 Best Answers
      • 46 Points
      View Profile
      vladon
      2020-12-26T12:13:45+00:00Added an answer on December 26, 2020 at 12:13 pm

      TheXpert:

      32GB, there were problems.

      confirm. 

      and 32 gigs causes problems. 

      But the timer flies off just when the terminal loads the memory and BAM… the timer went off. 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    6. kurscme

      kurscme

      • 0 Questions
      • 1 Answer
      • 0 Best Answers
      • 22 Points
      View Profile
      kurscme
      2020-12-26T12:13:37+00:00Added an answer on December 26, 2020 at 12:13 pm

      Maybe it’s the old Build 1170 ?  Where this error is not fixed.
      If
      there is a possibility, check on the latest releases, maybe something has changed.

      Or as Vladislav suggested, there is not enough RAM, it is also possible.
      I have never had any problems with the timer. 16 Gb RAM

      Even with EventSetMillisecondTimer(20);

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    7. thexpert

      thexpert

      • 0 Questions
      • 9 Answers
      • 0 Best Answers
      • 38 Points
      View Profile
      thexpert
      2020-12-26T12:13:29+00:00Added an answer on December 26, 2020 at 12:13 pm

      Vladislav Andruschenko:

      there is such an error when the timer is clogged with tasks…. 

      When there are too many of them and a big queue.

      This is a terminal error. Which the developers do not want to recognize as a mistake can be fixed
      for several years.

      Why terminal?

      Yes, it is banal because in the beginning, when the timers first appeared,this error was not.

      And because I specifically looked at the number of allowed handles by default, which Slava rested on exceeding.

      So here’s 10,000. So many handles can be opened by one process. This value can be increased. And you can achieve this level only if the
      handles in the terminal flow. Not to mention the fact that this error was caught before, including almost after the start of the terminal.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    8. vladon

      vladon

      • 0 Questions
      • 13 Answers
      • 0 Best Answers
      • 46 Points
      View Profile
      vladon
      2020-12-26T12:13:24+00:00Added an answer on December 26, 2020 at 12:13 pm

      there is such an error when the timer is clogged with tasks…. 

      When there are too many of them and a big queue. 

      Memory gets clogged

      My timer was turned off precisely because of a lack of memory error. I watched the CPU and memory. 

      In the timer, you need to reduce the calculations. 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 504
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 675
    • Popular
    • Comments
    • Tags
    • forexcommunity

      Highlighting what’s important about questions & Answers on Discy Community!

      • 0 Comments
    • forexcommunity

      Introducing Keyboard Shortcuts, our first Labs feature

      • 0 Comments
    • forexcommunity

      Defining quality on Discy Engine — what a helpful answer ...

      • 0 Comments
    • forexcommunity

      Organizational and company accounts on Discy Engine the next step

      • 0 Comments
    • forexcommunity

      Hello world!

      • 0 Comments

    Related Questions

    • Brus Agell

      Правельный выбор

      • 0 Answers
    • pinupcasinoo

      Pin Up Casino

      • 0 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 2 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 0 Answers
    • c00l777

      Optimization results differ on different accounts

      • 3 Answers

    Users

    Jeffreytix

    Jeffreytix

    • 0 Questions
    • 0 Answers
    RobertFoeta

    RobertFoeta

    • 0 Questions
    • 0 Answers
    Brus Agell

    Brus Agell

    • 1 Question
    • 0 Answers

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved