# CurrentDayOHL

#### Description <a href="#description_112" id="description_112"></a>

This function delivers the values for the open, high and low of the current day i.e. session.

CurrentDayOHL is intended for use with intraday data series.

See [*PriorDayOHLC*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#priordayohlc), [*DayLines*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#daylines).

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

inSeries Input data series for the indicator

#### Return value <a href="#return-value_105" id="return-value_105"></a>

**double**

When using this method with an index (e.g. **CurrentDayOHL**.CurrentOpen\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

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

```csharp
CurrentDayOHL()
CurrentDayOHL(IDataSeries inSeries)
int barsAgo = 0;
//For the open value
CurrentDayOHL().CurrentOpen[ barsAgo]
CurrentDayOHL(IDataSeries inSeries).CurrentOpen[ barsAgo]
//For the high value
CurrentDayOHL().CurrentHigh[ barsAgo]
CurrentDayOHL(IDataSeries inSeries).CurrentBarHigh[ barsAgo]


//For the low value
CurrentDayOHL().CurrentLow[ barsAgo]
CurrentDayOHL(IDataSeries inSeries).CurrentLow[ barsAgo]
```

#### Visualization <a href="#visualization_103" id="visualization_103"></a>

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

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

```csharp
Print("The low of the current session is at " + CurrentDayOHL().GetCurrentBar().Low[0]);
```


---

# 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/standard-indicators/currentdayohl.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.
