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 909
In Process
pu6ka
pu6ka

pu6ka

  • 1 Question
  • 2 Answers
  • 0 Best Answers
  • 22 Points
View Profile
  • 0
pu6ka
Asked: December 18, 20202020-12-18T09:55:33+00:00 2020-12-18T09:55:33+00:00

line style and width in the input parameters of the expert advisor

  • 0
line style and width in the input parameters of the expert advisor

Hi, everybody. Sometimes you need to use the parameters of the Expert Advisor to set the properties of the line that this Expert Advisor will manipulate on the chart.

The color variable type gives the same color selection options both in the line properties and through the Expert Advisor properties. But here is the style and width of the
line.

In the properties of graphic objects, set as follows:

something similar can be set in the indicator via #property indicator_style
and indicator_width

And in the Expert Advisor, you can not call such a type of enumeration as above in the picture?

ENUM_LINE_STYLE sets a text
enumeration, which is not very convenient for those who order Expert Advisors and want to see the
identity in both graphical objects and in their new Expert Advisor.

Does anyone know if there is a solution for Expert Advisors?

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

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. alexeyvik

      alexeyvik

      • 1 Question
      • 74 Answers
      • 0 Best Answers
      • 172 Points
      View Profile
      alexeyvik
      2020-12-18T09:55:47+00:00Added an answer on December 18, 2020 at 9:55 am

      Vasiliy Pushkaryov:

      i meant how to set the input parameter so that in the input
      expert advisor parameters

      there were drop-down lists like in standard graphics objects

      To do this, set the variable type as ENUM_LINE_STYLE enumeration

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

      pu6ka

      • 1 Question
      • 2 Answers
      • 0 Best Answers
      • 22 Points
      View Profile
      pu6ka
      2020-12-18T09:55:42+00:00Added an answer on December 18, 2020 at 9:55 am
      line style and width in the input parameters of the expert advisor

      Evgeniy Zhdan:

      the line style is set by the command:

      where nm is the name of the line (string) and wd
      – the line width (int).

      I meant how to set the input parameter so that in the input parameters of the Expert Advisor

      there were drop-down lists like in standard graphics objects

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

      trendhunter

      • 0 Questions
      • 23 Answers
      • 0 Best Answers
      • 66 Points
      View Profile
      trendhunter
      2020-12-22T07:02:43+00:00Added an answer on December 22, 2020 at 7:02 am

      the line style is set by the command:

      ObjectSet(nm, OBJPROP_WIDTH, wd);

      where nm
      – the name of the line (string) and
      wd
      – the line width (int).

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

    Lindatar

    Lindatar

    • 0 Questions
    • 0 Answers
    sgarnov

    sgarnov

    • 0 Questions
    • 1 Answer
    alexandrim

    alexandrim

    • 0 Questions
    • 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