Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 626
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
Write your own ticks and put them in the strategy tester.
but anything more user-friendly?
but something more user-friendly?
can't you write what you won't do yourself? thenhttps://www.mql5.com/ru/job
here is the articlehttps://www.mql5.com/ru/articles/4566
you read it, make quotations according to your own laws of distribution
if MT4 needs its own charts and ticks, then read the article, export quotes from MT5 and import them into MT4
it cannot be simpler
If you can program for MT4, open the PeriodConverter script from MT4 in MetaEditor, the code there is clear and quite compact in size, it will not take you much time to figure it out, then create your own chart and test it
ZS: I remembered I posted on the forum a script to create charts with Wehrstrass function.
https://www.mql5.com/ru/forum/86386/page988#comment_7843056
Hello. The function Returns a flag for the existence of a position or order near the market (function found on the forum). For the test code, it should open a position if around 200 pips above and below the current price, there are no positions. Why does it open a position on every tick at almost the same price?
I have a problem with the migration of EAs, the buttons have become inactive, I can't migrate, has anyone experienced this?
Hello. The function Returns a flag for the existence of a position or order near the market (function found on the forum). For the test code, it should open a position if around 200 pips above and below the current price, there are no positions. Why does it open a position on every tick at almost the same price?
Check the number of parameters when calling
and its description
Check the number of parameters when calling
and its description
Can you tell me how to calculate the collateral for a transaction?
Tried two approaches
(0.1 * Ask*MarketInfo(Symbol(),MODE_LOTSIZE))/AccountInfoInteger(ACCOUNT_LEVERAGE)
And this one
FreeMarginCheck=AccountFreeMarginCheck(Symbol(),OP_BUY,0.1);
double val=AccountFreeMargin()-FreeMarginCheck;
The first one gives strange results on EURJPY if my deposit currency is USD. Do I need to add something to the formula?
The second one works also occasionally, sometimes with correct values, sometimes with some nonsense (it depends on the deposit)