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 1 year ago by sfl.
-
-
02/14/2020 at 6:14 PM #119641
bertrandpinoy – Only English in the English speaking forums please.
02/17/2020 at 8:42 AM #11975802/17/2020 at 10:26 AM #119763What is this setting? Stop loss? Asking since it doesn’t change backtest results…
Best if you post the snippet where you are making the change so others can check it out.
It is possible that when you / we get rejected we are under the conditions I highlighted in my post below. I was manual trading, but it could equally have been an Auto-Trade.I couldn’t change my stops!
02/17/2020 at 10:57 AM #11976602/18/2020 at 10:16 AM #11981902/18/2020 at 10:33 AM #119824Stopped at 120 as well. Trying this now
12345678910once limitSLbroker=0if time >035900 and time<053000 and CurrentDayOfWeek>=0 thenlimitSLbroker=272elsif time>053000 and time<03590 and CurrentDayOfWeek>=0 thenlimitSLbroker =10elsif time>210000 and CurrentDayOfWeek>5 thenlimitSLbroker=271endifminddist = limitslbroker02/18/2020 at 10:33 AM #119825probably the easiest way to tackle this, is using market orders, 1 minute and mtf. It would clean up the code too!
or split the code.
one code setup for backtesting 1 hour timeframe
one code setup to trade live on 1 minute timeframe for which the trade has to be the same as on the one hour timeframe in the backtest.
1 user thanked author for this post.
02/18/2020 at 10:44 AM #119826Stopped at 120 as well. Trying this now
12345678910once limitSLbroker=0if time >035900 and time<053000 and CurrentDayOfWeek>=0 thenlimitSLbroker=272elsif time>053000 and time<03590 and CurrentDayOfWeek>=0 thenlimitSLbroker =10elsif time>210000 and CurrentDayOfWeek>5 thenlimitSLbroker=271endifminddist = limitslbrokerAs i said in the previous page, removing the 4am trade will make the stategy very less profitable; so it’s not a right solution.
probably the easiest way to tackle this, is using market orders, 1 minute and mtf. It would clean up the code too!
or split the code.
one code setup for backtesting 1 hour timeframe
one code setup to trade live on 1 minute timeframe for which the trade has to be the same as on the one hour timeframe in the backtest.
Is this possible? Never heard about something like this.. looks interesting!
02/18/2020 at 12:10 PM #11982902/18/2020 at 12:16 PM #11983102/18/2020 at 12:25 PM #119832yes, if running on 1 minute timeframe and with mode=0.
no entry rejections based on minimum stop distance.
Still there can be other reason why a trade is, or is not triggered compared to the backtest 1 hour timeframe.
1 user thanked author for this post.
02/18/2020 at 6:20 PM #119866few minor changes
the trailingstop on 1 minute timeframe can cause sometimes differences compared to the 1 hour backtest. Needs more testing.
the file, load on dax 1 hour timeframe
to run in demo, set mode to 0 and use 1 minute chart.
1 user thanked author for this post.
02/19/2020 at 2:24 PM #119951Ok Paul, so if i understood well, when running the strategy live or demo we need to use mode 0.
But the strategy with mode 0 needs to be applied on 1h or 1m chart?
And the results with mode 0 will be the same as the 1h backtested?02/19/2020 at 5:10 PM #11996602/19/2020 at 6:47 PM #119980And the results with mode 0 will be the same as the 1h backtested?
That’s the goal, but there will always be differences, since the entry price is slightly different between 1 hour and 1 minute.
As result, it could make the difference when a stoploss is triggered or not, same for a trailing stop or profit-level.
But if one has to choose between a flimsy entry because of the minimum stop distance or this, then this is the way to go I think.
So a.t.m. it’s best to test, as Gubben described it and compare it to the backtest 1 hour.
-
AuthorPosts
Find exclusive trading pro-tools on