Hang seng 200K bars
Forums › ProRealTime English forum › ProOrder support › Hang seng 200K bars
- This topic has 17 replies, 4 voices, and was last updated 7 years ago by
Vonasi.
-
-
04/05/2018 at 8:31 PM #67349
Guys, I have an apparently nice strategy on Hang seng that is purely driven by time bias.
Since I am not very confident with the instrument itself, I would be extremely grateful if someone could backtest it with 200K bars and see how the OOS behave.
The code is the following
123456789101112131415161718192021222324252627282930313233343536373839Defparam cumulateorders = falsegolong =1goshort = 1timegolong = 110000timeexitlong = 60000filterdaylong = dayofweek = 1 or dayofweek = 2 or dayofweek = 3filterpricelong = close < (Dhigh(1)+dlow(2))/2timegoshort = 30000timeexitshort = 80000filterdayshort = dayofweek = 2 or dayofweek = 4filterpriceshort = close> (Dhigh(1)+dlow(2))/2if goshort thenif time = timegoshort and filterpriceshort and filterdayshort thensellshort 1 contract at marketendifif time = timeexitshort thenexitshort at marketendifendifif golong thenif time= timegolong and filterdaylong and filterpricelong thenbuy 1 contract at marketendifif time = timeexitlong thensell at marketendifendifset target pprofit 600set stop ploss 700I attach the equity curve.
Thanks a lot in advance.
Francesco
1 user thanked author for this post.
04/05/2018 at 8:54 PM #6735204/05/2018 at 9:01 PM #67356Well ALE it looks like you have written a strategy that is a very good advert for getting PRT Premium with 200K bars!
Time based strategies are not worth pursuing in my experience but I have to admit that you’d have been very happy to have traded this one over the last 100k bars. The equity curve is beautiful!
1 user thanked author for this post.
04/05/2018 at 9:38 PM #67358Ok thank you. How about this one on eurusd?
123456789101112131415161718192021222324252627282930313233343536Defparam cumulateorders = falsegolong =1goshort = 1timegolong = 140000timeexitlong = 70000filterdaylong = dayofweek = 1 or dayofweek = 2 or dayofweek = 3filterpricelong = close < Dhigh(1)//(Dhigh(1)+dlow(2))/2timegoshort = 70000timeexitshort = 140000filterdayshort = dayofweek <>0filterpriceshort = 1//close>Dlow(1)if goshort thenif time = timegoshort and filterpriceshort and filterdayshort thensellshort 1 contract at marketendifif time = timeexitshort thenexitshort at marketendifendifif golong thenif time= timegolong and filterdaylong and filterpricelong thenbuy 1 contract at marketendifif time = timeexitlong thensell at marketendifendif04/05/2018 at 10:00 PM #67364Well ALE
Oooops – sorry Francesco78. I shouldn’t reply after a couple of glasses of wine!
04/05/2018 at 10:10 PM #6736504/05/2018 at 10:18 PM #67367I can’t see a reason why you would need tick by tick on for that strategy so here is the result without tick by tick. First image is with no spread and second is with spread of just 1 (I had to change the start capital to 100k to get through the drawdown).
The interesting thing is that around 2005 it suddenly becomes a winning strategy. Around 2004 automated trading and HFT started to come online so that may be a link to the sudden improvement in performance?
04/05/2018 at 10:30 PM #67372Your strategy if only used since beginning of 2005. Walk Forward 70/50 x 5.
Personally I think that the drawdown is a bit big for the gain/loss ratio but at least the right side of the equity curve is much higher than the left!
04/06/2018 at 6:50 AM #67382I shouldn’t reply after a couple of glasses of wine!
What is the alcohol level allowed to drive a boat? 😆
04/06/2018 at 7:07 AM #67383What is the alcohol level allowed to drive a boat?
We don’t drive – we sail!
The level is unlimited – it is called the freedom of the sea – the only restriction is that you have to wait until the sun is under the yardarm. Most sailors have height adjustable yardarms to deal with this issue. Anyway at the moment I am house sitting for friends in the hills overlooking Kalamata bay so there is definitely no restrictions on intake!
04/06/2018 at 1:41 PM #67444I can’t see a reason why you would need tick by tick on for that strategy so here is the result without tick by tick. First image is with no spread and second is with spread of just 1 (I had to change the start capital to 100k to get through the drawdown). The interesting thing is that around 2005 it suddenly becomes a winning strategy. Around 2004 automated trading and HFT started to come online so that may be a link to the sudden improv
without tick to tick the results are much worst? That is puzzling. I guess the more realistic one are the 1 with tick to tick.
04/06/2018 at 2:34 PM #67448without tick to tick the results are much worst? That is puzzling
That is very puzzling as you only trade at the close of a candle/open of the next candle so tick by tick should make no difference at all.
04/06/2018 at 3:53 PM #6745904/06/2018 at 4:37 PM #67463It just occurred to me that I may be on a different time zone to you so my tests may not be the same as yours. I am trading on UTC+1 British Summertime.
Yep I am in UTC + 2 any way this strategy perform quite well, 10 year OOS. Should be taken in consideration, what do you think?
04/07/2018 at 7:14 AM #67478what do you think?
My main concern is that I don’t understand why it should work. You are basically shorting the EURUSD every day during the European session and going long during the US and Asian sessions on pull backs but only on Monday, Tuesday and Wednesday. I cannot think why that should always work. Also you have to factor in that you are holding overnight for up to three days a week so there will be overnight fees to cut into the already quite small gain/loss ratio.
I have not tested it on your time zone yet but will try to later today as I have rather a lot on this morning.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on