Hello, everyone!
Please help: how to make it so that when you start the expert Advisor, you can change the color of graphic elements?
input color Rect_color_1=clrSilver;
it does not work, there is no drop-down subwindow list, like this:
Thanks!
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5
Create A New Account
kofesutra
Vladimir, thank you! Restarted the terminal-it worked 🙂
barabashkakvn
Everything works, there are no zboys:
//+------------------------------------------------------------------+
//| Test Input Color.mq5 |
//| Copyright © 2018, Vladimir Karputov |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2018, Vladimir Karputov"
#property link "
#property version "1.00"
//--- input parameters
input color Rect_color_1=clrSilver;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
}
//+------------------------------------------------------------------+
The print run: