It reads everything. Remove semicolons in the array declaration, put commas. And it doesn't matter how many spaces or tabs there are in the array. Or maybe I've got you wrong.
gyfto: Everything reads. Remove semicolons in the array declaration, put commas. And how many spaces or tabs there are doesn't matter. Or maybe I've got you wrong.
Thank you for your help. Why then are there semicolons in Kovalev's textbook?
//--------------------------------------------------------------------// stringarray.mq4// Предназначен для использования в качестве примера в учебнике MQL4.//--------------------------------------------------------------------externdouble Level=1.3200; // Заданный уровень string Text[101]; // Объявление массива//--------------------------------------------------------------------int init() // Спец. ф-ия init()
{ // Присвоение значений
Text[1]="один "; Text[15]="пятнадцать ";
Text[2]="два "; Text[16]="шестнадцать ";
Text[3]="три "; Text[17]="семнадцать ";
Text[4]="четыре "; Text[18]="восемнадцать ";
Text[5]="пять "; Text[19]="девятнадцать ";
Text[6]="шесть "; Text[20]="двадцать ";
Text[7]="семь "; Text[30]="тридцать ";
Text[8]="восемь "; Text[40]="сорок ";
Text[9]="девять "; Text[50]="пятьдесят ";
Text[10]="десять "; Text[60]="шестьдесят";
Text[11]="одиннадцать "; Text[70]="семьдесят ";
Text[12]="двенадцать "; Text[80]="восемьдесят ";
Text[13]="тринадцать "; Text[90]="девяносто";
Text[14]="четырнадцать "; Text[100]= "сто";
// Вычисление значенийfor(int i=20; i<=90; i=i+10) // Цикл по десяткам
{
for(int j=1; j<=9; j++) // Цикл по единицам
Text[i+j]=Text[i] + Text[j]; // Вычисление значения
}
return; // Выход из init()
}
//--------------------------------------------------------------------int start() // Спец. ф-ия start()
{
int Delta=NormalizeDouble((Bid-Level)/Point,0);// Превышение //--------------------------------------------------------------------if (Delta>=0) // Цена не выше уровня
{
Alert("Цена ниже уровня"); // Сообщениеreturn; // Выход из start()
}
//--------------------------------------------------------------------if (Delta<100) // Цена более 100
{
Alert("Более ста пунктов"); // Сообщениеreturn; // Выход из start()
}
//--------------------------------------------------------------------Alert("Плюс ",Text[Delta],"pt."); // Вывод на экранreturn; // Выход из start()
}
Yes but is there anything ready? And why can'tPeriod Converter be set to convert to less if you replace the * in its code with / it doesn't count, although what difference does it make to multiplying minutes or dividing.
scar1k: Yes, but is there anything ready? And why can't Period Converter be set to convert to less if you replace the * in its code with / it doesn't count, although what difference does it make to multiplying minutes or dividing.
Well, if the kodobase doesn't have it, you have to write it yourself. It's not the first time I've encountered this. I myself am now asking the same question, I have no other way out. I'm trying to rewrite the tick collector I linked to above. Let's do it together, now.
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.
QUESTION.WHY DOESN'T THE PROGRAM READ AN ARRAY INITIALISED IN ONE COLUMN.
Everything reads. Remove semicolons in the array declaration, put commas. And how many spaces or tabs there are doesn't matter. Or maybe I've got you wrong.
Thank you for your help. Why then are there semicolons in Kovalev's textbook?
Hello. Can you please tell me how to make a 10 second timeframe? With Period Converter I got it done, only over a minute.
You have to form from ticks. Periodconverter does the minimum from minutes.
Thank you for your help. Why are semicolons in Kovalev's textbook then?
Thank you for your help.Why then are there semicolons in Kovalev's textbook?
Initializing and filling an array is done in these ways:
Choose the one that suits you.
Yes, but is there anything ready? And why can't Period Converter be set to convert to less if you replace the * in its code with / it doesn't count, although what difference does it make to multiplying minutes or dividing.
Well, if the kodobase doesn't have it, you have to write it yourself. It's not the first time I've encountered this. I myself am now asking the same question, I have no other way out. I'm trying to rewrite the tick collector I linked to above. Let's do it together, now.
Thank you for your help.Why then are there semicolons in Kovalev's textbook?
Because it's a textbook, the author makes you think! :)))
Guys, help me out.
I don't understand why the line
Result: 2013.04.12 17 13 Print_v4 EURUSD,M15: SL == 1.3068
gives out four decimal places?
I am aware ofDoubleToStr.
Initialising and filling the array is done in these ways:
Choose the one that suits you.