O!kurra
Chapter 14
Log in

Daily P/L Limits

Tool version: O!kurra Capital Defense EA 2.00


14.1 What Daily P/L Limits are

Daily P/L Limits (DPL) are daily profit and loss limits at the account level. They control how much the EA can earn or lose within one day, and automatically halt trading once the thresholds are exceeded.

DPL is one of the three account guardians (chapter 1.5), next to Equity Guard and Profit Target (chapter 15). Each counts differently:

GuardianHow it countsWhen it resets
DPLthis EA’s result since the day’s reset moment (in “whole account” mode: the account’s equity delta)daily at the reset hour
EGfloating + realized PnL of the basket since “the last zero”when the basket empties
PTonly the realized PnL of the basket since “the last zero”when the basket empties

DPL is the only one of the three with a cyclic time-based reset (independent of the state of positions): every day at the same hour the EA refreshes the reference point and counts anew.

DPL has priority over EG and PT. When DPL fires (hard stop), it closes everything and disables the buttons until the next rollover — EG and PT no longer have anything to count (basket empty, buttons inactive).

The guardians do NOT block a price-travel sensor from firing. This is a deliberate decision, so it is worth knowing: the daily limit, Equity Guard and Profit Target are not taken into account when a Price Movement sensor (chapter 18) checks its threshold. A sensor only throws a button’s switch — whether a position comes of it is decided by the normal opening gates, where the guardians still have their say. In practice, after a DPL hard stop a sensor may switch a button on, but it will not open a position until the next day reset anyway. If you want nothing to move even at the level of button states once a limit fires — turn the whole sensor family off with its master switch, or stop the EA (chapter 8).

DPL has two independent sides — Profit and Loss:

  • Daily Profit — when the total profit since the start of the day exceeds the threshold, the EA reacts,
  • Daily Loss — when the total loss since the start of the day exceeds the threshold, the EA reacts.

Each side has independent settings (value, mode, action). You can enable one, both, or neither (default — both disabled).

Counting scope — this EA or the whole account. By default DPL counts only this EA’s positions (the realized result since the day’s reset moment + the current floating, filtered by Magic Number). Manually opened positions and other EAs and instruments on the account do not affect the daily limit. If you prefer DPL to watch the equity of the whole account (a daily stop for everything happening on the account), enable the “whole account” option in the DPL settings.

Migration note. In older versions DPL always counted the equity of the whole account. Now by default it counts only this EA — whoever wants a daily stop on the whole account has to deliberately enable the “whole account” option.

Tool positioning. DPL supports observing how much the EA “works per day”, and automatically stops it once the thresholds are exceeded. What values to choose — that is part of your experiment on a demo.


14.2 Reset hour and the rollover mechanism

Daily reset hour (the reset hour, “HH:MM” format, default “00:00”, broker time) is the hour at which the EA resets the daily PnL counting. Each day starts at that hour and lasts 24 hours. Default 00:00 = the trading day starts at server midnight. You can change it (e.g. “22:00” for traders for whom the evening is the natural “end of the day”).

Read the rest of this chapter

The chapter continues. Create a free account or log in to read it in full, with every diagram.