[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 269
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.