Errors, bugs, questions - page 2631
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
This is for exchange traded instruments. Use OrderCalcMargin
how do I go from margin to lot if the margin per lot is zero?
how do I go from margin to lot if the margin per lot is zero?
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
Vladislav Andruschenko, 2020.01.23 09:59
Error on account switching with different symbol names.: Bild 2300
Suppose:
There is an account with all symbols without a suffix ! e.g. EURUSD
Installed Expert Advisor, everything is OK:
everything works.
Then we change the account without such symbols, but with another one with the suffix !
No chart is loaded, Expert Advisor is not initialized. OK
I.e. EA does not show life. OK! There is no chart!
We change the chart to another one (drag and drop the symbol in the window) The chart is built, but EA does not call the OnInit() function
Even OnTick does not work after these actions. I.e. the EA is dead, although it shows it is there!
Checked it on MACD Sample - the same thing.
The same is in build 2308.
Although I was wondering whether it is important to fix it. what percentage of those who will change accounts with different pairs and do as i did. ?
But just in case, I'll throw it in my profile. Otherwise I'll forget.
What could be causing the speed of execution?
2020.01.31 10:15:15.179 Trades '19251730': modify #518263462 buy 4.00 GBPUSD -> sl: 1.31010, tp: 1.31560 done in 39589.527 ms
Given the fact that
2020.01.30 09:54:50.856 Network '19251730': authorized on MetaQuotes-Demo through Access Point EU 2 (ping: 66.87 ms)
2020.01.30 20:57:52.825 Trades use Hosting Service to speed up the execution - 0.78 ms via 'MQL5 Amsterdam 02 (MQL5.community)' instead of 71.27 ms
What could be causing the speed of execution?
For all that.
Communication problems, SL/TP close to the market, broker spoiling, and a million other reasons.
Communication problems, SL/TP close to the market, broker spoiling, and a million other reasons.
got it... calculate the margin per lot using this function, that will be the answer...
I haven't noticed any problems with communication, SL/TP is not close at all. The broker cannot pamper because it is MetaQuotes-Demo. Accordingly, the reasons may be much less than a million.
In MQ such errors can be emulated for testing purposes. Re-quotes (long enough) and disconnections are also common.
This is not worth paying attention to.
Didn't notice any problems with connectivity, SL/TP is not close at all. The broker cannot pamper itself due to the fact that it is MetaQuotes-Demo. Accordingly, the reasons may be much less than a million.
In MQ such errors can be emulated for testing purposes. Re-quotes (long enough) and disconnections are also common.
Do not pay attention to it.
Thank God it's not an MT5 error. I didn't pay any attention to it before. Now I just happened to see such figures.