Generic Class Library - bugs, description, questions, usage and suggestions - page 16

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
Interesting. And here's a question. I didn't like the current implementation, so I tweaked it. It's crooked, of course. How do I get the original bible?
Here - from 1702.
Here - from 1702
Thank you! I'll take the question to the developers. Since I'm a bit of a straightener...
Example 2: Trading multiple Expert Advisors on a net account
Net positioning is a headache for those who trade more than one Expert Advisor on the same symbol at the same time. To deal with situations where both EAs are in a hedge, but must understand that the absence of a net position does not actually mean they are not in the market, generates a complex code. One solution is to calculate the contribution of each expert to the total position. To do this, we need to analyze the entire history and calculate the number of contracts attributable to each unique indicator. If the number is 0.0, the expert is out of the market, if it is negative, the expert holds a short position, if it is positive - a long position. In fact, it's very easy to do, if we use CHashMap, for that it's enough to decompose all trades by magic orders summing up their volume. I have sketched a very simplified code (prototype) below:
Attention! To simplify, the code only calculates the net volume for the current symbol. Also CHashMap in current implementation doesn't contain enumeration iterators, that's why I've improvised such iterators. The modified CHashMap is shown in the attachment.
Is the speed of the tester important for trading? If yes, then HashMap also affects trading, because it increases the speed of development and execution of the TS.
Tester, optimization and trading are different things.
One and the same idea is traded and optimized, but the implementation can differ dramatically, this is also undeniable.But a specific example of a task where it is necessary to use these efficient algorithms for data storage and extraction, at least for the optimizer, since for trading, someone can give ?
If I wanted to give a concrete example of a task, where it is necessary to use these efficient algorithms for data storage and retrieval, at least for the optimizer, if not for trading, can someone give me ?
Forum on trading, automated trading systems and strategy testing
Generic classes library - bugs, description, issues, usage features and suggestions
fxsaber, 2017.12.08 22:46
For a more realistic tester case (2000 trades and 1,000,000 single history accesses) the result looks like this
Almost 100ms savings per pass! If, say, we do Optimization for 10,000 full passes, the Hash variant will end up 15 minutes faster.
Example 2: Multiple Expert Advisors Trading on a Net Account
prev_deals = HistoryDealsTotal();
A good example! Indeed, it is convenient.
Forgot
Good example! Really handy.
Corrected.
There are bikes that are easier to build yourself than to figure out the nuances of using someone else's and depending on them.
Generic is not that kind of bike. You can't write it quickly and correctly. It's just a matter of completing it.
Great theoretical example! In practice, has anyone ever operated thousands of trades?
p.s. I'm not trying to prove that it's crap and nobody needs it. I'm trying to understand the value for real trading. I'm not a theorist at all, but a pure practitioner.
In practice, has anyone ever operated thousands of transactions?
On Forts every first.