Yes, almost any TC has a beautiful picture in one or two clicks. The more beautiful it is, the more it compromises itself. So it's good for the bottom line.
3. I choose the interval with the highest profit and trade only in it, but trades are not opened, probably the library is trying to protect the user from playing with martin :)
if (!IsTradingTime(15, 45, 18, 15)) return; // 15:45 - 18:15
4. I choose the interval with average profit only, the Expert Advisor passes 2017 without a loss.
5. I switch to OOS, i.e. 2018, the interval is optimised for 2017, the Expert Advisor also passes through 2017 without crashing, although the profile drops significantly
1. I run with default parameters, on the first pass I get OnTester Critical Error, line 53, as in the first comment
Closer to November I will see the reason.
3. I choose the interval with the highest profit and trade only in it, but trades are not opened, probably the library is trying to protect the user from playing with martin :)
This implementation of throwing out violates the logic of the original TS. This was mentioned by
If the EA is not MT4-style, the library will use 90% of its capabilities. And intervals will be obtained. However, it will not be possible to see their application in the Tester at once. The programmer will have to invent something big for this purpose. That's why only MT4-style can reveal 100% of biblical possibilities.
So, either MT4-style or by yourself. Without virtual trading environment this task cannot be solved in general case.
In MT5-Hedge, limit orders are sliding, this creates tester grails, which can't help but be annoying.
Switching to MT5-Exchange-Netting solves this problem. But there TP will still be sliding. So they have to be replaced by limit trades. Which may well generate in/out trades that MT4Orders don't see in the current implementation...
So we had to learn how to calculate and apply BestInterval on MT5-Exchange-Netting, where the grail is much more difficult to create. It turned out that this task is solvable, but only within MT5, because MT5-tester, unlike MT4-tester, allows working with a timer. And there is no way to work with limit trades without a timer. In general, it is difficult to explain all the pitfalls to an ordinary person. In the end, it turned out like this
BestInterval Action(true - single pass & MT4-style is required) = true
Calculation time activated intervals is2018.11.0815:09:56 - Test (common folder) 00:31:30 ago.
Amount of Delete Intervals = 2 (2018.07.01 - 2018.11.08)
02:50:42 - 10:18:47 : Profit = 4854.00 (19.78%), Total = 280 (75.36%), PF = 1.86, Mean = 17.34, DD = 683.00, RF = 7.1111:17:57 - 23:53:05 : Profit = 19689.00 (80.22%), Total = 1130 (73.36%), PF = 1.90, Mean = 17.42, DD = 1204.00, RF = 16.35
SUMMARY: 00:00:00 - 23:59:59 : Profit = 24543.00 (100.00%), Total = 1410 (73.76%), PF = 1.89, Mean = 17.41
final balance - InitBalance (10000.00) + Profit (24543.00) with BestInterval.
OnTester - Virtual InitBalance (10000.00) + Profit (18216.00) without BestInterval. Profit is calculated with TickValue=1 and w/o Commission+Swap.
final balance 34543.00 USD
OnTester result 28216
Test passed in0:00:00.749 (including ticks preprocessing 0:00:00.078).
In the logs I emphasised (in yellow) that backtest on four months in "real ticks" mode with > 1000 trades and many thousands of OrderSend + calculation (and application) of the best interval takes less than a second.
For Market fans. You can take absolutely any EA (MT4-style) and make it "beautiful" in a few seconds, just throw out more bad intervals. The library will do everything automatically.
Before
After (the task is to throw out 20 intervals - the more the prettier).
I don't use more than two intervals myself. If you are writing for your own trading and not for the Market, take low values.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Yes, almost any TC has a beautiful picture in one or two clicks. The more beautiful it is, the more it compromises itself. So it's good for the bottom line.
But in reality, almost no one will do anything.
Yeah, the best thing to do is fuck everyone.
1. I run with default parameters, on the first pass I get OnTester Critical Error, line 53, as in the first comment
2. on the second pass optimisation works fine
3. I choose the interval with the highest profit and trade only in it, but trades are not opened, probably the library is trying to protect the user from playing with martin :)
4. I choose the interval with average profit only, the Expert Advisor passes 2017 without a loss.
5. I switch to OOS, i.e. 2018, the interval is optimised for 2017, the Expert Advisor also passes through 2017 without crashing, although the profile drops significantly
1. I run with default parameters, on the first pass I get OnTester Critical Error, line 53, as in the first comment
Closer to November I will see the reason.
3. I choose the interval with the highest profit and trade only in it, but trades are not opened, probably the library is trying to protect the user from playing with martin :)
This implementation of throwing out violates the logic of the original TS. This was mentioned by
Forum on trading, automated trading systems and testing trading strategies.
Libraries: BestInterval
fxsaber, 2018.10.18 10:28 AM
If the EA is not MT4-style, the library will use 90% of its capabilities. And intervals will be obtained. However, it will not be possible to see their application in the Tester at once. The programmer will have to invent something big for this purpose. That's why only MT4-style can reveal 100% of biblical possibilities.
Most likely the library will be finalised. Current status is beta.
SZY
If such messages appear in the Tester, it is a bug of build 1930.
1. I run with default parameters, on the first pass I get OnTester Critical Error, line 53, as in the first comment
It doesn't play.
Checked all current functionality of bibla in MT4-tester. It works.
I made a cosmetic touch-up to make the output in the MT4-tester log correct. If you are interested in MT4, it looks like this
Calculated
Applied
The highlighted does not match. I haven't analysed the reasons.
ZY The second variant was calculated 25% faster.
In MT5-Hedge, limit orders are sliding, this creates tester grails, which can't help but be annoying.
Switching to MT5-Exchange-Netting solves this problem. But there TP will still be sliding. So they have to be replaced by limit trades. Which may well generate in/out trades that MT4Orders don't see in the current implementation...
So we had to learn how to calculate and apply BestInterval on MT5-Exchange-Netting, where the grail is much more difficult to create. It turned out that this task is solvable, but only within MT5, because MT5-tester, unlike MT4-tester, allows working with a timer. And there is no way to work with limit trades without a timer. In general, it is difficult to explain all the pitfalls to an ordinary person. In the end, it turned out like this
Calculated
Applied
In the logs I emphasised (in yellow) that backtest on four months in "real ticks" mode with > 1000 trades and many thousands of OrderSend + calculation (and application) of the best interval takes less than a second.
For Market fans. You can take absolutely any EA (MT4-style) and make it "beautiful" in a few seconds, just throw out more bad intervals. The library will do everything automatically.
Before
After (the task is to throw out 20 intervals - the more the prettier).
I don't use more than two intervals myself. If you are writing for your own trading and not for the Market, take low values.