> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# ActualTradingDayEndLocal

## Definition

Returns the session's End-Of-Day (EOD) in the user's configured timezone.

In order to obtain historical ActualTradingDayEndLocal information, you must call [GetNextSession](/developer/desktop-sdk/references/common/sessioniterator/getnextsession) from a stored SessionIterator object.

## Property Value

A DateTime structure that represents end of a trading day (EOD).

## Syntax

`SessionIterator.ActualTradingDayEndLocal`

## Example

```csharp
SessionIterator sessionIterator;

protected override void OnStateChange()
{
    if (State == State.Historical)
    {
        sessionIterator = new SessionIterator(Bars);
    }
}

protected override void OnBarUpdate()
{
    // on new bars session, find the next trading session
    if (Bars.IsFirstBarOfSession)
    {
        // use the current bar time to calculate the next session
        sessionIterator.GetNextSession(Time[0], true);

        Print("The current session end of day is " + sessionIterator.ActualTradingDayEndLocal);
    }
}
```