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 3296
Next
In Process
arkfatalist
arkfatalist

arkfatalist

  • 5 Questions
  • 4 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
arkfatalist
Asked: December 26, 20202020-12-26T13:21:52+00:00 2020-12-26T13:21:52+00:00In: Forex Expert Advisors

How can I check the indicator readiness in the tester, do I need to wait for a response from OrdersTotal () and OrderCalcMargin (), and does it make sense to wait for the “return code of the trading server” via MqlTradeResult from the tester?

  • 0

Good afternoon.

I have questions due to the lack of Sleep() in the tester.
I want to know how people solve the following problems when using
the strategy tester (both a single run and a search of input
parameters):

1) How to check the readiness of the indicator handle? How would I make you
wait for the indicator calculation to complete, and only then move further along the
lines.

2) How to wait for the opening of the text file called for reading during the operation of the expert Advisor?

3) How do I wait for the OrdersTotal () function to respond? And can there be a delay in the response of this function?

4) How do I wait for the OrderCalcMargin () function to respond? And can there be a delay in the response of this function?

5) Does it make sense in the tester to set (even if it is not clear how) the expectation of the “return code of the trading server” via MqlTradeResult.

In the terminal, all these tasks were solved using Sleep (), but in the tester it does
not work. In addition, I’m not sure what exactly Sleep () is needed, maybe
is there a rational solution?

Thank you already.

  • 2 2 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. arkfatalist

      arkfatalist

      • 5 Questions
      • 4 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      arkfatalist
      2020-12-26T13:22:00+00:00Added an answer on December 26, 2020 at 1:22 pm

      Alexey Tarabanov:

      Sleep does not work in the tester, but in the indicator. As I understand it, all questions are related to this misconception. 

      Thanks. So the problem is something else for me.

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

      tara

      • 0 Questions
      • 9 Answers
      • 0 Best Answers
      • 38 Points
      View Profile
      tara
      2020-12-26T13:21:56+00:00Added an answer on December 26, 2020 at 1:21 pm

      Justinas Shimkus:

      Good afternoon.

      I have questions due to the lack of Sleep() in the tester.
      I want to know how people solve the following problems when using
      the strategy tester (both a single run and a search of input
      parameters):

      1) How to check the readiness of the indicator handle? How would I make you
      wait for the indicator calculation to complete, and only then move further along the
      lines.

      2) How to wait for the opening of the text file called for reading during the operation of the expert Advisor?

      3) How do I wait for the OrdersTotal () function to respond? And can there be a delay in the response of this function?

      4) How do I wait for the OrderCalcMargin () function to respond? And can there be a delay in the response of this function?

      5) Does it make sense in the tester to set (even if it is not clear how) the expectation of the “return code of the trading server” via MqlTradeResult.

      In the terminal, all these tasks were solved using Sleep (), but in the tester it does
      not work. In addition, I’m not sure what exactly Sleep () is needed, maybe
      is there a rational solution?

      Thank you already.

      Sleep does not work in the tester, but in the indicator. As I understand it, all questions are related to this misconception. 

      • 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 681
    • 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

    Leonardcig

    Leonardcig

    • 0 Questions
    • 0 Answers
    DennisByday

    DennisByday

    • 0 Questions
    • 0 Answers
    Haroldmeary

    Haroldmeary

    • 0 Questions
    • 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