Wszystkie pytania dozwolone początkujących programistów

O jezykach programowania w platformach i nie tylko.
lxi
Stały bywalec
Stały bywalec
Posty: 59
Rejestracja: 28 sty 2014, 14:04

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: lxi »

Panowie dzięki za podpowiedzi. Z problemem juz sobie poradziłem, ale pojawił się kolejny:)
EA mam wrzucone na wykres M1, na otwarciu każdej nowej świecy funkcja iCustom odczytuje cztery wartości jednego ze wskaźników z TF D1.
Za każdym razem gdy wartości są odczytywane, w zakładce strategie pojawia się coś takiego:

Obrazek

Czy to normalne w działaniu funkcji iCustom, że inicjalizuje wskaźnik i odczytuje z niego pierwszą wartość a następnie robi to samo tyle razy, ile wartości ma pobrać???

Gdyby miał pobierać nawet jedną wartość na każdym ticku, to plik z logami miałby chyba kilkadziesiąt tysięcy linii.

Awatar użytkownika
ninjaproject
Maniak
Maniak
Posty: 4944
Rejestracja: 30 lip 2019, 13:15

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: ninjaproject »

Musi być bug w samym indyku i go wywala z wykresu za każdym razem, gdy go inicjuje.
Spróbuj zmienić nazwę indyka, wywal ten wykrzyknik i zlikwiduj spację z lewej.
No i, wtedy w EA nazwę zmień.
Trejder, Mentor/trener, aka. Dadas, fx-technik, obecnie ninjaproject.
Programuję wskaźniki i EA do MetaTrader 4/5.

Awatar użytkownika
ninjaproject
Maniak
Maniak
Posty: 4944
Rejestracja: 30 lip 2019, 13:15

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: ninjaproject »

Kompiluje się poprawnie, więc nie powinno być problemów.
mth_FastTMALine.mq4
Nie masz wymaganych uprawnień, aby zobaczyć pliki załączone do tego posta.
Trejder, Mentor/trener, aka. Dadas, fx-technik, obecnie ninjaproject.
Programuję wskaźniki i EA do MetaTrader 4/5.

Awatar użytkownika
ninjaproject
Maniak
Maniak
Posty: 4944
Rejestracja: 30 lip 2019, 13:15

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: ninjaproject »

Jeszcze spojrzałem na listę parametrów tego indyka:
2020-03-11_171121.jpg
Zauważ ten zaznaczony.
Jeżeli nie zapodałeś w iCustom() tych wszystkich po kolei, to może być tak, że interpretuje ten jako "true", i wtedy być może reinicjuje się za każdym tickiem.
Nie masz wymaganych uprawnień, aby zobaczyć pliki załączone do tego posta.
Trejder, Mentor/trener, aka. Dadas, fx-technik, obecnie ninjaproject.
Programuję wskaźniki i EA do MetaTrader 4/5.

lxi
Stały bywalec
Stały bywalec
Posty: 59
Rejestracja: 28 sty 2014, 14:04

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: lxi »

Sprawdziłem wszystko, tak jak zasugerowałeś ale niestety nadal to samo. Wkleję niżej kod, który napisałem do odczytywania wartości wskaźnika, może ja coś skopałem w kodzie.

Kod: Zaznacz cały

   D1_Up_Band_0 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 0),4);
   D1_Up_Band_1 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 1),4);
   D1_Up_Band_2 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 2),4);
   D1_Up_Band_3 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 3),4);
   D1_Up_Band_4 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 4),4);
   D1_Up_Band_5 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 5),4);
   
   D1_Dn_Band_0 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 0),4);
   D1_Dn_Band_1 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 1),4);
   D1_Dn_Band_2 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 2),4);
   D1_Dn_Band_3 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 3),4);
   D1_Dn_Band_4 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 4),4);
   D1_Dn_Band_5 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 5),4);
   
   H1_Up_Band_0 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 0),4);
   H1_Up_Band_1 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 1),4);
   H1_Up_Band_2 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 2),4);
   H1_Up_Band_3 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 3),4);
   H1_Up_Band_4 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 4),4);
   H1_Up_Band_5 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 5),4);

   H1_Dn_Band_0 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 0),4);
   H1_Dn_Band_1 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 1),4);
   H1_Dn_Band_2 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 2),4);
   H1_Dn_Band_3 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 3),4);
   H1_Dn_Band_4 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 4),4);
   H1_Dn_Band_5 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 5),4);
   
   H1_Center_0 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 1),4);
   H1_Center_1 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 2),4);
   H1_Center_2 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 3),4);
   H1_Center_3 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 4),4);
   H1_Center_4 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 5),4);
   H1_Center_5 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine.ex4", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 6),4);

Awatar użytkownika
ninjaproject
Maniak
Maniak
Posty: 4944
Rejestracja: 30 lip 2019, 13:15

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: ninjaproject »

Jeżeli to ma być w EA, to po co ci 5 wartości wstecz?
Porównujesz potem if-em coś, czy jak?
Poza tym, pisałem, że w nazwie indyka nie piszemy rozszerzenia ".ex4".
No i, nie mogę wiele powiedzieć, jeżeli nie mam całego kodu.

I jeszcze poza tym, to tak się tego nie robi.
Też pisałem, że NormalizeDouble(value,Digits);
Digits jest funkcją, która zwraca ilość miejsc po przecinku dla danego instrumentu, i po to służy, żeby właśnie
cena była zgodna z ilością miejsc po przecinku dla danego instrumentu.
Ostatnio zmieniony 11 mar 2020, 23:22 przez ninjaproject, łącznie zmieniany 1 raz.
Trejder, Mentor/trener, aka. Dadas, fx-technik, obecnie ninjaproject.
Programuję wskaźniki i EA do MetaTrader 4/5.

