Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1394
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
is it possible to get data from mt5 for example to a website or some system for analysis https://www.mql5.com/ru/docs/integration/python_metatrader5
is there a similar api to get data from mt4 without using EA?
If you have one, I'd like to see the code of how to do it.
Catch
Catch
Hi! I tried the code - it won't close for some reason
Hi! I tried the code - it won't close for some reason
Hi! I tried the code - it won't close for some reason.
I've done it like this. It's working!
Total profit, not separate....
Well, there you go! Then I apologise!
That's how I messed up.
Well, there you go! Then I apologise!
That's how I messed up.
Here it is, ready for battle!!!
Here it is, ready for battle!!!
Why cheat?
Put the right symbol in here
Open_Pr(Symbol())
and everything will be fine.
P.S. Sasha, you didn't count swap and commission.
MakarFX:
Why cheat?
Put the right symbol here.
and everything will be fine.
P.S. Sasha, you didn't take into account swap and commission
i got used to such settings - and about commission and swaps - it's all nonsense, i care about profit - i set 100, let it close for me at 90 and that's good too - but sometimes it also closes at 110
i don't know what kind of action and how the broker closes it but the function works based on the set (amount) in the settings.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
for example i put 5 in the settings - it closed 5.20
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
or another example - I had specified in the settings that on all pairs where Expert Advisor is(they all have the same settings) for a total profit of 70 000 I closed everything - I ended up with 15 losses
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
I have a suspicion that not everyone understands what we are talking about. - As for the overall profit, it is one thing - but the profit on each pair is different. You have to put an Expert Advisor on every pair.
like this !!!
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
When the function works on the total profit, it will change the pattern on all open charts at once.
You can create your own pattern, give it a name - use it as an Expert Advisor with a new price or whatever you want.