timebased series Dax
Forums › ProRealTime English forum › ProOrder support › timebased series Dax
- This topic has 5 replies, 4 voices, and was last updated 6 years ago by
JohnScher.
-
-
10/25/2019 at 4:58 AM #111141
Based on a different behavior of buyers and sellers on monday morning compared to friday evening as a basic approach in a “timebased series”, there is a long positioning on tuesday evening in the Dax.
Below you will find the code for a simple trading system that follows this approach. Similarly, this can already be found in the library as an advertisement for the vtad.
Here, however, it was stated that “buy tuesday evening, sell thursday morning” can be a positive approach, especially if it is underlaid with only 2 simple filters, 1x an EMA filter, 1x a CCI filter.
The result seems impressive.
I wanted to ask if someone could check the code for correctness and if so if someone could check the strategy for a longer distance than the offered 100.000 units.
buy tuesday evening, sell thursday morning12345678910111213141516171819202122232425262728//-------------------------------------------------------------------------// Main code : D2 18 1H Long H33// created and coded by JohnScher//-------------------------------------------------------------------------defparam cumulateorders = trueTradingDay = opendayofweek = 2TradingTime = time = 180000c1 = close < ExponentialAverage [30] (close)c2 = cci [24] (close) > -140Tradebuy = TradingDay and TradingTime and c1 and c2IF Tradebuy THENbuy at marketENDIFIF onmarket and barindex-tradeindex = 33 then // = D4 040000 notice the asian sessionsell at marketEndifSet Stop %Loss 5Set Target %Profit 2.510/25/2019 at 9:59 AM #111161Thanks John for sharing the idea.
Here is the backtest on 200.000 units with 2 points spread. The robustness test on the 100k out of sample period is a proof of over fitting. You might have made too much optimization of your indicators settings?
1 user thanked author for this post.
10/25/2019 at 12:22 PM #111184Hope you din’t mind John, I couldn’t help wondering what results would look if not Sell after 33 hours (top curve). Food for thought maybe??
What does the version below look like on 200k bars anybody please?
12345678910111213141516171819202122232425262728293031//https://www.prorealcode.com/topic/timebased-series-dax///-------------------------------------------------------------------------// Main code : D2 18 1H Long H33// created and coded by JohnScher//-------------------------------------------------------------------------defparam cumulateorders = FalseTradingDay = opendayofweek = 2TradingTime = time = 170000//c1 = close < ExponentialAverage [30] (close)c2 = cci [24] (close) > -150 //-140Tradebuy = c1 and c2 and TradingDay and TradingTimeIF Tradebuy THENbuy at marketSET STOP PLOSS 350SET TARGET PPROFIT 425ENDIF//IF onmarket and barindex-tradeindex = 33 then // = D4 040000 notice the asian session//sell at market//Endif//Set Stop %Loss 5//Set Target %Profit 2.51 user thanked author for this post.
10/26/2019 at 6:59 AM #111247Here’s with 200,000,
A drawdown from a heart attack …..1 user thanked author for this post.
10/26/2019 at 9:11 AM #11125510/27/2019 at 10:48 AM #111320Hello and a big thanks!
The topic that concerns me are the time-based trades due to the different behavior of the investors. If I determine this behavior I try to improve the result with simple filters. Overoptimization is to be avoided.
Unfortunately the mentioned 200.000 K are missing to check my theory.
So once again a big thank you to you. -
AuthorPosts
Find exclusive trading pro-tools on