Creating Connors RSI in Backtrader Using Python
ConnorsRSI is a momentum oscillator developed by Larry Connors. It's used for identifying overbought and oversold conditions in shorter trading timeframes. If we approach this as a black box the only thing we have to know is that everything above 60 is considered overbought and everything below 5 is considered oversold.
This video will focus on creating this indicator and use it in a simple strategy. Basically, it will create a buy signal when Connors RSI is less than 5 and a sell signal when it is bigger than 60.
Let's start by defining the Connors RSI formula.
The original formula is formula is:
`CRSI(3, 2, 100) = [RSI(3) + RSI(Streak, 2) + PercentRank(100)] / 3`
The first component `RSI(3)` is default RSI indicator that backtrader has build in, we just need to specify the period to be 3.
Next the `RSI(Streak, 2)` is not clearly defined and you could find different implementations depending on where you look. Here we will define Streak as another indicator with the following specifications.
- Number of consecutive days the price has closed higher/lower than the previous day
- If a days closes at the same price as the day before, the streak is reset to `0`
- Upwards streaks yield positive values and downwards streaks yield negative values
Then we will input the Streak data to the RSI indicator using a look back period of 2.
The last piece of the puzzle looks at the size of today’s price change in relation to previous price changes. We do this by using a Percent Rank calculation
The last piece of the puzzle is the PercentRank function which looks at the size of today’s price change in relation to previous price changes. PercentRank is a build in backtrader indicator.
All the code examples are from [backtrader.com](http://backtrader.com) with some slight modifications.
*None of this is meant to be construed as investment advice, it's for entertainment purposes only.
https://tradingskeptic.com/connorsrsi/
https://www.tradingview.com/ideas/connorsrsi/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Creating Connors RSI in Backtrader Using Python», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.