2.15

📋 Правила торговли

Автоматические правила торговли и алерты

1. 🌱 Your First 3 Rules — Starter Set

Trading rules are a powerful tool — but without a starting point, they can feel overwhelming. If you're just getting started, these three rules are all you need:

  1. Max 2% risk per trade. Set a hard stop at 2% of your current account value in the rule settings. The app warns you as soon as you cross this limit. Math background: Chapter 6.0 — The 1R Rule.
  2. No adding to losers. If a trade is red, you do NOT double down (no "averaging down"). Turn the rule on → the app warns you on violation. Background on this trap: Ch. 6 Losing Streak.
  3. A journal entry is mandatory for every trade. Entry reason + emotion + rationale. No journal, no trade. No review, no learning. Template: Mindset Ch. Module 3.

After 3 months, you can expand your rule set with the advanced rules from the sections below — earnings filters, correlation limits, max positions per day. But first: these three, and nothing else.

2. Что такое правила торговли?

Правила торговли — это заранее определённые условия, которые помогают торговать дисциплинированно. Система автоматически отслеживает позиции и отправляет оповещения при срабатывании правила.

Система правил торговли:
• Автоматически напоминает о важных правилах
• Предупреждает о нарушении лимитов риска
• Помогает документировать и анализировать соблюдение правил
• Поддерживает различные торговые стили (опционы, акции и т.д.)
✨

Почему правила важны?

Большинство трейдеров держат правила в голове, но забывают о них в пылу торговли. Пример: «закрыть при 50% прибыли» — но потом надеешься на большее и упускаешь выход. Правила торговли напоминают автоматически!

«Plan your trade, trade your plan» — система правил превращает этот принцип в реальность.

4. Архитектура: два измерения

Система правил основана на двух фундаментальных измерениях:

┌─────────────────────────────────────────────────────────────────┐
│                      ИЗМЕРЕНИЯ ПРАВИЛ                           │
├─────────────────────────────────────────────────────────────────┤
│  ИСТОЧНИК                      SCOPE (Область применения)       │
│  ┌──────────────┐              ┌──────────────────────────┐    │
│  │ Система      │              │ 🎯 Позиция               │    │
│  │ (Пресеты)    │              │    Конкретная позиция    │    │
│  ├──────────────┤              ├──────────────────────────┤    │
│  │ Пользователь │              │ 🏦 Счёт                  │    │
│  │ (Custom)     │              │    Брокерский счёт       │    │
│  └──────────────┘              ├──────────────────────────┤    │
│                                │ 💼 Портфель              │    │
│                                │    Все счета             │    │
│                                └──────────────────────────┘    │
└─────────────────────────────────────────────────────────────────┘

5. Измерение 1: Источник правила

🔧 Системные пресеты
Предустановленные правила, которые можно активировать одним кликом. Основаны на проверенных торговых практиках.

Примеры:
• «50% Profit Take» — закрыть при 50% от макс. прибыли
• «21 DTE Management» — предупреждение при 21 дне до экспирации
• «200% Stop-Loss» — закрыть при убытке 2x от полученной премии

✏️ Пользовательские (Custom)
Собственные правила, соответствующие вашему стилю торговли. Вы сами определяете название, условие и действие.

6. Измерение 2: Область применения (Scope)

Каждое правило имеет область применения, определяющую, на какие позиции оно распространяется:

ScopeПример правилаПрименение
🎯 Позиция«Закрыть позицию AAPL при +20%»Индивидуальный план сделки
🏦 Счёт«Макс. 30% Buying Power на счёте»Консервативный IRA-счёт
💼 Портфель«Не более 5% в одной позиции»Общее правило риска

7. 🎯 Правила позиции подробно

Правила позиции действуют для конкретной позиции. Позволяют определить индивидуальный план для каждой сделки.

Типичные правила позиции:
• Уровень стоп-лосса — напр. «Продать если цена ниже $150»
• Цель тейк-профита — напр. «Закрыть при +20%»
• На основе DTE — напр. «Закрыть при 14 DTE»
• ITM-предупреждение — напр. «Роллировать если опцион идёт в деньги»

Применение: вы открываете сделку и сразу устанавливаете, когда закрыть или скорректировать. Система напоминает, когда условие выполнено.

8. 🏦 Правила счёта подробно

Правила счёта действуют для одного брокерского счёта. Помогают применять разные стратегии на разных счетах.

