I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
Hey Thanks for the quick replies;-)
@Keith Sorry my bad, i didn't know that the EA/Indicator Section is exclusively for mql5 only, won't happen again.
@William Hey Thanks, that explains why it can't calculate the ticks before starting :-)
DigitalAlchemist:
@Keith Sorry my bad, i didn't know that the EA/Indicator Section is exclusively for mql5 only, won't happen again.
Don't worry about it. The forum is badly organised and confusing.
MQL4 and MQL5 used to be 2 different websites and when they combined the 2 Metaquotes just gave the 1 section for MQL4 in the forum.
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 MQL Community :-),
I'm pretty new to MQL and just started diving into this whole stuff, actually im exercising a bit by implementing a custom Indicator based on the RSI.
For the beginning a very simple improvement will be coded, let the user select multiple timeframes, calculate an average based on the selection and then Display the average as combined RSI, nothing special as said just for training on MQL(im more a sysadmin guy in real-life, so i barely code something except a few shellscripts).
The whole thing works so far but im stepping into two Problems and i hope someone of you would be that nice to give me a hint1. the Major Problem is that the Indicator doesnt calculate older Ticks like the normal RSI, it just displays the values since its added to a window, the ticks before are just a flat line(looks like the older ticks are calculated in the scope of the while loop and there seems to be a problem)
I have oriented by this tutorial but it doesnt seem to be actual, has the method start() instead of OnCalculate():
https://book.mql4.com/samples/icustom
2. I'd like to Display a second line with a single RSI based on actual Timeframe to compare the values easily, but I haven't archieved it to Display the line although it is done the same Way as the first one.
As said any Hints or Clues would be really nice from anyone more expierienced than me:-)