Awatar użytkownika
ninjaproject
Maniak
Maniak
Posty: 4944
Rejestracja: 30 lip 2019, 13:15

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: ninjaproject »

Wkleiłem to do mojego EA, i nic nie widać w logu Strategie, działa bez zarzutu.

Kod: Zaznacz cały

//---   D1_Up_Band_0 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine.ex4", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 0),4);
   double D1_Up_Band_1 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 1),Digits);
   double D1_Up_Band_2 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 2),Digits);
   double D1_Up_Band_3 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 3),Digits);
   double D1_Up_Band_4 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 4),Digits);
   double D1_Up_Band_5 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 5),Digits);
   
   double D1_Dn_Band_0 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 0),Digits);
   double D1_Dn_Band_1 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 1),Digits);
   double D1_Dn_Band_2 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 2),Digits);
   double D1_Dn_Band_3 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 3),Digits);
   double D1_Dn_Band_4 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 4),Digits);
   double D1_Dn_Band_5 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 5),Digits);
   
   double H1_Up_Band_0 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 0),Digits);
   double H1_Up_Band_1 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 1),Digits);
   double H1_Up_Band_2 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 2),Digits);
   double H1_Up_Band_3 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 3),Digits);
   double H1_Up_Band_4 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 4),Digits);
   double H1_Up_Band_5 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 1, 5),Digits);

   double H1_Dn_Band_0 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 0),Digits);
   double H1_Dn_Band_1 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 1),Digits);
   double H1_Dn_Band_2 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 2),Digits);
   double H1_Dn_Band_3 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 3),Digits);
   double H1_Dn_Band_4 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 4),Digits);
   double H1_Dn_Band_5 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 2, 5),Digits);
   
   double H1_Center_0 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 1),Digits);
   double H1_Center_1 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 2),Digits);
   double H1_Center_2 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 3),Digits);
   double H1_Center_3 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 4),Digits);
   double H1_Center_4 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 5),Digits);
   double H1_Center_5 = NormalizeDouble(iCustom(NULL, 60, "mth_FastTMALine", 60, 25, 0, 1.6, 70, 0.1, true, false, false, false, false, false, 5000, 4, 6),Digits);
Trejder, Mentor/trener, aka. Dadas, fx-technik, obecnie ninjaproject.
Programuję wskaźniki i EA do MetaTrader 4/5.

lxi
Stały bywalec
Stały bywalec
Posty: 59
Rejestracja: 28 sty 2014, 14:04

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: lxi »

Potrzebuję wartości pięciu ostatnich świec aby określić czy kanał linii TMA jest ustawiony spadkowo czy wzrostowo.
Usunę z kodu .ex4, zastąpię stałe liczby funkcją Digits - jeśli o to Ci chodziło. Jeśli to nie ruszy to do pustego EA wkleję kod odpowiedzialny za odczyty i zobaczę jak to będzie latać. Jeśli będzie wszystko w porządku to będę szukał błędów w innym miejscu w kodzie.
Niestety nie mogę udostępnić robota w całości, ponieważ piszę go dla znajomego, któremu obiecałem poufność.

Awatar użytkownika
ninjaproject
Maniak
Maniak
Posty: 4944
Rejestracja: 30 lip 2019, 13:15

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: ninjaproject »

LOL, kolejny, który "odkrył Amerykę"!
Spoko, ja się tylko mogę uśmiechnąć!
Trejder, Mentor/trener, aka. Dadas, fx-technik, obecnie ninjaproject.
Programuję wskaźniki i EA do MetaTrader 4/5.

lxi
Stały bywalec
Stały bywalec
Posty: 59
Rejestracja: 28 sty 2014, 14:04

Re: Wszystkie pytania dozwolone początkujących programistów

Nieprzeczytany post autor: lxi »

Napisałem czysty kod do odczytywania wartości, niestety ciągle to samo. Ręce opadają.
Swoją drogą ja też niejednokrotnie myślałem, że odkryłem Amerykę, pewnie wielu tak miało, ale jak chłopak chce to niech próbuje. Dla mnie jest to dobre wyzwanie jeśli chodzi o naukę programowania.
Poniżej wklejam kod, może zauważysz jeszcze coś nieprawidłowego.

Kod: Zaznacz cały

//+------------------------------------------------------------------+
//|                                                   mth_odczyt.mq4 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict

double D1_Up_Band_0, D1_Up_Band_1, D1_Up_Band_2, D1_Up_Band_3, D1_Up_Band_4, D1_Up_Band_5;
double D1_Dn_Band_0, D1_Dn_Band_1, D1_Dn_Band_2, D1_Dn_Band_3, D1_Dn_Band_4, D1_Dn_Band_5;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {

   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {

   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   D1_Up_Band_0 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 0),Digits);
   D1_Up_Band_1 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 1),Digits);
   D1_Up_Band_2 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 2),Digits);
   D1_Up_Band_3 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 3),Digits);
   D1_Up_Band_4 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 4),Digits);
   D1_Up_Band_5 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 1, 5),Digits);
   
   D1_Dn_Band_0 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 0),Digits);
   D1_Dn_Band_1 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 1),Digits);
   D1_Dn_Band_2 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 2),Digits);
   D1_Dn_Band_3 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 3),Digits);
   D1_Dn_Band_4 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 4),Digits);
   D1_Dn_Band_5 = NormalizeDouble(iCustom(NULL, 1440, "mth_FastTMALine", 1440, 17, 6, 1.55, 90, 0.25, true, false, false, false, false, false, 5000, 2, 5),Digits);  
  }
//+------------------------------------------------------------------+

ODPOWIEDZ