New CCalendarInputBox control element of the IncGUI library has been designed for date and/or time input.
CCalendarInputBox control element can be used in different modes: date and time input, date input, time input.
The time can be entered up to minutes or seconds (optional). Additionally Date and time can be amended by relocating the vertical line. In the normal state the element is a text field with the button. The tab is opened when the button is hit.
The tab with the numbered control elements is shown in the figure below.
The tab of the CCalendarInput control element
Control element application starts from the Init() method call, the following parameters are indicated when the method is called:
The current value is received using ValueDateTime() (in datetime format) and ValueString() (string in format). The time program set is executed using the SetValueDateTime() method.
In different modes (date/time input) the control element has different width that correpsonds to the length of a displayed value but the width can be changed using SetWidth() method. Control element uses the two interdependent classes CCalendar (not used independently) and CCalendarInputBox. Both classes are added to the IncGUI_v4.mqh file (attached).
Also, IncGUIv4mqh.chm file (IncGUI_v4.mqh library documentation) prepared in doxygen and eIncGUI_v4_Test_CCalendarInputBox.mq5 Expert Advisor with the example of the control element application are attached here.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/542
Curvelinear redrawing channel.SeNSetiVe
The trend indicator that gives signals for performing deals. The indicator color depends on the market movement direction determined by the indicator position relative to the zero line.