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 230
In Process
andy912
andy912

andy912

  • 1 Question
  • 1 Answer
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
andy912
Asked: December 18, 20202020-12-18T06:01:38+00:00 2020-12-18T06:01:38+00:00

Question: Global variables and their specific use

  • 0

Hello.
Don’t kick hard, but the question is:
There is an indicator (no code), which when an event occurs makes a record in global variables, there is also an alert function. An Expert Advisor is planned that will receive information from the indicator and continue to perform the necessary actions. So I wonder if it is possible to make it somehow understand that the alert has worked and take the necessary information from there, or do you have to check global variables, search for the necessary one, and so on?

  • 3 3 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. komposter

      komposter

      • 1 Question
      • 36 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      komposter
      2020-12-18T07:04:31+00:00Added an answer on December 18, 2020 at 7:04 am

      Alerts can be read using the DLL.

      But the main variables will be easier and cheaper in terms of resources.

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

      andy912

      • 1 Question
      • 1 Answer
      • 0 Best Answers
      • 20 Points
      View Profile
      andy912
      2020-12-18T06:01:44+00:00Added an answer on December 18, 2020 at 6:01 am

      Stanislav Korotky:

      so far, only the analysis of global variables suggests itself.

      in principle, the mql api lacks broader support for alerts, in particular onalert events with source and text indication. and by the way, now in mt there are 2 independent types of aletres: those that generate mql programs by calling the alert function, and those that can be configured in the user interface. In theory, the essence is the same and the API should be one.

      PS. if the indicator gives an alert for some signal that is displayed in the buffer (for example, as an arrow), then it is best to read from the buffer.

      Thanks for the answer.
      There are no arrows, the indicator makes small records of different colors. Can you tell me where to check for records of this very buffer? I am not strong yet in all this, very not strong

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

      marketeer

      • 1 Question
      • 33 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      marketeer
      2020-12-18T07:04:31+00:00Added an answer on December 18, 2020 at 7:04 am

      andy912:
      Hello.
      Don’t kick hard, but the question is:
      There is an indicator (no code), which when an event occurs makes a record in global variables, there is also an alert function. An Expert Advisor is planned that will receive information from the indicator and continue to perform the necessary actions. So I wonder if it is possible to make it somehow understand that the alert has worked and take the necessary information from there, or do you have to check global variables, search for the necessary one, and so on?

      so far, only the analysis of global variables suggests itself.

      in principle, the mql api lacks broader support for alerts, in particular onalert events with source and text indication. and by the way, now in mt there are 2 independent types of aletres: those that generate mql programs by calling the alert function, and those that can be configured in the user interface. In theory, the essence is the same and the API should be one.

      PS. if the indicator gives an alert for some signal that is displayed in the buffer (for example, as an arrow), then it is best to read from the buffer.

      • 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

    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