Based on Decision Point oscillator by LazyBear.
I added a Rate of Change component based on code by kiasaki - this stops trading in a sideways market.
You can adjust stop loss and take profit values in the settings.
- Go Long when the background turns from red to green
- Go Short when the background turns from green to red
- Do not trade when background is white since this is a sideways market
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.