# 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]);
```
