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 4528
Next
In Process
user_mt5
user_mt5

user_mt5

  • 4 Questions
  • 7 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
user_mt5
Asked: December 27, 20202020-12-27T05:17:50+00:00 2020-12-27T05:17:50+00:00In: Forex Expert Advisors

Problems of execution of the ChartSymbol().

  • 0

One of my brokers changed the name of one symbol from EURRUR to EURRUB and everything-the expert Advisor is suspended.

If the expert Advisor implements chart analysis using ChartSymbol() and this function encounters a chart with an unknown symbol, then:
the expert begins to behave unpredictably. At least the function doesn’t give away the name of the chart symbol. With all the consequences.

In addition, a significant part of the symbol names do not match for different brokers. If the terminal is configured for one broker, and then there is a switch to another broker, then again we are in the pipe.

Maybe there is a way around this point programmatically? Please tell me.

  • 5 5 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    5 Answers

    • Voted
    • Oldest
    • Recent
    1. tecciztecatl

      tecciztecatl

      • 0 Questions
      • 10 Answers
      • 0 Best Answers
      • 40 Points
      View Profile
      tecciztecatl
      2020-12-27T05:18:12+00:00Added an answer on December 27, 2020 at 5:18 am

      you need to check for a symbol and / or select a symbol to work with,
      if it did not work, then there is no such tool

      SymbolInfoInteger(sym,SYMBOL_SELECT);
      SymbolSelect(sym,true);

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

      user_mt5

      • 4 Questions
      • 7 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      user_mt5
      2020-12-27T05:18:07+00:00Added an answer on December 27, 2020 at 5:18 am

      STARIJ:
      Describe the solution in words – it will be possible to solve it programmatically

      Do you want me to describe in words a solution that I don’t have? and for which search this branch is started?

      Vladimir M.:

      The name of the first six letters of the symbol is always the same, it is international(correct me if wrong). Work on them.

      I’m correcting you.

      1. According to my observations, each broker sculpts the symbols that he takes into his head. No system is visible here, except on the main currency pairs.

      2. Even if the system existed, it doesn’t solve anything. After all, each broker has its own set of symbols. For example, the AA broker offers the possibility of working with WTI. And the BB broker does not have such a symbol in the list. Now imagine that You have worked with AA in the window of this symbol. Ie MT5 is a living window with this symbol. Then you switch to the BB broker account. And Your expert begins to examine the Windows for symbols (in which you will need to display something). In the process of searching, he stumbles upon an unknown symbol and … falls into a stupor. If the ChartSymbol() function gave some -1 in case of failure, it would be clear – someone else’s character. Then just-stepped over and went on. But it hangs.

      fxsaber:

      Use the highlighted one.

      I don’t know how to do it yet. If the terminal has a window with a foreign symbol, then you need to know its symbol to make a decision. And this is just not working.

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

      fxsaber

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

      User_mt5:

      If the terminal is configured for one broker, and then there is a switch to another broker, then again we are in the pipe.

      Maybe there is a way around this point programmatically? Please tell me.

      Forum on trading, automated trading systems and testing of trading strategies

      Features of the mql5 language, subtleties and techniques

      fxsaber, 2017.11.30 09:48

      Memo

      Action/program type Changing the TF or symbol Changing an account
      Indicator Run the OnInit and OnDeinit, the object of the global class is changing (full reset). Nothing happens except for zeroing prev_calculated.
      Advisor Running OnDeinit and OnInit, the global class object does not change. Run the OnInit and OnDeinit, the object of the global class is changing (full reset).

      Use the highlighted one.

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

      rosomah

      • 0 Questions
      • 5 Answers
      • 0 Best Answers
      • 30 Points
      View Profile
      rosomah
      2020-12-27T05:17:58+00:00Added an answer on December 27, 2020 at 5:17 am

      User_mt5:

      One of my brokers changed the name of one symbol from EURRUR to EURRUB and everything-the expert Advisor is suspended.

      ………..

      Maybe there is a way around this point programmatically? Please tell me.

      The name of the first six letters of the symbol is always the same, it is international(correct me if wrong). Work on them.

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

      starij

      • 0 Questions
      • 14 Answers
      • 0 Best Answers
      • 48 Points
      View Profile
      starij
      2020-12-27T05:17:54+00:00Added an answer on December 27, 2020 at 5:17 am

      User_mt5:

      One of my brokers changed the name of one symbol from EURRUR to EURRUB and everything-the expert Advisor is suspended.

      If the expert Advisor implements chart analysis using ChartSymbol() and this function encounters a chart with an unknown symbol, then:
      the expert begins to behave unpredictably. At least the function doesn’t give away the name of the chart symbol. With all the consequences.

      In addition, a significant part of the symbol names do not match for different brokers. If the terminal is configured for one broker, and then there is a switch to another broker, then again we are in the pipe.

      Maybe there is a way around this point programmatically? Please tell me.

      Describe the solution in words – it will be possible to solve it programmatically

      • 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