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 probably didnt think enough about the difference between Indicators and EA before I started.
I did consider that using the time to define a new candle might not be very accurate but I am only using the UK100 & NASDAQ which have specific open close times and candles always form at 5 & 10 min local & trading time.
Most of the versions I deleted or wrote over, attached is the only version I have which obviously doesnt work too well.
It never developed because it didnt work, I have several other conditions to add but I would have just been adding to the problem.Bostock58: I probably didnt think enough about the difference between Indicators and EA before I started
I did consider that using the time to define a new candle might not be very accurate but I am only using the UK100 & NASDAQ which have specific open close times and candles always form at 5 & 10 min local & trading time.
Most of the versions I deleted or wrote over, attached is the only version I have which obviously doesnt work too well.
It never developed because it didnt work, I have several other conditions to add but I would have just been adding to the problem.
Unfortunately you are completely of the mark in regards to your knowledge on how Indicator code is done. You will need to do some research, so that you can learn to understand the logic behind an indicator.
For now, put aside the logic you want to achieve and concentrate first at looking at various examples of indicators so you see how they work.
Start with the examples that are installed with MetaTrader, in the "MQL5\Indicators\Examples" folder, and look at their code. Here are some suggestions to start with:
Just realised that you are coding for MQL4, so please ignore the above examples and look at the MQL4 examples instead:
Well that has pretty much puts me back to the starting point and hasnt helped at all "put aside the logic" thats the only bit I needed help with.
Words fail me at the moment, I am just off to punch a hole through the wall.
How do you expect to develop your coding skills if you are not willing to put in the effort to do your research?
At the moment you still don't understand how an indicator is supposed to be coded, so you need to do something about it if you want to learn:
Do you really think that proficient coders become like that in just a few days or weeks? No, it takes months to become below-average at it, and years to become good at it, and decades to become a master at it.
So, how do you expect to become proficient in such a short amount of time or with just a few posts of guidance. Sorry, but that is not how it works!
You need to put in the effort and do the research, or hire someone to mentor you step-by-step! That is, if you really are set at becoming a MQL coder!
As per Anthony's suggestion.