# MarketPhases Pro

**Phase5Level** How many percents the price correction must be to become a valid market phase 5.

**Phase4Level** How many percents the price correction must be to become a valid market phase 4.

#### Usage <a href="#usage_58" id="usage_58"></a>

As this indicator ignores the input series, user can use only these 2 methods:

```csharp
public MarketPhasesPro MarketPhasesPro(Int32 trendSize,
            double phase4Level,
            double phase5Level,
            P123ProValidationMethod validationMethod,
            double p2Distance,
            double p3Distance,
            double p3BreakageDistance,
            bool breakTheTrendByCS)

public MarketPhasesPro MarketPhasesPro(Int32 trendSize,
            P123ProValidationMethod validationMethod,
            double p2Distance,
            double p3Distance,
            double p3BreakageDistance,
            bool breakTheTrendByCS)
```

#### Parameter <a href="#parameter_6" id="parameter_6"></a>

phase4Level = 0.2 (0.2 = 20%) phase5Level = 0.5 (0.5 = 50%)

The parameters trendSize, validationMethod, p2Distance, p3Distance, p3BreakageDistance and breakTheTrendByCS are only for the P123 indicator which is used within the MarketPhasesPro. These parameters can be checked under P123Pro descripption.

The most important parameter is the "int trendSize" parameter. It defines which trend is checked

The output value is the phase in the specific trend (1, 2, 3, 4, 5, 5.1, 5.2, 5.3 / as well as the negative values when short direction, see screenshot)

![MarketPhasesPro](https://agenatrader.github.io/AgenaIndicator-documentation/media/MarketPhasesPro.png)

#### Example <a href="#example_54" id="example_54"></a>

```csharp
MarketPhasesPro(0, P123ProValidationMethod.Correction, 0, 0, 0, false)[0] == 4 //check if the big trend is in phase 4 (Long)

            MarketPhasesPro(3, 0.3, 0.6, P123ProValidationMethod.Correction, 0, 0, 0, false)[0] == -5.3 //check if the smallest trend is in phase 5+ (Prom Queen) (Short, phase4Level = 0.3, phase5Level = 0.6)
```

<br>


---

# 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://indicators.agenatrader.com/premium-indicators/dowtheory-addon/marketphases-pro.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.