Типичные правила счёта:
• Макс. использование Buying Power % — напр. «Никогда не превышать 50%»
• Макс. количество открытых позиций — напр. «Не более 10»
• Разрешённые классы активов — напр. «Только акции»
• Специфические маржинальные правила счёта

Применение: у вас есть консервативный IRA-счёт и агрессивный торговый счёт. Правила счёта обеспечивают соблюдение разных профилей риска.

9. 💼 Правила портфеля подробно

Правила портфеля действуют на все счета одновременно. Защищают всё ваше состояние.

Типичные правила портфеля:
• Лимит общей экспозиции — напр. «Макс. 200% капитала»
• Диверсификация по секторам — напр. «Макс. 20% в технологиях»
• Макс. размер позиции (суммарно) — напр. «Макс. 5% в одной акции»
• Лимиты корреляций

Применение: независимо от числа счетов, эти правила гарантируют, что общий портфель не станет слишком рискованным.

10. Категории правил

Правила делятся на категории в зависимости от момента их применения:

📥 Правила входа (до открытия)
Проверки перед открытием позиции:
• 45 DTE Entry — опционы с ~45 днями до экспирации
• Delta 0.30 — Short Puts при Delta 0.30
• IV Rank > 50 — продавать только при высокой волатильности
• Избегать Earnings — без сделок во время отчётности

📤 Правила выхода/управления
Когда закрывать или корректировать позиции:
• 50% Profit Take — при 50% от макс. прибыли
• 21 DTE Management — при 21 дне до экспирации
• 200% Stop-Loss — при убытке 2x от премии
• Роллирование при ITM

⚠️ Правила риска
Ограничения на уровне портфеля:
• Правило 1–2% — макс. риск на сделку
• 5% Position Size — макс. на позицию
• 50% Buying Power — никогда не превышать

🧠 Психологические правила
Защита от эмоциональной торговли:
• 3 убытка = пауза
• Запрет мести рынку
• Сначала план, потом сделка

11. Системная архитектура: движок правил

Движок правил — ядро системы. Он непрерывно отслеживает все позиции и проверяет срабатывание правил:

┌─────────────────────────────────────────────────────────────────┐
│                        ДВИЖОК ПРАВИЛ                            │
├─────────────────────────────────────────────────────────────────┤
│  Определение правила (Admin/User)                               │
│  • Название, описание                                           │
│  • Тип: Entry / Exit / Management / Risk                        │
│  • Условие (напр. DTE <= 21)                                    │
│  • Действие: Alert / Warning / Block                            │
│  • Тип актива: Опцион / Акция / Все                             │
│  • Scope: Позиция / Счёт / Портфель                             │
├─────────────────────────────────────────────────────────────────┤
│                              ↓                                  │
│  ┌───────────┐  ┌───────────┐  ┌───────────┐  ┌───────────┐    │
│  │ Dashboard │  │ Watchlist │  │  Entry    │  │  Alerts   │    │
│  │  Widget   │  │  Signals  │  │  Check    │  │  System   │    │
│  └───────────┘  └───────────┘  └───────────┘  └───────────┘    │
└─────────────────────────────────────────────────────────────────┘

Движок регулярно проверяет все активные правила и при их срабатывании выполняет соответствующее действие.

12. Интеграция в платформу

Правила торговли интегрированы в различных местах платформы:

СтраницаИнтеграция
DashboardВиджет «Требует действий» с активными оповещениями
Детали позицииАктивные правила для этой позиции
Открытие сделкиПроверка перед открытием (правила риска)
WatchlistКолонка сигналов по правилам входа
УведомленияPush/Email при срабатывании правила
Торговый журналОценка соблюдения правил на сделку

13. Типы условий (Condition Types)

Доступные типы условий для правил:

ТипОписаниеАктив
PROFIT_PCTПрибыль в %Все
LOSS_PCTУбыток в %Все
DTEDays to ExpirationОпционы
DELTAЗначение DeltaОпционы
IV_RANKIV Rank/PercentileОпционы
POSITION_SIZE_PCTПозиция > X% портфеляРиск
BUYING_POWER_PCTBP Usage > X%Риск
EARNINGS_DTEEarnings через X днейВсе

14. Статус: Концепция

⚠️ Примечание: Система правил торговли в настоящее время находится в концептуальной фазе. Описанные здесь функции будут реализованы в будущих версиях.

