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?
alexeyvik
To do this, set the variable type as ENUM_LINE_STYLE enumeration
pu6ka
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
trendhunter
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).