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

Share your knowledge in the forex community!

Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5

Create A New Account
Home/ Questions/Q 4565
Next
In Process
goldrat
goldrat

goldrat

  • 2 Questions
  • 3 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
goldrat
Asked: December 27, 20202020-12-27T05:19:44+00:00 2020-12-27T05:19:44+00:00In: Forex Expert Advisors

Error ” invalid bar .. <= .. “when executing CustomRatesUpdate() and CustomRatesReplace()

  • 0

When CustomRatesUpdate() and CustomRatesReplace() are executed, only the latest bar is added. On the rest, messages are displayed in the log of the form ” invalid bar 2018.03.30 08: 32 (1) <= 2018.03.30 09:52 (0)”. Please respond to anyone who has encountered: how did you manage to win?

  • 4 4 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    4 Answers

    • Voted
    • Oldest
    • Recent
    1. goldrat

      goldrat

      • 2 Questions
      • 3 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      goldrat
      2020-12-27T05:20:11+00:00Added an answer on December 27, 2020 at 5:20 am

      fxsaber:

      You didn’t notice the pitfall. Prices are imported based on the specified value of the Digits field. If it is changed from 8 to 2, the prices will be cut off when importing.

      I agree, but in this case it is enough – the exchange gives prices with an accuracy of 2 characters.

      fxsaber:

      Just another MT5 error is indicative here. For example, I erase your character completely. And I create it based on the corrected json file. An attempt to record bars will still return the same error. 

      After deleting, I create the symbol programmatically with the CustomSymbolCreate () function. I didn’t seem to notice such a mistake.

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

      fxsaber

      • 1 Question
      • 53 Answers
      • 0 Best Answers
      • 140 Points
      View Profile
      fxsaber
      2020-12-27T05:20:03+00:00Added an answer on December 27, 2020 at 5:20 am

      Ivan Titov:
      Thank you very much! There is no word in the documentation about the order of bars in the array.

      Yes, in the Documentation this is described only in the part of ticks.

      And we managed to get rid of the “is much bigger” error by setting the symbol properties (attached)

      Just another MT5 error is indicative here. For example, I erase your character completely. And I create it based on the corrected json file. An attempt to record bars will still return the same error. Because somewhere in the caches are stored the old settings-the deleted symbol. And do nothing.

      But it is necessary to simply restart the Terminal, as the new settings get into the cache and the work becomes correct. This is very annoying, because in fact, to see the result of changing the settings of the user symbol, you have to restart the terminal every Time.

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

      goldrat

      • 2 Questions
      • 3 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      goldrat
      2020-12-27T05:19:52+00:00Added an answer on December 27, 2020 at 5:19 am

      From MqlTick[] is not suitable – it is necessary to upload the bars. Files attached

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

      fxsaber

      • 1 Question
      • 53 Answers
      • 0 Best Answers
      • 140 Points
      View Profile
      fxsaber
      2020-12-27T05:19:48+00:00Added an answer on December 27, 2020 at 5:19 am

      Look at Rates.mqh, there is the formation of MqlRates[] from MqlTick[].

      If you already have a problem MqlRates [] ready, write it down via FileSave and attach it here. And also throw off the JSON file of the custom symbol.

      • 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 514
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 921
    • Popular
    • Answers
    • Tags
      • On: December 18, 2020
      • Answers: 16

      How to allow trading at certain times

      • On: December 29, 2020
      • Answers: 16

      Example of implementing the OOP pattern Abstract Factory using MQL5 ...

      • On: December 18, 2020
      • Answers: 15

      EMA with a different formula

      • On: December 29, 2020
      • Answers: 15

      Invitation for algo traders.

      • On: December 29, 2020
      • Answers: 14

      Dear Programmers, do not pass by, help fix the error!

    • atma1
      atma1 added an answer Added activation. Thanks. April 8, 2021 at 6:54 am
    • iks_
      iks_ added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • renat
      renat added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • mvs
      mvs added an answer Renat Fatkhullin: You can not immediately send the received data,… April 8, 2021 at 6:53 am
    • anton_m
      anton_m added an answer Renat Fatkhullin: How much data do you read? You can… April 8, 2021 at 6:53 am
    analytics british company computer developers django employee employer english facebook french google interview javascript language life php proforexea programmer programs pro vsa salary university

    Related Questions

    • atma1

      Yesterday I updated VMware to version 16.1.0 and the product ...

      • 3 Answers
    • anton_m

      It is not possible to read data from the server ...

      • 6 Answers
    • s22aa

      Tell me what the difference is.

      • 2 Answers
    • areedbreen

      on the chart in the tester one yield and in ...

      • 2 Answers
    • 1006293

      A question about the intersection of moving averages in MQL5

      • 3 Answers

    Users

    atma1

    atma1

    • 1 Question
    • 1 Answer
    s22aa

    s22aa

    • 1 Question
    • 1 Answer
    areedbreen

    areedbreen

    • 1 Question
    • 1 Answer

    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