Ваши отзывы приветствуются для оптимального формирования функций! Подробную техническую документацию можно найти в docs/concepts/TRADING-RULES.md.

15. Dashboard Widget "Action Needed" ✅

On the dashboard you see all cycles where a strategy rule has been triggered — this is the currently implemented Phase 1 interface:

┌─────────────────────────────────────────────────────────┐
│ ⚠️ Action Needed (3)                                    │
├─────────────────────────────────────────────────────────┤
│                                                         │
│ 🟡 AAPL 180 PUT         50% profit reached (52%)       │
│    Rule: 50% Profit Take                                │
│    [Close] [Ignore]                                     │
│                                                         │
│ 🔴 MSFT 400 CALL        21 DTE reached (18 days)       │
│    Rule: 21 DTE Management                              │
│    [Roll] [Close] [Ignore]                              │
│                                                         │
│ 🟡 TSLA Stock           Stop-loss nearly reached (-9%) │
│    Rule: 10% Stop-Loss                                  │
│    [Sell] [Adjust Stop] [Ignore]                        │
│                                                         │
└─────────────────────────────────────────────────────────┘

Every alert shows: symbol, rule name, current value, and action buttons. The color (🟡 yellow, 🔴 red) shows the urgency.

16. 🔜 Planned Interface: Position Detail with Rules (Future Phase)

🔜 This UI mockup describes a planned future phase — not yet implemented. In Phase 1, triggers are visible in the "Action Needed" dashboard widget, not in the position detail.

┌─────────────────────────────────────────────────────────┐
│ AAPL 180 PUT 2025-01-17 — Planned View                  │
├─────────────────────────────────────────────────────────┤
│ ...Position Details...                                  │
│                                                         │
│ 📋 RULES FOR THIS POSITION  🔜 planned                 │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ ✅ Strategy: 50% Profit Take (active)              │ │
│ │ ✅ Strategy: 21 DTE Management (active)            │ │
│ │ ➕ Add position-specific rule... 🔜                │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘

In Phase 1, you see triggers in the "Action Needed" dashboard widget. A position-specific rules view directly in the position detail — with the option to create position-only rules — is planned for a later phase.

17. Condition Types

The following condition types are available for rules:

TypeDescriptionAsset
PROFIT_PCTProfit in %All
LOSS_PCTLoss in %All
DTEDays to ExpirationOptions
DELTADelta valueOptions
IV_RANKIV Rank/PercentileOptions
POSITION_SIZE_PCTPosition > X% PortfolioRisk
BUYING_POWER_PCTBP usage > X%Risk
EARNINGS_DTEEarnings in X daysAll

18. Data Architecture (Simplified)

For the technically curious: the system stores rules in three tables:

1. risk_rule_presets (system presets)
Rules defined by the admin that all users can add to their strategies.

2. strategy_risk_rules (strategy risk rule set)
Contains activated presets and your own custom rules per strategy — i.e. the concrete risk rule set applied to all cycles of that strategy.

3. risk_rule_triggers (trigger log)
Logs when which rule fired for which cycle and how the user responded (Acknowledge, Snooze, Ignore).

This structure enables:
• Fast checking of all active strategy rules against open cycles
• Traceability of all trigger events
• A foundation for future compliance analysis per strategy

19. Wheel Strategy Rules

Special rules exist for the popular wheel strategy:

RuleDescription
Stocks you want to ownOnly wheel stocks you would want to hold long-term
Cash-SecuredAlways keep enough cash for assignment
CC at resistancePlace covered calls at technical resistance
CC not below cost basisNever sell covered calls below your purchase price

20. Implementation Phases

✅ Phase 1 — Strategy→Cycle Scope (live, May 2026)
• Attach rules from system presets or your own custom rules to a strategy
• Automatic checking of all open trade cycles of the strategy (incl. tag inheritance)
• "Action Needed" dashboard widget with active triggers
• In-app, push, and email notifications for new triggers
• Acknowledge, snooze, or ignore triggers

🔜 Phase 2 — Account Scope (planned)
• Apply rules to a broker account (e.g. max. buying power usage)
• Account-specific risk limits

🔜 Phase 3 — Portfolio Scope (planned)
• Portfolio-wide rules across all accounts
• Sector diversification, total exposure limits

