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

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
SanAlex, yes, looked at the tester for this year's current one, all ok) The results are good, in the near future I will try to run it on a real account
What is the name of the Expert Advisor? Did you download it from kodobase? I need to see how the author has implemented it in the function
We are missing something - to add the condition to the ontik
What is the name of the Expert? Did you download it from kodobase? I need to see how the author has implemented it in the function
There is something missing - to add a condition to the ontik
Sasha, the timing work has not been included. Just added some features to plug in during development)
I'm going to redo it in my own way.
SanAlex, yes, looked at the tester for this year's current one, all ok) The results are good, in the near future I will try to run it on a real account
This one and time will work - I changed the function
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
The Time function in mt4 and in mt5 works
Don't you want to get rid of classes?
I just recently found out about them. I don't know, it's a mega handy thing. What do you suggest? Putting everything into functions? If that would solve the problem.
I have two global objects (bar, db_last) of one class Bar, first is initialized with parameters of each new bar (usual bar on chart), and second saves a bar corresponding to all conditions. As a matter of fact, in another local object of class Order all calculations are made from the parameters db_last to open an order. Parameters db_last and bar are used in many places, but only for reading, initialization and assignment occur in one place, in OnTick(), so unexpected changes in objects should not be.
I just recently found out about them. I don't know, it's a mega handy thing. What do you suggest? Putting everything into functions? If that would solve the problem.
I have two global objects (bar, db_last) of one class Bar, first is initialized with parameters of each new bar (usual bar on chart), and second saves a bar corresponding to all conditions. As a matter of fact, in another local object of class Order all calculations are made from the parameters db_last to open an order. Parameters db_last and bar are used in many places, but only for reading, initialization and assignment happen in one place, in OnTick (), so unexpected changes in objects should not occur.
I would try it - it does not cost money).
But there are errors, moreover, errors with simple normalization
Can you send me the file in a private message? I'll have a look at it.What is the name of the Expert? Did you download it from kodobase? I need to see how the author has implemented it in the function
I missed something - to add the condition to the ontik
SanAlex, I attached the downloaded version in this message - it has Puria + trailing stop + Breakeven level + watchdog trading. I would test trading by the clock, I just haven't got around to it yet)
The lack of history affects the indicator reading at the beginning of the test
MakarFX, I also thought of that, so it should work as it should
SanAlex, attached the version I downloaded in this post - it's Puria + trailing stop + breakeven level + clock trading. I would test trading by the clock, I just haven't got around to it yet).
Found this in kodobase https://www.mql5.com/ru/code/12654
- I missed your target, what did you want to change in it?
Found this in kodobase https://www.mql5.com/ru/code/12654
- I missed your target, what did you want to change in it?
What additions I wanted to make:
1. 1st open price - (5) above (75) and (85) + MACD bar opened above 0- 1 out of 4 confirmations;
2.The opening price of the 2nd candle - (5) over (75) and (85) + MACD bar opened above 0- 2 out of 4 confirmations is;
3. The opening price of the 3rd candle - (5) over (75) and (85) + MACD bar opened above 0- 3 out of 4 confirmations is;
4.Opening price of the 4th candle - (5) over (75) and (85) + MACD bar opened above 0- 4 out of 4 confirmations yes- Open buy trade on the same candle (4th).