# PriorDayOHLC

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

PriorDayOHLC shows the values for yesterday’s (i.e. the previous session’s) open, high, low, and close. PriorDayOHLC works best when used together with the intraday data series.

**PriorDayOHLCext** PriorDayOHLCext For people in different time zones, PriorDayOHLCext makes it possible to set the IncludeWeekend parameter to “true”, which is helpful because all data originating from a Saturday or Sunday is treated as if it comes from the previous Friday’s session.

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

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

inSeries Input data series for the indicator

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

**double**

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

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

```csharp
PriorDayOHLC()
PriorDayOHLC(IDataSeries inSeries)

//For the value of open
PriorDayOHLC().PriorOpen[int barsAgo]
PriorDayOHLC(IDataSeries inSeries).PriorOpen[int barsAgo]

//For the value of high
PriorDayOHLC().PriorHigh[int barsAgo]
PriorDayOHLC(IDataSeries inSeries).PriorHigh[int barsAgo]

//For the value of low
PriorDayOHLC().PriorLow[int barsAgo]
PriorDayOHLC(IDataSeries inSeries).PriorLow[int barsAgo]

//For the value of close
PriorDayOHLC().PriorClose[int barsAgo]
PriorDayOHLC(IDataSeries inSeries).PriorClose[int barsAgo]
```

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

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

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

```
// Value from the previous trading day
Print("Yesterday’s open was " + PriorDayOHLC().PriorOpen[0]);
Print("Yesterday’s high was " + PriorDayOHLC().PriorHigh[0]);
Print("Yesterday’s low was " + PriorDayOHLC().PriorLow[0]);
Print("Yesterday’s close was " + PriorDayOHLC().PriorClose[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/priordayohlc.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.
