I've never seen a buffer index style set to EMPTY. I haven't tested your code, but EMPTY likely means invisible.
Ryan L Johnson #:
I've never seen a buffer index style set to EMPTY. I haven't tested your code, but EMPTY likely means invisible.
I've never seen a buffer index style set to EMPTY. I haven't tested your code, but EMPTY likely means invisible.
Even if I do it differently, the result is negative.
zeppi23:
tplm1[i]=Rssi[i+1]-(Rssi[i+2]-Rssi[i+2]);
what is tplm1?
zeppi23 #:
I will then use tmpl1 as int highest=Arraymaximum(tmpl1,21,i) to get the maximum value.I will then use tmpl1 as int highest=Arraymaximum(tmpl1,21,i) to get the maximum value and use it as double yk1 = tmpl1[highest];
My aim here is to calculate the maximum and minimum values of the tmpl1 value in the last 21 minutes according to the condition.
I cannot know what the problem is with restricted access to your code but two things I can guess:
- "Indicator values exceeding Indicator window Maximum and Minimum."
- "Some kind of bug like array out of range causing the indicator not to paint anymore."
Yashar Seyyedin #:
I cannot know what the problem is with restricted access to your code but two things I can guess:
- "Indicator values exceeding Indicator window Maximum and Minimum."
- "Some kind of bug like array out of range causing the indicator not to paint anymore."
Is there another way to do this?
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
Hello friends. I am having problems with MQL4 indicator coding. I am not that good at programming. I am having the problems I mentioned below with the RSI indicator. Can you help me?
When I add this code after the rssi buffer, both lines disappear. It does not produce an error code. Compilation is successful but my lines are deleted.
Thank you for your help.
if(Rssi[i+1]>Rssi[i+2]){
tplml1[i]=Rssi[i+1]-(Rssi[i+2]-Rssi[i+2]);
}else if(Rssi[i+1]<Rssi[i+2]){
tplm1[i]=Rssi[i+1]-(Rssi[i+2]-Rssi[i+2]);
}else {
tplm1[i]=Rssi[i+1]-(Rssi[i+2]-Rssi[i+2]);
}