I'd be glad to cite the whole code here - but, despite the fact, that it's poky, primitive and undone, it still can't fit into the whole post - it swears it's too long. :-(
By the time I've written my post, there's already an answer. >>Thank you. :-) I'll try to normalize, if it doesn't help - I'll use the magic button "attach file". :-)
Alsu, normalising the prices solved the problem, everything works. I had no idea there would be 5 digits in the archive of downloaded quotes. Thanks for the help. :-)
Hi all, could you please tell me how to make an object be drawn from the other side
in this example:
objName ="ob"+ObjectsTotal();ObjectCreate( objName,OBJ_ARROW,0, xTime( window. position ), pp2
);ObjectSet( objName, OBJPROP_ARROWCODE,5);<--> рисуется ценовая метка с лева, а надо с парава
ObjectSet( objName, OBJPROP_COLOR,White);ObjectSet( objName, OBJPROP_STYLE,2);
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.
I'd be glad to cite the whole code here - but, despite the fact, that it's poky, primitive and undone, it still can't fit into the whole post - it swears it's too long. :-(
There's a button at the bottom - attach file :)))
Now what to do about it?
By the time I've written my post, there's already an answer. >>Thank you. :-) I'll try to normalize, if it doesn't help - I'll use the magic button "attach file". :-)
Good afternoon. Please help me to solve this problem. I have written a function to find the maximal value of RSI indicator on an N-bar segment.
//+--------------------------------------------------------+
//| Описание : Возвращает максимальное значение индикатора RSI, на отрезке |
//| N-баров. |
//+--------------------------------------------------------+
//| Параметры: |
//| MaxRSI - максимальное значение индикатора RSI |
//| |
//+--------------------------------------------------------+
double IsMaxRSI() {
double MaxRSI = 0;
double Max_array[20];
int c, total_c = ArraySize(Max_array);
ArraySetAsSeries(Max_array,true);
{
for(c=1; c <= total_c; c++)
Max_array[c]= iRSI(Symbol(),RSI_TF,RSI_Period,PRICE_CLOSE,c);
}
MaxRSI = Max_array[ArrayMaximum(Max_array,total_c,1)];
return (MaxRSI);
}
Now the question; How do I get the value of 20 out of the array into the variables?
double Max_array[20];
This value of 20 I need to change in external variables... Thank you in advance for your help. Sincerely Dimitri.
why is the signal not working?
I wanted to set the filter zone in pips from the highest high and lowest low... the signal does not work what am I doing wrong?
why isn't the signal working?
I wanted to set the filter zone in pips from the highest high and lowest low... The signal doesn't work, what am I doing wrong?
I got it figured out, but the question remains, why can't I output the timeframe to an external variable?
Hi all, could you please tell me how to make an object be drawn from the other side
in this example:
help me out please.Hi all, could you please tell me how to make an object be drawn from the other side
in this example:
help pleaseGood afternoon. Please help me to solve this problem. I have written a function to find the maximal value of RSI indicator on an N-bar segment.
//+--------------------------------------------------------+
//| Описание : Возвращает максимальное значение индикатора RSI, на отрезке |
//| N-баров. |
//+--------------------------------------------------------+
//| Параметры: |
//| MaxRSI - максимальное значение индикатора RSI |
//| |
//+--------------------------------------------------------+
double IsMaxRSI() {
double MaxRSI = 0;
double Max_array[20];
int c, total_c = ArraySize(Max_array);
ArraySetAsSeries(Max_array,true);
{
for(c=1; c <= total_c; c++)
Max_array[c]= iRSI(Symbol(),RSI_TF,RSI_Period,PRICE_CLOSE,c);
}
MaxRSI = Max_array[ArrayMaximum(Max_array,total_c,1)];
return (MaxRSI);
}
Now the question itself; How do I take the value of 20 out of this array into variables?
double Max_array[20];
This value of 20 I need to change in external variables... Thank you in advance for your help. Sincerely Dimitri.
First, put the code in logical order.
ArraySetAsSeries(Max_array,true) - why?
for(c=1; c <= total_c; c++) - arrays are indexed from 0 to total_c-1.