> For the complete documentation index, see [llms.txt](https://indicators.agenatrader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://indicators.agenatrader.com/standard-indicators/priordayohlc.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://indicators.agenatrader.com/standard-indicators/priordayohlc.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
