Iosebi Tavadze: Maybe I'm in the wrong thread. May the gods forgive me. I need to write an indicator, which would give a signal from a combination of four or five indicators installed in the basement. Or a ready-made advisor.Possible advice please!!!!!!!!!!
simeon068 : How can I add an expert advisor to an mql5 folder and for it to show in the advisor section?
In the terminal, in the "File" menu, select "Open data directory" - the explorer will open. In it, go to the MQL5 \ Experts folder - place your adviser in it or in any subfolder. Then in the navigator of the terminal in the menu of the right button select "Update".
It is possible to use an uninitialised lastme variable. You have it declared without initialization. It's not guaranteed to be filled by SymbolInfoTick().
Declare a variable with initialization right away: MqlTick lastme={0};
Thank you very much! The warning has disappeared. Good health and all the best!!!
//+------------------------------------------------------------------+//| Создаёт поле ввода 1 |//+------------------------------------------------------------------+bool CProgram::CreateSpinEdit1(constint x_gap,constint y_gap,string text)
{
//--- Сохраним указатель на окно
m_spin_edit1.WindowPointer(m_window);
//--- Координатыint x=m_window.X()+x_gap;
int y=m_window.Y()+y_gap;
//--- Значениеdouble v=(m_spin_edit1.GetValue()==WRONG_VALUE) ? 0 : m_spin_edit1.GetValue();
//--- Установим свойства перед созданием
m_spin_edit1.XSize(204);
m_spin_edit1.YSize(24);
m_spin_edit1.EditXSize(80);
m_spin_edit1.MaxValue(10000);
m_spin_edit1.MinValue(0);
m_spin_edit1.StepValue(10*Point);
m_spin_edit1.SetDigits(Digits);
m_spin_edit1.SetValue(v);
m_spin_edit1.ResetMode(true);
m_spin_edit1.AreaColor(clrWhite);
//--- Создадим элемент управленияif(!m_spin_edit1.CreateSpinEdit(m_chart_id,m_subwin,text,x,y))
return(false);
//--- Добавим объект в общий массив групп объектов
CWndContainer::AddToElementsArray(0,m_spin_edit1);
return(true);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Maybe I'm in the wrong thread. May the gods forgive me. I need to write an indicator, which would give a signal from a combination of four or five indicators installed in the basement. Or a ready-made advisor.Possible advice please!!!!!!!!!!
If you want someone to write it for you, go here.
If you want to do it yourself, tell us what you can't do and post your code.
How can I add an expert advisor to an mql5 folder and for it to show in the advisor section?
In the terminal, in the "File" menu, select "Open data directory" - the explorer will open. In it, go to the MQL5 \ Experts folder - place your adviser in it or in any subfolder. Then in the navigator of the terminal in the menu of the right button select "Update".
Can anyone advise!!! what is the warning and how to fix it?
in this place
Can anyone advise!!! what is the warning and how to fix it?
in this place
I think I fixed it - except I don't know if that's right? Put it out there.
Can anyone advise!!! what is the warning and how to fix it?
in this place
You may be using an uninitialised lastme variable. You have it declared without initialization. It's not guaranteed to be filled by SymbolInfoTick()
Declare a variable with initialization right away: MqlTick lastme={0};
It is possible to use an uninitialised lastme variable. You have it declared without initialization. It's not guaranteed to be filled by SymbolInfoTick().
Declare a variable with initialization right away: MqlTick lastme={0};
Thank you very much! The warning has disappeared. Good health and all the best!!!
--------------------------
I put it back inside - as you have shown.
good utility, i downloaded it from herehttps://www.mql5.com/ru/articles/5614
Can you tell me how to request data from a library?
I'm trying to create an owl with a data entry interface
Looks like this
enter field code
How can I query it?
how to request it?
probably like this:
I guess so:
what does object name mean?
I have to.
double OrderBuy = m_spin_edit1.GetValue();but in this case the error
'm_spin_edit1' - undeclared identifier TestLibrary.mq4 56 20
what does object name mean?
I doubt I can explain, if that's what you're asking
an object is ... let's say a variable of class type
in your code section is class CProgram
it must be written somewhere in the code
and will need to be called
double OrderBuy = MyProgram.m_spin_edit1.GetValue();