Pro, can you tell me how to set a checkbox in the indicator parameters, so that if the indicator has a checkbox - read one, not the other. Thank you...
kon12: Pro, can you tell me how to set a check box in the indicator parameters, so that if the indicator has a check box in the menu - count one, not - another. Thank you...
externbool флажок=True;
int считаем;
//+------------------------------------------------------------------+//| Script program start function |//+------------------------------------------------------------------+voidOnStart()
{
if(флажок)
считаем=1+2;
else
считаем=1-2;
}
//+------------------------------------------------------------------+
THANK YOU! Only it turns out you have to select true-false in the indicator parameters, but is it possible to get the check box in the parameters as a tick box that you put in or take out. Needed for tablet
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.
And then how do we figure out which value to use?
Or did you mean to declare an array? Then int N[6] = {1, 2, 5, 9, 15, 19};
I don't use such arrays, if I've made a mistake, please let somebody correct me...
Arrays are not suitable. The values of array elements are accessed element by element, i.e. you can access only one of the elements at a time.
Inthe tester it is necessary to limit trading on certain days of the month. How can we make the days of the month simple and easy to change?
Inthe tester it is necessary to limit trading on certain days of the month. How can we make the days of the month simple and easy to change?
https://docs.mql4.com/ru/constants/structures/mqldatetime
https://docs.mql4.com/ru/constants/structures/mqldatetime
Thank you!
int N[5] = {1, 2, 5, 9, 15, 19} - too many initializers
int N[6] = {1, 2, 5, 9, 15, 19};
N[0] =1
N[1] = 2
N[2] = 5
N[3] = 9
N[4] = 15
N[5] = 19
Pro, can you tell me how to set a check box in the indicator parameters, so that if the indicator has a check box in the menu - count one, not - another. Thank you...