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 3135
Next
In Process
leonardo4
leonardo4

leonardo4

  • 1 Question
  • 5 Answers
  • 0 Best Answers
  • 32 Points
View Profile
  • 0
leonardo4
Asked: December 26, 20202020-12-26T13:13:06+00:00 2020-12-26T13:13:06+00:00In: Forex Expert Advisors

MT5 multi-currency expert Advisor, the bid value of the current tick differs in the market overview and in the SymbolInfoTick (and SymbolInfoDouble) function, if the expert Advisor is not on the chart of this symbol

  • 0

Hello.

The question is:

Multi-currency expert Advisor. Launched on the chart of the symbol “B”. In the market overview, the BID value for the symbol “A” of the current tick is one, and the resulting SymbolInfoTick for the symbol “A” is another (old). If the EA is moved to the chart of the symbol “A”, then each tick all coincides with the value in the market overview for the symbol”A”.

For a long time I could not understand why the multicurrency is trading incorrectly and I was waiting for such a trick in the last place. This can be solved somehow or multi-currency RIP, do 100500 expert advisors for each symbol? The expert Advisor analyzes ticks and such jambs are not allowed. Maybe you can somehow take the values directly from the market review, since SymbolInfoTick and SymbolInfoDouble give such a jamb?

  • 7 7 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    7 Answers

    • Voted
    • Oldest
    • Recent
    1. artmedia70

      artmedia70

      • 1 Question
      • 41 Answers
      • 0 Best Answers
      • 102 Points
      View Profile
      artmedia70
      2020-12-26T13:13:50+00:00Added an answer on December 26, 2020 at 1:13 pm

      Konstantin Efremov:

      That could be it! Thank you, I will think about how to get around it. I’ll try using the timer.

      UPD: Yes, I made a delay before getting the tick value and everything worked out, the ticks get correctly. Thank you very much, Alexey!

      Only I said about the non-native symbol immediately, and immediately said how to do it correctly, but you decided not to hear.

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

      volokola

      • 0 Questions
      • 3 Answers
      • 0 Best Answers
      • 26 Points
      View Profile
      volokola
      2020-12-26T13:13:45+00:00Added an answer on December 26, 2020 at 1:13 pm

      Konstantin Efremov:

      What does the glass have to do with it? 

      Because the glass receives information in a separate stream and does not depend on what chart it is running on.

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

      barabashkakvn

      • 7 Questions
      • 162 Answers
      • 0 Best Answers
      • 314 Points
      View Profile
      barabashkakvn
      2020-12-26T13:13:34+00:00Added an answer on December 26, 2020 at 1:13 pm

      Konstantin Efremov:

      Hello.

      The question is:

      Multi-currency expert Advisor. Launched on the chart of the symbol “B”. In the market overview, the BID value for the symbol “A” of the current tick is one, and the resulting SymbolInfoTick for the symbol “A” is another (old). If the EA is moved to the chart of the symbol “A”, then each tick all coincides with the value in the market overview for the symbol”A”.

      For a long time I could not understand why the multicurrency is trading incorrectly and I was waiting for such a trick in the last place. This can be solved somehow or multi-currency RIP, do 100500 expert advisors for each symbol? The expert Advisor analyzes ticks and such jambs are not allowed. Maybe you can somehow take the values directly from the market review, since SymbolInfoTick and SymbolInfoDouble give such a jamb?

      Please provide the full code and describe the sequence of actions for playback (how many charts are open, on which server the connection is, on which symbol the expert Advisor is running and from which symbol it is trying to get data …).

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

      leonardo4

      • 1 Question
      • 5 Answers
      • 0 Best Answers
      • 32 Points
      View Profile
      leonardo4
      2020-12-26T13:13:29+00:00Added an answer on December 26, 2020 at 1:13 pm

      Volokola:
      The market what? Is it possible to open glasses using these tools? If there is such a possibility , we take ticks when changing the glass of the desired tool.

      What does the glass have to do with it? Once again, if the expert Advisor is on the chart of the instrument for which we take ticks using SymbolInfoTick , then everything is fine. If the expert Advisor is on the chart of another instrument, then a jamb occurs with the receipt of ticks, described above.

      That is, it works fine:

      SymbolInfoTick(_Symbol,last_tick);

      And this is a mess:

      SymbolInfoTick(- other character -, last_tick);

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

      volokola

      • 0 Questions
      • 3 Answers
      • 0 Best Answers
      • 26 Points
      View Profile
      volokola
      2020-12-26T13:13:25+00:00Added an answer on December 26, 2020 at 1:13 pm

      The market what? Is it possible to open glasses using these tools? If there is such a possibility = we take ticks when changing the glass of the desired tool.

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

      leonardo4

      • 1 Question
      • 5 Answers
      • 0 Best Answers
      • 32 Points
      View Profile
      leonardo4
      2020-12-26T13:13:14+00:00Added an answer on December 26, 2020 at 1:13 pm
      MT5 multi-currency expert Advisor, the bid value of the current tick differs in the market overview and in the SymbolInfoTick (and SymbolInfoDouble) function, if the expert Advisor is not on the chart of this symbol

      Artyom Trishkin:
      Code where?

                        MqlTick last_tick;
                        SymbolInfoTick(PairA,last_tick);
                        Print(DoubleToString(last_tick.bid,(int)SymbolInfoInteger(PairA,SYMBOL_DIGITS)));
      
      

      It is on the chart of the pair "B". We have the current quote bid 3105.76, and by SymbolInfoTick we get the previous 3106.92


      What can you see in the code? I think I described the situation in detail


      Here, I added the price update time before the tick value. Why is that? 

      Print("time: "+last_tick.time+"   "+DoubleToString(last_tick.bid,(int)SymbolInfoInteger(PairA,SYMBOL_DIGITS)));


      I am, of course, shocked by this. It is normal to try to trade on incorrect data. Moreover, the data in the tester is correct, but online it is! Of course there will be a drain. It's good that I came across it purely by accident, now everything will have to be redone. But most importantly, it will not be possible to make a multi-currency system, and this is a nightmare and nonsense. Shame on you!
      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    7. artmedia70

      artmedia70

      • 1 Question
      • 41 Answers
      • 0 Best Answers
      • 102 Points
      View Profile
      artmedia70
      2020-12-26T13:13:09+00:00Added an answer on December 26, 2020 at 1:13 pm

      Konstantin Efremov:

      Hello.

      The question is:

      Multi-currency expert Advisor. Launched on the chart of the symbol “B”. In the market overview, the BID value for the symbol “A” of the current tick is one, and the resulting SymbolInfoTick for the symbol “A” is another (old). If the EA is moved to the chart of the symbol “A”, then each tick all coincides with the value in the market overview for the symbol”A”.

      For a long time I could not understand why the multicurrency is trading incorrectly and I was waiting for such a trick in the last place. This can be solved somehow or multi-currency RIP, do 100500 expert advisors for each symbol? The expert Advisor analyzes ticks and such jambs are not allowed. Maybe you can somehow take the values directly from the market review, since SymbolInfoTick and SymbolInfoDouble give such a jamb?

      Code where?

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

    Brus Agell

    Brus Agell

    • 1 Question
    • 0 Answers
    pinupcasinoo

    pinupcasinoo

    • 1 Question
    • 0 Answers
    JamesSwics

    JamesSwics

    • 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