Adds to existing position when current price is below BUY price and crossing above 30 or 40
Exits the long position when crosses down
when you select Take Profit setting , partial profits are taken when current price > BUY price and 13 crossing down 80
Bar color changes to purple when RSI13 is above 80 (if only in Long position exists)
Tested for SPY QQQ AAPL on hourly and 30 mins chart
Warning : For educational purposes only
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.