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 5893
Next
In Process
avel08
avel08

avel08

  • 2 Questions
  • 5 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
avel08
Asked: December 29, 20202020-12-29T10:13:44+00:00 2020-12-29T10:13:44+00:00In: Forex Expert Advisors

Input parameters (which are set by the user)

  • 0

very little information, or very limited functionality?
how can I offer the user a set of input parameters more flexibly?
for example, I need if the user selects p1 = true, then allow to specify p2 and p3 and p4, if the user selects p1 = false, then prohibit filling in other fields

input bool p1=true;

input int  p2=0;
input int  p3=0;
input int p4=0;
is
it possible to substitute values in input from a text file?

  • 6 6 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    6 Answers

    • Voted
    • Oldest
    • Recent
    1. alexeyvik

      alexeyvik

      • 1 Question
      • 74 Answers
      • 0 Best Answers
      • 172 Points
      View Profile
      alexeyvik
      2020-12-29T10:14:22+00:00Added an answer on December 29, 2020 at 10:14 am

      Stanislav Korotky:

      sinput

      This prevents optimization of the parameter, and nothing more.

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

      avel08

      • 2 Questions
      • 5 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      avel08
      2020-12-29T10:14:15+00:00Added an answer on December 29, 2020 at 10:14 am
      Input parameters (which are set by the user)

      sinput string a1="info";

      right?

      it’s being edited..

      • 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-29T10:14:07+00:00Added an answer on December 29, 2020 at 10:14 am

      Pavel Kolchin:

      very little information, or very limited functionality?

      how can I offer the user a set of input parameters more flexibly?

      for example, I need if the user chooses p1 = true, then allow to specify p2 and p3 and p4, if you choose p1 = false, then prohibit filling in other fields

      Write a request to the service desk. This should have been done long ago in MT4. Today you will write – maybe in a couple of years they will do it. 😉

      In the meantime, MQ usually offers for such dependent settings to make their own graphical control panel from existing standard objects or other ready-made controls, which already have several libraries.

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

      avel08

      • 2 Questions
      • 5 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      avel08
      2020-12-29T10:14:00+00:00Added an answer on December 29, 2020 at 10:14 am

      everything already works without these input parameters ( using the interactive menu), but the strategy tester and MQL VPS require exactly these software parameters. Input parameters, so you have to duplicate them

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

      prostotrader

      • 0 Questions
      • 16 Answers
      • 0 Best Answers
      • 56 Points
      View Profile
      prostotrader
      2020-12-29T10:13:54+00:00Added an answer on December 29, 2020 at 10:13 am

      Pavel Kolchin:

      very little information, or very limited functionality?

      how can I offer the user a set of input parameters more flexibly?

      for example, I need if the user selects p1 = true, then allow to specify p2 and p3 and p4, if the user selects p1 = false, then prohibit filling in other fields

      Why in input?

      Just set global variables and subtract data from your file.

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

      laryx

      • 0 Questions
      • 43 Answers
      • 0 Best Answers
      • 106 Points
      View Profile
      laryx
      2020-12-29T10:13:48+00:00Added an answer on December 29, 2020 at 10:13 am

      If the user chooses p1=false, then it’s his own fault – let him put anything in the other fields, you just ignore them.

      If the user chooses p1=true, then use these values.

      If you really want the user to have the possibility of the appearance or disappearance of input fields , it is better to do this through the input / output controls. But, in my opinion, all this is superfluous…

      As for the “text file” – I personally use INI files. In my opinion, a very convenient thing for settings.

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

    RobertFoeta

    RobertFoeta

    • 0 Questions
    • 0 Answers
    Brus Agell

    Brus Agell

    • 1 Question
    • 0 Answers
    pinupcasinoo

    pinupcasinoo

    • 1 Question
    • 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