Need help backtesting 200k
Forums › ProRealTime English forum › ProOrder support › Need help backtesting 200k
- This topic has 18 replies, 8 voices, and was last updated 5 years ago by
Mauro T. “Algorithm System”.
-
-
09/27/2020 at 1:30 PM #145532
Hi i tried to code a strategy i found on the internet. Not a very good code but it makes a nice equity curve. Probably because ustech100 has been on a long uptrend.
If someone can help test with 200k units that’ll be super helpful.
UStech 100 on 2 min tf
attached the itf
09/27/2020 at 2:14 PM #145547Done …. I hope it will help you.
1 user thanked author for this post.
09/27/2020 at 6:06 PM #145585I changed the tradetiemes from 2.30 p.m to 19 p.m. (german time) and the results seems to be more comfortable. But i can´t backtestet it with 200k.
09/27/2020 at 6:25 PM #145590Another point is, the trailing stop ist not profitable. Take a look at MFE, some trades are loosing 90% profit.
1 user thanked author for this post.
09/27/2020 at 8:19 PM #145599Thats a good idea actually thanks. saves on overnight costs too. Ill look into MFE.
09/28/2020 at 8:34 AM #14561409/28/2020 at 9:28 AM #145629Long only strategy in a straight upward market since May. Ok 😉
Right, that was my first thought. Nobody knew when the trend will change. It´s better to build a strategy which works on boths sides.
09/28/2020 at 10:08 AM #145639It´s better to build a strategy which works on boths sides.
Not on a strategy on an equity index in my humble opinion.
Trying to short those is a tough thing to do and this game is hard enough already without trying to fight the markets natural tendency. Better to be long only but ensure that your strategy is capable of being out of the market when those annoying recessions and major events cause a temporary correction…. and ensure that there are some of these in your back test. It is also essential to robustness test to ensure that you didn’t just get lucky and get out before a big drop just because of when your strategy was started. Starting the strategy a day later or even the day before a big drop might have mean’t that you bought in just before that large drop but your back test just got lucky because it started trading on the right day/time.
09/28/2020 at 10:28 AM #145644The problem with these strategies with low time frames is to have little data available …. indeed I would say very little.
Then you should always use the Walk Forward test as often suggested by Nicolas … use it as you see fit, but using it is important …. for example, I use it this way.
In this example I have 30 test starts that are taken at random and in a time frame of 7 months it always remains positive … to me this gives me an extra certainty of not having a trading system with a lucky start as he told you above Vonasi.
Hello09/28/2020 at 4:36 PM #145725Hi <span class=”bbp-author-name”>monochrome,</span>
Thank you very much for sharing, it’s been an interesting strategy to experiment with. I made the a series of minor changes, tested in a simple Walk-Forward and am just analyzing the results which I thought you’d be interested in seeing.
I have added exit methodology based on market structure (thank you <span class=”bbp-author-name”>nonetheless)</span>, optimized the Ichimoku settings slightly and added a Max Position function as changing CumulateOrders=False resulted in failiure early on. Will keep testing and keep you posted.
Best,
S
1 user thanked author for this post.
09/28/2020 at 5:33 PM #145736Meant to add, Sharpe ratio of 2.7 which is great, but Max DD still needs improving. Thanks once again for sharing.
09/28/2020 at 5:35 PM #145738interesting, but a 5% stoploss & pt is pretty big for 2m timeframe.
cumulate orders is true, but if using tradeprice(1) it is only based on the last trade. What happens if your long multiple positions and also to the first position? Does the breakeven work as intended for all?
one other point. Breakeven starts when having 60 points. If pointstokeep is set bigger then zero, you have a nice winning percentage, I like it too, but it’s cheating the statistics. If you set that at 0, it wouldn’t finish wf.
09/28/2020 at 8:05 PM #145765it always remains positive
Did you optimise the strategy over the full period of the 30 WF Tests before you did the WF?
09/28/2020 at 8:06 PM #145766I agree, 5% is too wide. I have tested it with 2.5% and the results are still very respectable. Your point regarding the multiple orders is something I had overlooked, well spotted.
Regarding the setting the Points To Keep to 0, the results aren’t too far off. This issue which VinzentVega pointed out, is that the trailing stop is still not profitable. Looking at the MFE, some trades are loosing 90% profit. Trying to see how best to resolve that one.
09/28/2020 at 8:36 PM #145775alright, looking forward to idea’s.
it’s interesting look at signals regardless of a position and if these are well placed.
1234567891011IF trigger= 1 and close>spanb and c1 and c2 and cc and timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry and countofposition < 10 THENBUY 1 CONTRACTS AT MARKETSET TARGET %PROFIT 5SET STOP %loss 5trigger = 0test=1elsetest=0endifgraph test -
AuthorPosts
Find exclusive trading pro-tools on