“double seven” by Conners and Alvarez
Forums › ProRealTime English forum › ProOrder support › “double seven” by Conners and Alvarez
- This topic has 6 replies, 3 voices, and was last updated 3 years ago by robertogozzi.
-
-
03/30/2021 at 2:00 PM #165752
Double Seven
A system by Larry Connors and Cesar AlvarezThe “Double Seven” strategy was described in 2008 in the book “Short Term Trading Strategies that Work”.
The name “double seven” is also almost the whole description of the strategy:
Go long when today’s close is lower than the lowest low of the last seven days. Sell the long position again if today’s close is greater than the highest high of the last seven days. A moving average over 200 daily periods serves as a trend filter.The prorealtimecode for double seven would be this?
double seven1234567891011121314// double seven// buy larry conners and cesar alvarez// timeframe dailyIf close < lowest [7] (low) thenIf close > average [200] (close) thenbuy at marketEndifEndifIf close > highest [7] (high) thensell at marketEndifkind
maik
03/30/2021 at 2:48 PM #165759Your code is not quite correct as it includes the current days low in the condition test and it is impossible for today’s close to be less than today’s low – and the same for the highest test.
Change the code to this:
1234567891011121314defparam cumulateorders = false// double seven// buy larry conners and cesar alvarez// timeframe dailyIf close < lowest [7] (low[1]) thenIf close > average [200] (close) thenbuy at marketEndifEndifIf close > highest [7] (high[1]) thensell at marketEndif03/30/2021 at 2:55 PM #165760Or it could reference CLOSE, instead of HIGH & LOW:
12345678910111213// double seven// buy larry conners and cesar alvarez// timeframe dailyIf close = lowest[7](close) thenIf close > average[200](close) thenbuy at marketEndifEndifIf close = highest[7](close) thensell at marketEndif1 user thanked author for this post.
03/30/2021 at 2:55 PM #165761It is not a very good strategy as if the market keeps falling and fails to make new seven day highs then you will hold into a massive market drop and have massive draw down.
Image shows the strategy compared to buy and hold on DJI with no spread:
03/30/2021 at 3:52 PM #16576404/01/2021 at 4:34 PM #16596404/01/2021 at 6:20 PM #1659693 Line Break, Kagi, Renko, Ticks and all other non-time based charts cannot be used for automated trading.
-
AuthorPosts