Errors, bugs, questions - page 2123
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
To summarise the question. What is the point of CAccountInfo, COrderInfo, CSymbolInfo, CPositionInfo and CTerminalInfo?
Looked at their source code. What is the good of using them?
CDealInfo andCHistoryOrderInfo - these are also written with logical errors. What is the purpose of using them?
Well, we have CTrade. Everything is clear with it; it can be useful where and so on. But what about Info-classes?
Forum on trading, automated trading systems and testing trading strategies
Expert Advisors: TrailingTakeProfit
fxsaber, 2018.02.07 16:17
Imagine a simple optimization for 100,000 passes of 10,000,000 ticks. Then OnTick would be called one TRILLION times. Any extra action called a trillion times would require extra seconds/minutes/hours. Appreciate your time and the time of others.
Does anyone think about this when writing code?
I think...
I think...
Then it's better not to write like that
Then it's better not to write like that.
It is often difficult to understand what you mean. It requires sitting next to you and seeing everything you read, check, write.
There is a lack of context.
It is often difficult to understand what you mean. It requires sitting next to you and seeing everything you read, check, write.
There is not enough context.
Because DoubleToStr alone will be called three trillion times for nothing. Let's see how long it takes.
On my not-weak machine, it's 50 hours. I.e., an empty Expert Advisor with such a Comment (the Comment itself will not be called in the optimization mode, but the input parameters will be calculated) will add 50 hours to the waiting time. Who is thinking about this when writing code?
From remote.
Думаю, все сильно зависит от кодера. Испытываю неприятное ощущение от отсутствия каких-либо попыток что-либо написать не медленно.
Only honed the speed in my tester when I needed to quickly (hundreds of times faster than MT) optimise a complete overshoot. Took a few hours to Optimize in a weekend, instead of a month.
And in MT4Orders, when you wanted to finally put a reasonable point to MT5.
It's not like we're talking about combat execution, but in the Tester. The mere fact that the Cloud is available shows that speed is a bottleneck. In sum, Cloud users have spent a huge amount to pay for the incompetence of the coders.
Forum on trading, automated trading systems and strategy testing
Advisors: TimeEA
fxsaber, 2018.02.07 04:01
Not a single EA from MQ in KB (haven't looked at the standard delivery). Strange situation. MQ keep emphasising the good MT5 speeds, but don't seem to have measured them. Perhaps that's why they allow slow code to be posted for training purposes.
I would like to see a benchmark code from MQ. When there are no logical errors, no algorithmic acceleration is possible, the code is laid out, different order types are involved (not only market orders), asynchronous order sending and processing is shown, trading history and ticks are involved. At least for one symbol.