> For the complete documentation index, see [llms.txt](https://1ex.gitbook.io/1ex-news/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://1ex.gitbook.io/1ex-news/user-manual-eng/general/trading-strategies/sentiment-based-news-trading/strategy-comparative-analysis-of-sentiment.md).

# Strategy "Comparative analysis of sentiment"

This strategy is a symbiosis of two strategies "Sentimental news background" and "Trading against the news" and gives higher efficiency than each separately.

## Configuring the workspace

Step 1. Go to "Add Widget" and open the TradingView tab.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2F6ZVfqKv8GqUOKYHuUSxY%2Fimage.png?alt=media&amp;token=48b81b1f-a645-47b7-b111-a83747cc5803" alt=""><figcaption></figcaption></figure>

Step 2. In the window with the chart that opens, select the instrument and the traded timeframe.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2F1XW7g7fbsM0MBZAvjkXV%2Fimage.png?alt=media&amp;token=5f859ead-13d0-484c-9f3e-8aa8fa6d71f7" alt=""><figcaption></figcaption></figure>

Step 3. Open the "1ex Indicators" and select "News Sentiment".

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2F7RKcksqR1cHYJxii8FpC%2Fimage.png?alt=media&amp;token=b6042983-c7fe-45c8-91d2-651db1b971f9" alt=""><figcaption></figcaption></figure>

Step 4. Set the settings (as in the photo below):

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FJKiSmBmqxFCLYH8jwyr8%2Fimage.png?alt=media&amp;token=93fb4e26-dbb0-4779-894d-c6c9961da2f2" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**IMPORTANT!!!**

In the "Symbol" field, there are two options:

**"Crypto"** – the indicator will be based on all cryptocurrency market news.

**"BTC"** – the indicator will focus only on news related to the specific instrument selected in the TradingView chart.

In the "Period" field, you can set the time period for the news data. For optimal results, choose a period that is 20 to 60 times longer than your trading timeframe on the chart. A lower multiplier results in higher sensitivity, while a higher multiplier results in lower sensitivity.

**Example:** If the chart's timeframe is 5 minutes, set the news period to 4 hours (which equals 48 candles of 5 minutes each).
{% endhint %}

The indicator window will look like this:

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FFZagUcP3LiwLkdQRKFzq%2Fimage.png?alt=media&amp;token=4c67a60c-e8a3-4c06-ac95-5bd870a53b65" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Line Values:**

<mark style="color:green;">Green line</mark> - absolute number of positive news stories.&#x20;

<mark style="color:red;">Red line</mark> - absolute number of negative news stories.&#x20;

White line - absolute number of neutral news stories.
{% endhint %}

**Trading strategy description!!!!!**

In this strategy, you should combine two signals from two different strategies and get one more accurate signal.

## Entry Points for a Trade

1. As soon as a positive sentiment grows (the green line), you need to track the interval from the minimum point of the indicator to the maximum point (the top of the indicator) for the price reaction to this positive sentiment (the distance from point to point).

If there is a price reaction to a positive sentiment, that is, with the appearance of a lot of positive news, the price also increases, then the market will have priority for an upward movement.

If the price reaction has increased slightly, or has come to approximately the same point, or has decreased altogether, then this means that the market will have the potential for a downward movement.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FnKiLXbrT78rgX7hBr5b7%2Fimage.png?alt=media&amp;token=3cf22452-ae50-47b9-b1ce-3366f2d7e9ce" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**IMPORTANT!** The price points are compared with each other (not the reaction of the price in the time interval to the growth of positive sentiment, namely the price levels opposite the minimum value and the maximum value of sentiment).

**IMPORTANT!** If the signal has not worked (low probability), then it has a delayed effect and the price has the property of returning to this level in a short period of time. The trader has the opportunity to remember the price level where the signal did not work out and take into account the return to it at a distance.
{% endhint %}

2. We determine the maximum points of positive news (green line) on the sentiment indicator and compare the distance between negative news (red line).

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FUSmrgUhFxWuJxEqUW8Ab%2Fimage.png?alt=media&amp;token=af2c5f0e-71a0-4d5c-bf02-bf0e2d3c30b6" alt=""><figcaption></figcaption></figure>

3. Analyze and receive trading signals:

**Long Signal:** When the red line (negative news) reaches the same level as the green line (positive news) or even surpasses it.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FUDPTOTzKVZenXVTYieQb%2Fimage.png?alt=media&amp;token=c8485107-e92d-4826-9a05-a345bcca7c6d" alt=""><figcaption></figcaption></figure>

**Short Signal:** When the green line (positive news) is significantly above the red line (negative news).

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FKboCk6FtQK7pzMlsOcKZ%2Fimage.png?alt=media&amp;token=7b77a257-de98-4922-b60a-cf2170f9c9e7" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**IMPORTANT!**

There are a few nuances to consider with this strategy:

1. This approach works best over time, so it's crucial to **accumulate positions gradually**.

2. For better results, it's recommended to trade **without leverage** (or with minimal leverage) and **without stop-losses**.

3. Avoid entering trades at the same price levels, even if the indicator continues to signal.

4. It's generally **better to avoid signals** that occur during weekends.
   {% endhint %}

5. Now we need to connect the signals using two methods:

A signal in <mark style="color:green;">Long</mark> - when positive sentiment grows and with it the price and negative news prevail, or have a ratio slightly above average.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FcWytMWPr6k7RHlPauU1V%2Fimage.png?alt=media&amp;token=3261d1f1-aef9-44c3-a491-4e8ee87b150f" alt=""><figcaption></figcaption></figure>

A <mark style="color:red;">Short</mark> signal is when a positive sentiment is growing, but the price does not give a growth reaction and at the same time positive news is very predominant.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FGr1rIyCc6B56IQISZ2NZ%2Fimage.png?alt=media&amp;token=71e97091-501e-4717-86f1-2e325e1b29cb" alt=""><figcaption></figcaption></figure>

## Exit points from the deal

The best option is to exit the deal on the opposite signal.

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2Fa1f8adQR4vcOpDszIRzr%2Fimage.png?alt=media&amp;token=de884aa1-2169-48e2-b3dc-fad636a0133e" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
The trading result in this area in 7 days = +7.8% excluding leverage.
{% endhint %}

## Results

We conducted testing and took the history for about 3 months, after which we started looking for entry points using the above method, and then opened the 1 hour timeframe to see the effectiveness of the symbiosis of strategies and that's what we got:

<figure><img src="https://50984263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxvSjYcSxDfAX6PVpWdgr%2Fuploads%2FFnjPU8QRXrpnwhXciUYL%2Fimage.png?alt=media&amp;token=0d052f7b-b98f-455a-9e4c-9cae4a3f202c" alt=""><figcaption></figcaption></figure>

For 3 months, the yield excluding leverage was approximately +79%.

{% hint style="danger" %}
**IMPORTANT!** Trading involves risks. The user is solely responsible for their actions or inactions when using the described trading strategy. The strategy and its description are for informational purposes only. The information provided here does not constitute personalized investment advice. News, articles, expert comments, research, forecasts, and other information are presented without considering any specific investment profile, and the financial instruments or operations mentioned may not align with the expected returns, investment horizon, or acceptable risk levels for any particular user. Company 1EX is not responsible for any potential losses resulting from trades based on the described strategy or investments in the financial instruments mentioned in this publication.
{% endhint %}
