Further backtest of Bollinger strategy
Forums › ProRealTime English forum › ProOrder support › Further backtest of Bollinger strategy
- This topic has 6 replies, 4 voices, and was last updated 7 years ago by Ronny.
-
-
03/19/2017 at 1:24 PM #29055
Could someone with a bit more history try out this strategy, too see if it’s worth delevoping further?
GBPUSD, 30-min, GMT+1, have used spread 2 in my testing.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the "FLATBEFORE" time.DEFPARAM FLATBEFORE = 080000// Cancel all pending orders and close all positions at the "FLATAFTER" timeDEFPARAM FLATAFTER = 201500// Prevents the system from placing new orders on specified days of the weekdaysForbiddenEntry = OpenDayOfWeek = 5 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0// Conditions to enter long positionsindicator1 = BollingerDown[20](close)c1 = (close CROSSES OVER indicator1)indicator2 = Stochastic[4,2](close)c2 = (indicator2 < 25)indicator3 = WilderAverage[40](close)c3 = (close > indicator3)IF (c1 AND c2 AND c3) AND not daysForbiddenEntry THENBUY 1 CONTRACT AT MARKETENDIF// Conditions to exit long positionsindicator4 = Average[5](close)c4 = (close CROSSES UNDER indicator4)indicator5 = WilderAverage[40](close)c5 = (close CROSSES UNDER indicator5)IF c4 OR c5 THENSELL AT MARKETENDIF// Conditions to enter short positionsindicator6 = BollingerUp[20](close)c6 = (close CROSSES UNDER indicator6)indicator7 = WilderAverage[40](close)c7 = (close < indicator7)indicator8 = Stochastic[4,2](close)c8 = (indicator8 > 75)IF (c6 AND c7 AND c8) AND not daysForbiddenEntry THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Conditions to exit short positionsindicator9 = Average[5](close)c9 = (close CROSSES OVER indicator9)indicator10 = WilderAverage[40](close)c10 = (close CROSSES OVER indicator10)IF c9 OR c10 THENEXITSHORT AT MARKETENDIF03/19/2017 at 1:44 PM #2905703/19/2017 at 1:57 PM #29061Hi,
Thanks for posting your strategy. Attached are results for last 10yrs. Overall it’s not a bad performance with a net 555 pips gain and 5% draw. However 2012-2014 are very negative years so those need to be addressed. Also, shorts make no money over this period, all the gains are due to long positions. Worth developing further I think.
03/19/2017 at 2:27 PM #29064Thank you!
Thinking… Looking at the equity curve, it looks like it’s not that many trades, and further filtering may rule out too many. More optimalization would not be a smart thing to do either, I feel a bit puzzled about where to go next…. Maybe exchange the Stoch with something else. Suggestions? 🙂
03/19/2017 at 2:36 PM #2906603/20/2017 at 10:40 AM #29139Hi,
One observation which may help. Restricting the times of the open positions to during the week days and European daytime hours keeps the risk down but doesn’t always allow the strategy time to develop. I started out by developing intraday equity indices strategies that always closed by end of session but my forex strategies I run overnight and through the weekends, the risk is increased of course and there is some minor funding cost incurred but overall my returns have been better. Removing the time restrictions on your strategy also appears to improve returns (I only tested back a couple of years).
03/20/2017 at 2:26 PM #29183 -
AuthorPosts
Find exclusive trading pro-tools on