🔜 Phase 4 — Extended Integration (planned)
• Trade Entry: risk check before opening
• Trade Journal: compliance score per trade

21. Open Questions & Feedback

We want to build this system in the best possible way and would love your feedback on these questions:

1. Auto-Execution: Should rules also be able to execute trades automatically (e.g. auto-close)?

2. Check Interval: How often should the rule engine run (real-time vs. every 5 min vs. hourly)?

3. Community Rules: Should rules be shareable between users?

4. Which Presets: Which rules should ship as system presets?

Send your feedback to the support team or post it in the forum!
✨

Status: Phase 1 Active

✅ Phase 1 is live (May 2026): You can now attach risk rules directly to your strategies. Open a strategy → tab "Risk Rules" → activate a preset or create your own rule. All open trade cycles of this strategy are monitored automatically. Triggers appear in the "Action Needed" dashboard widget and as a notification.

Account and portfolio scope follow in later phases. Your feedback helps us build out the presets and condition types in the best way possible!

23. Trading Lights — Traffic Light System Before the Trade

Trading Lights is your market status dashboard in green/yellow/red. You'll find it on the dashboard and as a sidebar widget. It shows you at a glance whether current market conditions are favorable for new trades.

What's shown?
Three categories, each with its own traffic light (green/yellow/red):

• Macro Environment — Fear & Greed Index, VIX, and as a third indicator the NYSE market breadth (see next section).
• Sector Context — the sector of your underlying compared to the overall market (RSI, SMA200 status).
• Underlying Status — the specific market you're looking at (trend, volatility, recent moves).

Majority logic instead of "worst indicator wins": Each category combines its individual indicators by majority — if 2 out of 3 are green, the category is green. That way, a single red outlier no longer drags down an entire category.

Clicking a traffic light opens a modal with beginner-friendly explanations for each indicator — what the value means, how it compares historically, and what actions it suggests.

24. NYSE Market Breadth — "How Many Stocks Are Actually Rising?"

Market breadth measures whether a market move is being carried by many stocks or just a handful of heavyweights. An S&P 500 that rises because 7 mega-caps are rising is less healthy than one that rises because 400 stocks are rising.

Singularity Trader calculates four NYSE breadth indicators automatically every 3 hours:

• A/D Ratio (Advance/Decline) — ratio of advancing to declining stocks on the NYSE. Values > 2.0 = very broadly supported rally; < 0.5 = broad sell-off.
• McClellan Oscillator — smoothed breadth momentum indicator. Positive values = broad upward push, negative = broad downward push. Zero-line crossings are classic signals.
• NYSE > 50d MA — share of NYSE stocks above their 50-day average. > 70% = hot (watch for overheating), < 30% = cold (possible setup environment).
• High/Low Ratio — ratio of new 52-week highs to new 52-week lows. Divergences from the index are often early warning signals.

Where you'll see it:
• In the Trading Lights modal as the third macro indicator
• In the Markets tab as its own metric row
• On the dashboard under "Market Context"
• As a detail heatmap on the market analysis page

Interpretation in one sentence: Green breadth = "the market is carrying you"; red breadth = "you're swimming against the current".

25. COT Analysis — What the Big Players Are Actually Doing

The COT Report (Commitments of Traders) is published every week by the US regulator CFTC and shows the net positions of large institutional traders in futures markets. Singularity Trader imports this data automatically and presents it to you in a digestible way.

Why is this interesting?
When commercial hedgers (e.g. gold miners, oil companies) are historically rarely positioned as heavily long as now — that's often a signal that they expect a bottom to form. When large speculators are extremely bullish, a trend reversal is often looming.

What you'll find:
• Heatmap overview — all available futures markets (gold, oil, S&P, EUR, Bitcoin, …) with their current COT status
• COT Index (52 weeks) — normalized: 0% = extreme bearish, 100% = extreme bullish in the 1-year history. Helps you put absolute numbers into context.
• Per-market detail view — historical trends of commercial, large-speculator, and small-trader positions over the years, including a price chart overlay.
• Related instruments — e.g. when you look at gold COT, you also see silver, platinum, GLD ETF flows.
• Signal labels — "Commercial Extreme Long" / "Speculator Extreme Short" etc., when a market reaches its 5-year extreme.

The data is updated every Friday evening (after the CFTC release). You can reach the page via the sidebar Market Analysis → COT.