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
Some questions:
1. The trade result above, is it a good result? (considering the trade factor)
2. The code snippet immediately after the order opening conditions (see below)
I guess that the code for error reporting (to get last error) with respect to the error handling and reporting that was pointed out by "RaptorUK" is it?
>1. The trade result above, is it a good result? (considering the trade factor)
It is a pretty good result but on too few trades. It does indeed fail miserably in 2011. Basically I ran the Strategy tester and picked the best result. The result is that it fits well to what happened (also known as curve fit) but doesn't fit future movements and is therefore pretty worthless. I have no idea what you mean by a "trade factor".
The error reporting is very simple. If the OrderSend fails it prints the error message as to what happened but doesn't do anything about it. Hence it is error reporting rather than error handling.