However, you can see in the list of trades, (on the "Capture end test"), the IS last trade is closing only the 2020.05.19 in the OOS period with a standard "Exit signal" .
Furthermore, the first OOS trade start only after the end of the last IS trade. Instead it should start from the 17 or 18 of may 2020.
The consequence of closing the last trade outside of the IS period and inside of the OOS period is that there are error of statistics calculus as we are using the OOS period to finish the IS trade.
Furthermore, as we are using OOS period to finish the IS period, the OOS trade period start later after the last IS trade. (the OOS kpi is less accurate)
Statistics Contamination is very serious because it is giving Kpi errors, this is why I ask to have an exit "EndTest" at each end In Sample period or Out Of Sample period to close any open trade.
In Build 137 RC1-2 , we have the same behavior : the previous In sample period will contaminate the next In Sample Validation period as well :
The last trade of the last In Sample Period will close in the next In Sample Validation period.
This is making the In sample Validation statistics not reliable as well if the last trade of the last ISV period is closing in the next ISV period.
You are using the stop system and it is normal for a buyStop order to be placed in IS and the order to be converted to Market in OOS
IS and OOS are just statistical intervals, and at the end of IS, the orders are not going to be removed and wait for the signal again in OOS.
I see 3 options :
- We let the trade as it is even if it enter in OOS. This is terrible in my experience. Good strategies may look interesting and may be chosen instead of more robust one. I had bad OOS results in the past with this solution.
- We disregard the trade closing in OOS period. this could be a simpler solution
- We close the trade at the end of IS period. Like we do on Friday as an option
Thank you Bentra for your comment and your vote :)
Type changed from Bug to Feature
Status changed from In progress to New
Subject changed from Contamination OOS statistics from IS statistics to [Build 137 RC2] Contamination OOS statistics from IS statistics
The trade was closed in the next period ISV1
The In sample statistics are not reliable if the last trade is closing in the next period.
We need it as soon as possible
Description changed:
However, you can see in the list of trades, (on the "Capture end test"), the IS last trade is closing only the 2020.05.19 in the OOS period with a standard "Exit signal" .
Furthermore, the first OOS trade start only after the end of the last IS trade. Instead it should start from the 17 or 18 of may 2020.
The consequence of closing the last trade outside of the IS period and inside of the OOS period is that there are error of statistics calculus as we are using the OOS period to finish the IS trade.
Furthermore, as we are using OOS period to finish the IS period, the OOS trade period start later after the last IS trade. (the OOS kpi is less accurate)
Statistics Contamination is very serious because it is giving Kpi errors, this is why I ask to have an exit "EndTest" at each end In Sample period or Out Of Sample period to close any open trade.
In Build 137 RC1-2 , we have the same behavior : the previous In sample period will contaminate the next In Sample Validation period as well :
The last trade of the last In Sample Period will close in the next In Sample Validation period.
Description changed:
However, you can see in the list of trades, (on the "Capture end test"), the IS last trade is closing only the 2020.05.19 in the OOS period with a standard "Exit signal" .
Furthermore, the first OOS trade start only after the end of the last IS trade. Instead it should start from the 17 or 18 of may 2020.
The consequence of closing the last trade outside of the IS period and inside of the OOS period is that there are error of statistics calculus as we are using the OOS period to finish the IS trade.
Furthermore, as we are using OOS period to finish the IS period, the OOS trade period start later after the last IS trade. (the OOS kpi is less accurate)
Statistics Contamination is very serious because it is giving Kpi errors, this is why I ask to have an exit "EndTest" at each end In Sample period or Out Of Sample period to close any open trade.
In Build 137 RC1-2 , we have the same behavior : the previous In sample period will contaminate the next In Sample Validation period as well :
The last trade of the last In Sample Period will close in the next In Sample Validation period.
This is making the In sample Validation statistics not reliable if the last trade is closing in the next period.
Description changed:
However, you can see in the list of trades, (on the "Capture end test"), the IS last trade is closing only the 2020.05.19 in the OOS period with a standard "Exit signal" .
Furthermore, the first OOS trade start only after the end of the last IS trade. Instead it should start from the 17 or 18 of may 2020.
The consequence of closing the last trade outside of the IS period and inside of the OOS period is that there are error of statistics calculus as we are using the OOS period to finish the IS trade.
Furthermore, as we are using OOS period to finish the IS period, the OOS trade period start later after the last IS trade. (the OOS kpi is less accurate)
Statistics Contamination is very serious because it is giving Kpi errors, this is why I ask to have an exit "EndTest" at each end In Sample period or Out Of Sample period to close any open trade.
In Build 137 RC1-2 , we have the same behavior : the previous In sample period will contaminate the next In Sample Validation period as well :
The last trade of the last In Sample Period will close in the next In Sample Validation period.
This is making the In sample Validation statistics not reliable as well if the last trade of the last ISV period is closing in the next ISV period.
SQX 137 is almost ready, we are fine-tuning the last details.
Attachment image-0.png added
Attachment image-1.png added
1/ The Out of Sample period start on the 2015 12 29 (image 0)
And the last trade In Sample is closing on the 2016 1 22, at the end of the OOS period (image 1)
2/ Furthermore, as the last IS trade closed much later, we have very few OOS trades
3/ The Out Of Sample statistic are not reliable as the IS statistic will be the results of OOS period as well
Please see attached screen capture