ChartnautDocs

Breach

object
idstringRequired
Pattern ^brk_[0-9]+$
rule_idstringRequired
rule_typestringRequired
periodstring

The trading day (YYYY-MM-DD) for daily rules.

limitnumberRequired

The rule's limit, in unit.

valuenumberRequired

What was observed, in unit.

unitstringRequired

The same for sessions and demo accounts: money (a decimal in the account currency) for money rules, units (lots, contracts, coins or shares, up to three decimals) for max_position_size, count (a whole number) for max_open_positions.

One of money units count
atstring (date-time)Required

The crossing: replay time for backtests (the bar's time), the exact price change for demo accounts.

at_precisionstringRequired

between: across a gap in our price records, the crossing was between window_start and window_end.

One of exact between bar
window_startstring (date-time)
window_endstring (date-time)
pricesobjectRequiredNullable

Demo accounts: the bid/ask by market at the crossing. Sessions: {}.

actionstringRequired
One of record block_order close_and_end complete
action_appliedbooleanRequired

false when Chartnaut has paused rule actions for you (an emergency stop): the breach is stored and nothing is done.

detected_atstring (date-time)Required
detected_bystringRequired

Where it was found: client or replay for sessions; sweep (a price change) or event (a fill, close or adjustment) for demo accounts.

One of sweep event replay client

Used by#