# Mandatory Indicators

CFDHero allows an indicator to be set as Mandatory (or Required). A mandatory indicator basically means that the entry/exit condition MUST contain the signal for this indicator before the entry/exit condition is considered fulfilled.

A mandatory indicator will make more sense if a user has set at least two indicators for the entry/exit condition. Sometimes, a user may create up to 5 indicators and set the condition that at least two of them needs to be met before the entry/exit condition is fulfilled. However, the user may require one of the 5 indicator to be present and hence, will tag that indicator as "Mandatory".

The table below shows an example of when entry/exit condition is considered fulfilled. An (R) beside the indicator denotes a Mandatory indicator.

| Indicators                     | Combination | Signal Received  | Condition Met? |
| ------------------------------ | ----------- | ---------------- | -------------- |
| RSI, Volume                    | 1 of 2      | RSI              | Y              |
| RSI(R), Volume                 | 1 of 2      | Volume           | N              |
| RSI(R), Volume                 | 1 of 2      | RSI              | Y              |
| RSI,EMA(R),Stoch RSI           | 2 of 3      | RSI, Stoch RSI   | N              |
| RSI,EMA(R),Stoch RSI           | 2 of 3      | RSI, EMA         | Y              |
| RSI,EMA(R),Stoch RSI           | 2 of 3      | EMA, Stoch RSI   | Y              |
| RSI(R),EMA,SRSI, BB, Volume    | 2 of 5      | EMA, SRSI        | N              |
| RSI(R),EMA(R),SRSI, BB, Volume | 3 of 5      | EMA, SRSI, BB    | N              |
| RSI(R),EMA(R),SRSI, BB, Volume | 3 of 5      | RSI, EMA, Volume | Y              |

Mandatory indicators offer traders a powerful option to remove "noise" from the market.

### Mandatory TradingView Signal

You can also set a TradingView signal as a "Required" indicator. If this is enabled, you will need to set the Validity period. The Validity period refers to how long should CFDHero hold a TradingView signal before the next TradingView signal is received.

For example, if you set "60" seconds as the Validity period, and TradingView Signal 1 is received, the next TradingView Signal 2 that arrives within 60 seconds from the receipt of Signal 1, CFDHero will evaluate Signal 1 as a REquired signal and execute the trade. If Signal 2 arrives after 60 seconds from the receipt of Signal 1, the bot will not execute. This is because Signal 1 is set as a "Required" indicator.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cfdhero.com/technical-indicators/mandatory-indicators.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
