Fred6724

Market Condition Detector

Fred6724 Updated   
This script allows to change the background color of the main chart to green or red depending on the following factors:

Based on the QQQ graph whatever ticker you are watching
- Price > EMA20 Da
- Net New Highs > 0
- 10EMA Da > 20 EMA Da

When you are trading Break-Out, EP or other similar trades you will need the market at your back to improve both the winrate and the risk reward ratio.
This is a very useful tool if you struggle with the FOMO biais. It will help you detect the trend at a glance.
Remember that the top best trader are waiting for their trade to work and only after getting some traction, and only then will they take the next trade.

I also proceeded to find a formula that make the indicator be the smoother possible with the less possible amount of noise.

/!\ This indicator is intended for use on daily charts . /!\
Release Notes:
- Inputs have been arranged and cleaned
- Now possible to modify reference ticker for calculation
Release Notes:
- Changed opacity from 70 to 85
- Changed the reference ticker from QQQ to SP:SPX for better historical results
Release Notes:
- Deleted drawings on the graph, woops

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?