fillippone

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.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?