Profitable strategy that work on any market
Forums › ProRealTime English forum › General trading discussions › Profitable strategy that work on any market
- This topic has 73 replies, 2 voices, and was last updated 1 year ago by LucasBest.
-
-
08/02/2017 at 5:00 PM #4234308/02/2017 at 9:23 PM #42371
@Henrik and @Nicolas I have spent some time ‘optimizing’ Entry and Exit criteria, possibly to the extent where it is ‘over’ optimized (too many OR’s). I will over the comming days refine the criteria adding and removing them as I test between different markets trying to find what tend to work more universally. For now the attached is the latest version, also attached my latest results on EUR/USD. @Hendrik if you backtest on 200k bars just re-optimize the trading time filter using the backtest engine.
08/03/2017 at 10:01 AM #4238808/03/2017 at 10:08 AM #42390@Hendrik, thankyou for that I am glad to see it is performing well going back that far. Looking really positive!
I would say according to your optimization Start: 9 and End: 19 is the sweet spot here, good 10 hours of exposure and the highest win %.
The Exit time is not really too important here as it is simply meant to close the positions Friday night (just before the weekend).
08/03/2017 at 2:19 PM #42406I have developed a new ‘universal’ strategy developed on many of the same principles as the other one using a Keltner band to supplement the Bollinger band and trading mean reversion.
It is not meant to replace the previous strategy but rather to supplement it.
I have also not tested this strategy on as many markets as my other one however it performs relatively fair across markets as far as I could see so far. Attached is the .ITF file along with the results on Gold (attached screenshot compares the 2 strategies result on Gold). @Henrik if you want you can maybe test the strategy on 200k bars optimizing the timeframe accordingly (just Start Time and End Time)?
@Nicolas if you prefer we can add this strategy as a separate entry to the library?08/03/2017 at 2:58 PM #42411I think we could make multiple posts but with different approach, because it seems to evolve each day a bit more 🙂 People may also “fork” this code and upload them here. So I feel like we could wait for things to be a bit more ‘advanced’ or ‘completed’. In any case, thanks for the job done and for sharing! 😉 Please note that I’ll be on leave by tomorrow, not be able to be as present on forums/admin and moderations as usual.
08/03/2017 at 3:08 PM #4241408/03/2017 at 6:43 PM #4244008/03/2017 at 6:51 PM #4244208/04/2017 at 8:00 AM #4246308/06/2017 at 7:35 PM #42570I have modified my latest version to include heuristics to automatically optimize the period used to calculate the Bollinger and Keltner Bands. I have also opened a new topic (containing the heuristics algorithm used).
https://www.prorealcode.com/topic/machine-learning-in-proorder/
08/07/2017 at 8:35 AM #42629The sequence make no sense to me. I compared it with the mathematical sequences I could find, did some calculations in Excel and also visit a mathematical forum for more info. The only thing I could confirm is the number 42 from @juanj that seems to be the median of the sequence.
08/07/2017 at 9:34 AM #42636@Marcel thank you for your comment, I appreciate you looking into it. You are correct in that the sequence doesn’t make sense, however it does achieve its purpose. Maybe you can assist with a more logical algorithm? What I am trying to achieve is something like this;
Starting Variable (Median)
Starting Variable + (increment)
Starting Variable – (increment)
Starting Variable + (increment*2)
Starting Variable – (increment*2)
Starting Variable + (increment*3)
Starting Variable – (increment*3
Etc.
However in typing this I now think I know how to do it.
08/07/2017 at 10:15 AM #426401234567891011121314151617181920212223242526272829303132333435//Heuristics AlgorithmIncrement = 1once IncPos = 1 //Increment Positiononce Optimize = 0once Mode = 1 //Switches between + and - incrementsonce StratAvgB = 0once Periods = 42 //Starting eriod of variable to optimizeIf Optimize = 10 Then //'optimize = optimize + 1' set at position entry/exitWinLoss = 0StratAvgA = StratAvgBStratAvgB = 0For i = 1 to 10 DoIf positionperf(i) > 0 ThenWinLoss = WinLoss + 1EndIFStratAvgB = StratAvgB + StrategyProfit[i]NextStratAvgB = StratAvgB/10If (Winloss < 5 or StratAvgA > StratAvgB) and Mode = 1 ThenPeriods = Periods + (Increment*IncPos)ElsIf (Winloss < 5 or StratAvgA > StratAvgB) and Mode = 2 ThenPeriods = Periods - (Increment*IncPos)mode = 1If IncPos > 6 Then //Max Increment ValuePeriods = 42 //Starting Vaue is ResetIncPos = 1 //Increment Position is ResetElseIncPos = IncPos + 1EndIFEndIFmode = 2Optimize = 0EndIf08/07/2017 at 10:36 AM #42651@ Juani
I’m still working to the strategy based on Ichimoku and hosoda cycle. If you are interested we can develop togheter a specific strategy.
Thanks
Emanuele
-
AuthorPosts
Find exclusive trading pro-tools on