Exact OHLC Reachability and Extremal Profit for a Multi-Entry Trailing-Stop Controller

OHLC observations leave the order and number of intraperiod price oscillations unknown. This research investigates exact reachability and extremal profit for a multi-entry trailing-stop controller with fixed entry and trailing distance, rearming only after losing exits. Under a gapless integer unit-step execution model with deterministic fills and zero transaction costs, exact terminal realised-profit membership at the trade quota is NP-complete. In contrast, global marked-profit extrema, conditional realised-profit extrema and conditional unreachability are computable in deterministic polynomial time, even for unrestricted binary-encoded trade quotas. The principal algorithmic contribution is a simultaneous critical-peak rounding construction that preserves attainable extrema and yields a polynomial-size weighted graph. Shared witness DAGs provide compact attaining executions. The manuscript contains sixteen numbered mathematical results and is accompanied by a Lean 4.24.0 formal verification artifact, reproducible Python experiments, certificate checks and numerical regression tests. The NP-completeness and indexed-RAM bit-complexity results are established through written proofs. The Lean artifact verifies scoped mathematical results, rather than the complete end-to-end executable algorithm. This is an independent research preprint, version 1.0, with substantial AI assistance disclosed in the manuscript. It has not undergone human peer review. Scientific originality remains provisional. Reproducibility GitHub repository:https://github.com/yunusovmatin/ohlc-reachability-extremal-profit Version 1.0 release:https://github.com/yunusovmatin/ohlc-reachability-extremal-profit/releases/tag/v1.0 Licensing The original manuscript and scholarly text are licensed under CC BY 4.0. Original Lean and Python software and its dedicated documentation are licensed under MIT. Third-party terms remain applicable.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-28
DOI
https://doi.org/10.5281/zenodo.24632130
Primary Topic
Financial Markets and Investment Strategies
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Exact OHLC Reachability and Extremal Profit for a Multi-Entry Trailing-Stop Controller

Matin Yunusov
Zenodo (CERN European Organization for Nuclear Research)
Financial Markets and Investment Strategies
preprint

Exact OHLC Reachability and Extremal Profit for a Multi-Entry Trailing-Stop Controller

Matin Yunusov
preprint en

Abstract

OHLC observations leave the order and number of intraperiod price oscillations unknown. This research investigates exact reachability and extremal profit for a multi-entry trailing-stop controller with fixed entry and trailing distance, rearming only after losing exits. Under a gapless integer unit-step execution model with deterministic fills and zero transaction costs, exact terminal realised-profit membership at the trade quota is NP-complete. In contrast, global marked-profit extrema, conditional realised-profit extrema and conditional unreachability are computable in deterministic polynomial time, even for unrestricted binary-encoded trade quotas. The principal algorithmic contribution is a simultaneous critical-peak rounding construction that preserves attainable extrema and yields a polynomial-size weighted graph. Shared witness DAGs provide compact attaining executions. The manuscript contains sixteen numbered mathematical results and is accompanied by a Lean 4.24.0 formal verification artifact, reproducible Python experiments, certificate checks and numerical regression tests. The NP-completeness and indexed-RAM bit-complexity results are established through written proofs. The Lean artifact verifies scoped mathematical results, rather than the complete end-to-end executable algorithm. This is an independent research preprint, version 1.0, with substantial AI assistance disclosed in the manuscript. It has not undergone human peer review. Scientific originality remains provisional. Reproducibility GitHub repository:https://github.com/yunusovmatin/ohlc-reachability-extremal-profit Version 1.0 release:https://github.com/yunusovmatin/ohlc-reachability-extremal-profit/releases/tag/v1.0 Licensing The original manuscript and scholarly text are licensed under CC BY 4.0. Original Lean and Python software and its dedicated documentation are licensed under MIT. Third-party terms remain applicable.

Zenodo (CERN European Organization for Nuclear Research)
Financial Markets and Investment Strategies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon