Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 577

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
Greetings all! I'm having a problem creating my first indicator. I have only ever created Expert Advisors before. I have never learned how to use textbook, someone sent me a simple Expert Advisor and I started poking around, and then I got hooked. This was 5-7 years ago. Now I was eager to create an indicator. Again, I went to the tutorial and documentation. I'm so dumb there, it's like it's not in my language.
The problem is to create an indicator that will show the maximum number of bullish and bearish candles. Tell me at least where to start. Or give me some indicator similar to this one.
https://www.mql5.com/ru/code/19416
https://www.mql5.com/ru/code/19418
https://www.mql5.com/ru/code/19416
https://www.mql5.com/ru/code/19418
OHHHHHHHHH! Thank you!!!
can't find a clean (non-brokered) MT4, please give me a link
I can't find clean (not brokerage) MT4, please give me the link
Forum on trading, automated trading systems & strategy testing
New version of MetaTrader 4 build 1090
Alexey Viktorov, 2017.07.17 08:51
Send him two files from your mt4
1. terminal.exe
2. metaeditor.exe
Further actions
1. Create a directory at the desired location on the desired drive.
2. Put these 2 files there.
3. Create a shortcut to terminal.exe with the /portable switch if desired.
4. Run the terminal using the created shortcut and in the box. All necessary files and folders are created and all EAs, indicators and scripts are loaded.
5. Login to the account or register a new demo account.
ALL...
Second option.
Thank you.
If rounding down, then you have to do +1 for the calculation to be correct.
Thank you.
Aim for no tick, alert. No alert, what is wrong?
Thank you.
Thank you.
No tick, no alert. No alert, what's wrong?
What's the point of all this? What's the purpose of the timer running OnTick(), which is already running with every new tick? Why would it needlessly update the data all the time? They are updated with every new tick. And their forced update is required for long calculations - then the ticks can be skipped. And data should be updated only just before execution of operations, where they are needed, and not unthinkingly in timer.
What's all this for? What's the purpose of the timer triggering OnTick(), which is already triggered with every new tick?
So without a tick I need an alert two seconds before the bar closes.
https://www.mql5.com/ru/forum/213937#comment_5633888So I need an alert two seconds before the bar closes without a tick.
https://www.mql5.com/ru/forum/213937#comment_5633888So? Why would I want to run OnTick() in a timer? And why should I do a data update there?
Why should you update the data there?
Didn't come up with it myself"Just make sure you update the data in OnTimer() to make your code work. "
How is it necessary?