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 643
In Process
viktorternovskiy
viktorternovskiy

viktorternovskiy

  • 3 Questions
  • 6 Answers
  • 0 Best Answers
  • 22 Points
View Profile
  • 0
viktorternovskiy
Asked: December 18, 20202020-12-18T09:20:58+00:00 2020-12-18T09:20:58+00:00

individual expert advisor settings are visible only to the developer? Is this possible?

  • 0

Hello dear gurus. I am learning the MQL5 language, writing an Expert Advisor, and at a certain stage the question arose, is it possible to make some external variables that are visible only to the developer? I understand that this can be done through internal variables and therefore the situation is not critical, but I would like more convenience and I wonder if it is possible to implement it) Tried through conditions, but they don’t work in the scope of variable declarations.

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

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. prostotrader

      prostotrader

      • 0 Questions
      • 16 Answers
      • 0 Best Answers
      • 56 Points
      View Profile
      prostotrader
      2020-12-22T07:03:19+00:00Added an answer on December 22, 2020 at 7:03 am

      Viktor Ternovskiy:
      Hello dear gurus. I am learning the MQL5 language, writing an Expert Advisor, and at a certain stage the question arose, is it possible to make some external variables that are visible only to the developer? I understand that this can be done through internal variables and therefore the situation is not critical, but I would like more convenience and I wonder if it is possible to implement it) Tried through conditions, but they don’t work in the scope of variable declarations.

      #property copyright "Copyright 2020, prostotrader"
      #property link      "
      #property version   "1.00"

      #define DEBUG

      //+------------------------------------------------------------------+
      //| Expert initialization function                                   |
      //+------------------------------------------------------------------+
      int OnInit()
        {
      #ifdef DEBUG
        //Private data
      #else
        
      //
      #endif    
      //---
         return(INIT_SUCCEEDED);
        }

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

      viktorternovskiy

      • 3 Questions
      • 6 Answers
      • 0 Best Answers
      • 22 Points
      View Profile
      viktorternovskiy
      2020-12-18T09:21:07+00:00Added an answer on December 18, 2020 at 9:21 am

      Edgar Akhmadeev:

      1. Global variables. If a “secret variable” is present, it is read.

      2. Reading values from the file.

      3. If it is sufficient that the variables cannot be used, although visible, you can add the Enable variable with a numeric password.

      okay, thanks. apparently the best option for me is still internal variables and checking for the presence of a certain file or record in the file, so to speak, to determine the developer and display additional technical data and statistics on the graph. this is a developer mode advanced)

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

      dali

      • 1 Question
      • 3 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      dali
      2020-12-22T07:03:19+00:00Added an answer on December 22, 2020 at 7:03 am

      viktorternovskiy:
      Hello dear gurus. I am learning the MQL5 language, writing an Expert Advisor, and at a certain stage the question arose, is it possible to make some external variables that are visible only to the developer? I understand that this can be done through internal variables and therefore the situation is not critical, but I would like more convenience and I wonder if it is possible to implement it) Tried through conditions, but they don’t work in the scope of variable declarations.

      1. Global variables. If a “secret variable” is present, it is read.

      2. Reading values from the file.

      3. If it is sufficient that the variables cannot be used, although visible, you can add the Enable variable with a numeric password.

      …

      • 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 506
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 683
    • 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

    JeffreySer

    JeffreySer

    • 1 Question
    • 0 Answers
    Jerrynug

    Jerrynug

    • 1 Question
    • 0 Answers
    Leonardcig

    Leonardcig

    • 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