Could you please tell me how to change the code of standard Stochastis as follows:
I need to add an external parameter to the indicator, so that I can manually specify (when "drawing" the indicator to the chart) which data to take from which chart (and which TF).
Why 9, you have 10 elements and max is not a value but an element index. You can read the help, it's faster than on the forum. You can find examples. F1 works.
zhuki thank you, is there a function that will not return the position but the value of the indicator itself? sorry, I can't find it myself( F1 does not help:)
вот тут уже читали? https://book.mql4.com/ru/appendix/glossary
High-Low и Ask-Bid - различные вещи.
Are you kidding me?
Значения High и Low даются для Bid. Для Ask прибавляйте значение спреда.
Thank you
>> thank you
Just don't forget that the spread is floatingА это что, mov[] ? если массив, то где объявление ?
int array[10]; //array of the last 10 MA values
int shift;
for(shift=0;shift<=9;shift++)
{
array[shift]=iMA(NULL,240,12,0,0,0,shift);}
i.e., like this:)
Could you please tell me how to change the code of standard Stochastis as follows:
I need to add an external parameter to the indicator, so that I can manually specify (when "drawing" the indicator to the chart) which data to take from which chart (and which TF).
Many thanks in advance.
IMA возвращает double . А у вас int.
Yeah, thanks, my mistake... I just put a double, but it still doesn't work(
There must be a mistake somewhere else...
double array[10];
int shift;
double max;
for(shift=0;shift<=9;shift++)
{
array[shift]=iMA(NULL,240,13,0,0,0,shift);}
max=ArrayMaximum(array,9,0); right?
F1 does not help:)