Почему пустое значение показывает для индикатора в MT4 - PullRequest
0 голосов
/ 21 марта 2020

У меня есть индикатор с именем «Star-Profit-Channel.ex4», он имеет 7 значений, мой код:

void OnTick(){

   double starProfitChannel1 = iCustom(NULL, 0, "Star-Profit-Channel", 0, 1);
   double starProfitChannel2 = iCustom(NULL, 0, "Star-Profit-Channel", 1, 1);
   double starProfitChannel3 = iCustom(NULL, 0, "Star-Profit-Channel", 2, 1);
   double starProfitChannel4 = iCustom(NULL, 0, "Star-Profit-Channel", 3, 1);
   double starProfitChannel5 = iCustom(NULL, 0, "Star-Profit-Channel", 4, 1);
   double starProfitChannel6 = iCustom(NULL, 0, "Star-Profit-Channel", 5, 1);
   double starProfitChannel7 = iCustom(NULL, 0, "Star-Profit-Channel", 6, 1);

   Print("starProfitChannel1 = ", starProfitChannel1);
   Print("starProfitChannel2 = ", starProfitChannel2);
   Print("starProfitChannel3 = ", starProfitChannel3);
   Print("starProfitChannel4 = ", starProfitChannel4);
   Print("starProfitChannel5 = ", starProfitChannel5);
   Print("starProfitChannel6 = ", starProfitChannel6);
   Print("starProfitChannel7 = ", starProfitChannel7);

}

когда я запускаю этот код, результат равен

but it shows empty values

но он показывает пустые значения, почему ?, Как я могу это решить?

...