OPEN-SOURCE SCRIPT

Market Condition Detector

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
breadthconditionCyclesfomoMoving AveragestrendtrendanalyisisTrend Analysis

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?


Also on:

Disclaimer