US Tech 100 – 10 min – Below Bollinger Down long strategy
Forums › ProRealTime English forum › ProOrder support › US Tech 100 – 10 min – Below Bollinger Down long strategy
- This topic has 15 replies, 4 voices, and was last updated 3 years ago by Darko2007.
-
-
04/08/2021 at 1:36 PM #166317
The following code looks for a close position 6 points or more below the low Bollinger line, as a secondary check it also then assesses if the current close is lower than the current day open position (US time) alongside making sure the averages 50 and 20 are positioned right for a long trade.
The stops and take profits are sized to the US Tech 100 (DFB) so I would advise caution if you decide to use this on other instruments. I’ve also experimented with different time periods and it’s safe to say that it runs best on 10 minute intervals.
As you can see from the image, the back testing has produced some very positive results and the strategy seems to be getting stronger over time as the index grows.
Naturally past results are not indictive of future results, so please use responsibly at your own risk.
123456789101112131415161718192021222324252627282930//-------------------------------------------------------------------------// Main code : Bol Bands v6//-------------------------------------------------------------------------// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivatedindicator1 = BollingerDown[20](close)c1 = (close < (indicator1)-6) //6c3 = average[50](close) > average[20](close)c5 = (close < dopen(0))IF c1 and c3 and c5 THENBUY 1 PERPOINT AT MARKETENDIF// Conditions to exit long positionsindicator2 = BollingerUp[20](close)c2 = (close > (indicator2)+17) //16indicator2 = AccumDistr(close)c4 = (indicator2 < indicator2[435]) //435IF c2 and c4 THENSELL AT MARKETENDIFset stop ptrailing 475set target profit 30004/08/2021 at 1:52 PM #166538Looks interesting, thanks for sharing.
First thought: stoploss at 475 points? Wow, that’s a long long way to carry a bad trade – more than 3% … hmmm 🤔
04/08/2021 at 3:36 PM #166559Sorry, I need to get my eyes checked – there’s no stoploss at all, just the exit code.
That’s fine, but “set stop ptrailing 475″ doesn’t make sense. The trail can’t start at 475 if the target is 300
04/08/2021 at 8:25 PM #166574The code stops a bad trade, the points trailing stop loss is 475 points below the opening position. This is just an additional failsafe should the market fall dramatically. At which point it would more than have likely trailed above the opening position.
04/08/2021 at 8:32 PM #16657604/08/2021 at 8:48 PM #166577Yeah, got it, it’s not a type of stop I ever use and I confused it for something else. When I think of trailing stop, I want something that locks in profit once it’s moved in my favour, rather than just reducing the max loss. But it seems to work, so go for it – best of luck.
04/08/2021 at 8:58 PM #16657904/08/2021 at 9:06 PM #16658004/09/2021 at 9:07 AM #166599Hi
Thanks very much for posting, looks interesting. As this is a long only strategy, trading an index that has been in a long up trend, please could anyone with a Premium account run it on 1M bars to see how it fairs during a down turn?
I like how it performs through the volatile months (Oct – US Election, Feb – Bond rally, Mar – Hedge Fund blow). The DD in Oct was relative, but not significant in terms of performance.
1 user thanked author for this post.
04/09/2021 at 9:54 AM #166601Hi Thanks,
I’ve provided a more detailed view by month covering the events you mention above, naturally it’s not impervious to these events but it handles them well and there’s always a nice kickback to be had following a bad month.
1 user thanked author for this post.
04/09/2021 at 10:04 AM #16660404/09/2021 at 10:06 AM #16660604/09/2021 at 10:11 AM #16660804/09/2021 at 10:31 AM #16661104/09/2021 at 4:23 PM #166639The above version with 1 million bars was mistakenly done with Dow J. ….. so if it performs well with another market it is a great start to trading system.
this is with US Tech 100.Hello
-
AuthorPosts
Find exclusive trading pro-tools on