OPEN-SOURCE SCRIPT

PlanB Quant Investing 101 v2

This script has been Inspired by PlanB Article Quant Investing 101.

With this script, I implemented Plan B strategy outlined in that article, trying to reproduce his findings independently and allowing TradeView Users to do the same.

PlabB is aware of this effort, and he's positive about it, via Twitter commenting, liking and sharing of this resource .

Trading Idea:
This script uses RSI index to determine the Buy And Sell signal.

As per the original PlanB article:

IF ( RSI was above 90% last six months AND drops below 65%) THEN sell,
IF ( RSI was below 50% last six months AND jumps +2% from the low) THEN buy, ELSE hold

My simple code is aimed at replicating his study in Pine so that every TV user can check his signal.
Bitcoin (Cryptocurrency)CryptocurrencyeducationalplanbRelative Strength Index (RSI)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer