strategy BarHunter DAX v1p
Forums › ProRealTime English forum › ProOrder support › strategy BarHunter DAX v1p
- This topic has 255 replies, 11 voices, and was last updated 2 years ago by  sfl. sfl.
- 
	
		
- 
		
			
				
01/16/2020 at 7:24 PM #11701301/16/2020 at 8:46 PM #117016Every year positive on the Nikkei! I’ve seen a lot worse tests. Can you post your changed settings so I can have a look? On the south african 40. I increased the spread to 20. As with the nikkei I want to take a different approach to handle that, but that’s for later. So it’s basically the file you got, activated trailing stop, stoploss 2, profittarget 2 break=20 & only one bar is analysed for long & short in range to 23 123456789once steps=0.1once minatrdist=4once atrtrailingperiod = 14 // atr parameteronce minstop = 10 // minimum distanceif barindex=tradeindex thentrailingstoplong = 8 // trailing stop atr distancetrailingstopshort = 8 // trailing stop atr distanceIt looks good without WF and it still looks good with WF. (often it breaks down completely) A lot of time the 3 bar is the one, with very few exceptions. Ofcourse could be better, but for 1 variable in range to 23 and with this simplicity its great base! edit;WF 1e bar 11 2e bar 3 3e bar 3 4e bar 1 all others; barnumber 3 So it’s pretty consistent 1 user thanked author for this post.01/16/2020 at 8:58 PM #11702001/16/2020 at 9:59 PM #117023I’ll take a look later to the last update of South Africa, the results looks amazing! 
 Here you have the .its of NIKKEI 1H, i’m not an expert in coding, not even remotely; so probably my attempts to diversify the strategy are futile, but I’m just trying to do something productive to stimulate development 😀1 user thanked author for this post.01/17/2020 at 10:27 AM #117043Any of you guys got attached Reject at 4:00 am this morning on the V1p version on the DAX? Or at any time, any version, any Market? What is the fix please? How to code it into the Strategy? Would 2 x different min distances be best … 1 x for Market Hours and 1 x for Out of Market Hours? Thank You 01/17/2020 at 11:43 AM #11704801/17/2020 at 11:52 AM #117050I changed below to 12 (from 10) to see if it makes any difference? For info: I set below temporarily to 100 (to test the boundaries) but the Long trade was still executed at 4:00 am on backtest. 1once minstop = 12 //10 // minimum distance01/17/2020 at 11:58 AM #117052i think the ddmax is too important.. Are you referring to Maximum Drawdown? Too much / large at around £1k (for lot size =1) over 100k bars over around 4 Trades? 01/17/2020 at 12:35 PM #11706301/17/2020 at 12:43 PM #11706801/17/2020 at 12:45 PM #11707001/17/2020 at 2:47 PM #117083@GraHal Your are quick in testing! It’s a good find but not so good in terms of results at first glance. As I understand it, the error occurs when the stop is getting placed but is too near to the current high/low. you can try this. If it still gives an error, increase the minstopdistance slightly. 12345678910111213141516171819202122if longtrading or (longtrading and shorttrading) thenminstopdistance=10 //minimum stop distance between stop and current priceif intradaybarindex=barnumberlong thenbreakvaluelong=high //experiment!if high-close<minstopdistance thenbreakvaluelong=close+minstopdistanceelsebreakvaluelong=breakvaluelongendifendifendifif shorttrading or (longtrading and shorttrading) thenif intradaybarindex=barnumbershort thenbreakvalueshort=low //experiment!if close-low<minstopdistance thenbreakvalueshort=close-minstopdistanceelsebreakvalueshort=breakvalueshortendifendifendif01/17/2020 at 3:30 PM #117088Hello – I’m just trying to test this but I keep getting error ‘backtest exceeds limit of repetitions for Walk Forward optimization’ – but I haven’t got WF selected?? Thanks 01/17/2020 at 3:37 PM #117089@grimweasel47 Hi, Adjust the repetitions to 3, even if you don’t use them. That should fixes it. 01/17/2020 at 6:59 PM #117106As I understand it, the error occurs when the stop is getting placed but is too near to the current high/low. Yes above is the reason for the Reject error. I have added the code-fix you kindly and quickly provided and I will run a version without the fix and with the fix to validate the settings etc. Many Thanks 
- 
		AuthorPosts
			Find exclusive trading pro-tools on 





 
		 
		 
		