2.15

📋 Kereskedési szabályok

Automatikus kereskedési szabályok és riasztások

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. Mik azok a kereskedési szabályok?

A kereskedési szabályok előre meghatározott feltételek, amelyek segítenek fegyelmezetten kereskedni. A rendszer automatikusan figyeli a pozícióidat, és riasztást küld, ha egy szabály teljesül. Így többé nem felejtesz el fontos teendőket.

A kereskedési szabályok rendszer:
• Automatikusan emlékeztet a fontos szabályokra
• Figyelmeztet a kockázati limitek megsértésekor
• Segít a szabálybetartás dokumentálásában és elemzésében
• Támogatja a különböző kereskedési stílusokat (opciók, részvények, stb.)
✨

Miért fontosak a szabályok?

A legtöbb kereskedőnek fejben vannak a szabályai, de a küzdelem hevében elfelejtik őket. Példa: "50%-os nyereségnél zárj" — de aztán az ember még nagyobb nyereségben reménykedik, és lekési a kiszállást. A kereskedési szabályok automatikusan emlékeztetnek!

"Plan your trade, trade your plan" — a szabályrendszerrel ez az alapelv valósággá válik.

4. Architektúra: a két dimenzió

A szabályrendszer két alapvető dimenzióra épül:

┌─────────────────────────────────────────────────────────────────┐
│                        SZABÁLY-DIMENZIÓK                        │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  FORRÁS                        SCOPE (érvényességi kör)          │
│  ┌──────────────┐              ┌──────────────────────────┐    │
│  │ Rendszer     │              │ 🎯 Pozíció               │    │
│  │ (Presetek)   │              │    Egy adott              │    │
│  ├──────────────┤              │    pozíció                │    │
│  │ Felhasználó  │              ├──────────────────────────┤    │
│  │ (Egyéni)     │              │ 🏦 Konto                 │    │
│  └──────────────┘              │    Egy bróker-számla     │    │
│                                ├──────────────────────────┤    │
│                                │ 💼 Portfólió             │    │
│                                │    Minden konto           │    │
│                                └──────────────────────────┘    │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

5. 1. dimenzió: a szabály forrása

🔧 Rendszer-presetek
A rendszer által előre meghatározott szabályok, amelyeket egy kattintással aktiválhatsz. Ezek bevált kereskedési gyakorlatokon alapulnak, és a Singularity Trader csapata gondozza őket.

Példák:
• "50%-os profit take" — zárás a maximális nyereség 50%-ánál
• "21 DTE Management" — figyelmeztetés 21 nap hátralévő futamidőnél
• "200%-os stop-loss" — zárás a prémium 2x-es veszteségénél

✏️ Felhasználó által meghatározott (egyéni)
Saját szabályok, amelyeket te magad hozol létre, és amelyek pontosan illeszkednek a kereskedési stílusodhoz. Te határozod meg a nevet, a feltételt és a műveletet.

6. 2. dimenzió: érvényességi kör (scope)

Minden szabálynak van egy érvényességi köre, amely meghatározza, mely pozíciókra vonatkozik:

ScopePéldaszabályAlkalmazási eset
🎯 Pozíció"Ezt az AAPL-pozíciót +20%-nál eladni"Egyéni trade-terv
🏦 Konto"Ebben a kontóban max. 30% buying power"Konzervatív IRA-konto
💼 Portfólió"Sosem több mint 5% egy pozícióban"Általános kockázati szabály

7. 🎯 Pozíció-szabályok részletesen

A pozíció-szabályok egy adott pozícióra vonatkoznak. Lehetővé teszik, hogy minden trade-hez egyéni tervet határozz meg.

Tipikus pozíció-szabályok:
• Stop-loss árfolyam — pl. "Eladni, ha az árfolyam 150 $ alá esik"
• Take-profit cél — pl. "Zárni +20%-nál"
• DTE-alapú — pl. "Zárni 14 DTE-nél"
• ITM-figyelmeztetés — pl. "Görgetni, ha az opció ITM-be kerül"
• Egyéni trade-terv

Alkalmazási eset: Megnyitsz egy trade-et, és rögtön meghatározod, mikor akarod zárni vagy módosítani. A rendszer emlékeztet, amint a feltétel teljesül.

8. 🏦 Konto-szabályok részletesen

A konto-szabályok egy bróker-kontóra vonatkoznak. Segítenek abban, hogy kontónként eltérő stratégiákat futtass.

Tipikus konto-szabályok:
• Max. buying power kihasználtság % — pl. "Sosem 50% felett"
• Max. nyitott pozíciók száma — pl. "Max. 10 pozíció"
• Engedélyezett eszközosztályok — pl. "Csak részvények, opciók nélkül"
• Max. pozícióméret ebben a kontóban
• Konto-specifikus margin-szabályok

Alkalmazási eset: Van egy konzervatív IRA-kontód és egy agresszív kereskedési kontód. A konto-szabályok biztosítják, hogy betartsd az eltérő kockázati profilokat.

9. 💼 Portfólió-szabályok részletesen

A portfólió-szabályok az összes kontón átívelve érvényesek. Megvédik a teljes vagyonodat.

Tipikus portfólió-szabályok:
• Teljes exposure limit — pl. "Max. a tőke 200%-a"
• Szektor-diverzifikáció — pl. "Max. 20% tech szektorban"
• Max. pozícióméret (összesen) — pl. "Max. 5% egy részvényben"
• Korrelációs limitek — pl. "Figyelmeztetés túl sok hasonló trade esetén"
• Teljes kockázati szabályok

Alkalmazási eset: Bármennyi kontód is van, ezek a szabályok biztosítják, hogy a teljes portfóliód ne váljon túl kockázatossá.

10. Szabály-kategóriák

A szabályokat kategóriákba soroljuk aszerint, mikor lépnek életbe:

📥 Entry-szabályok (nyitás előtt)
Ellenőrzések egy pozíció megnyitása előtt:
• 45 DTE entry — kb. 45 napos futamidejű opciók
• Delta 0,30 — short putok 0,30-as deltánál
• IV Rank > 50 — csak magas volatilitásnál eladni
• Earnings elkerülése — nincs trade earnings körül

📤 Exit-/menedzsment-szabályok
Mikor kell zárnod vagy módosítanod a pozíciókat:
• 50%-os profit take — a maximális nyereség 50%-ánál
• 21 DTE menedzsment — 21 nap hátralévő futamidőnél
• 200%-os stop-loss — a prémium 2x-es veszteségénél
• Görgetés ITM esetén

⚠️ Kockázati szabályok
Portfóliószintű határok:
• 1-2%-os szabály — max. kockázat trade-enként
• 5%-os pozícióméret — max. pozíciónként
• 50%-os buying power — sosem lépd túl

🧠 Pszichológiai szabályok
Védelem az érzelmi alapú kereskedés ellen:
• 3 vesztes = szünet
• Nincs bosszú-kereskedés
• Terv a trade előtt

11. Rendszerarchitektúra: a szabály-motor

A szabály-motor a rendszer szíve. Folyamatosan figyeli az összes pozíciódat, és ellenőrzi, hogy egy szabály kiváltódik-e:

┌─────────────────────────────────────────────────────────────────┐
│                        SZABÁLY-MOTOR                             │
├─────────────────────────────────────────────────────────────────┤
│  Szabály-definíció (Admin/felhasználó)                          │
│  • Név, leírás                                                  │
│  • Típus: Entry / Exit / Menedzsment / Risk                     │
│  • Feltétel (pl. DTE <= 21)                                     │
│  • Művelet: Alert / figyelmeztetés / blokkolás                  │
│  • Eszköztípus: opció / részvény / mind                         │
│  • Scope: pozíció / konto / portfólió                            │
├─────────────────────────────────────────────────────────────────┤
│                              ↓                                  │
│  ┌───────────┐  ┌───────────┐  ┌───────────┐  ┌───────────┐    │
│  │ Dashboard │  │ Figyelő-  │  │  Entry    │  │  Alert-   │    │
│  │  widget   │  │ lista jel │  │ ellenőrzés│  │  rendszer │    │
│  └───────────┘  └───────────┘  └───────────┘  └───────────┘    │
└─────────────────────────────────────────────────────────────────┘

A motor rendszeresen ellenőrzi az összes aktív szabályt, és teljesülés esetén kiváltja a megfelelő műveletet.

12. Integráció a platformba

A kereskedési szabályok a platform különböző pontjain integrálva vannak:

OldalIntegráció
Dashboard"Teendő" widget aktív szabály-riasztásokkal
Pozíció-részletekAz adott pozícióhoz tartozó aktív szabályok megjelenítése
Trade EntryEllenőrzés nyitás előtt (kockázati szabályok)
FigyelőlistaJelzés-oszlop az entry-szabályok alapján
ÉrtesítésekPush/e-mail, ha egy szabály kiváltódik
Kereskedési naplóSzabály-megfelelési pontszám trade-enként

13. Feltételtípusok (Condition Types)

A szabályokhoz a következő feltételtípusok állnak rendelkezésre:

TípusLeírásEszköz
PROFIT_PCTNyereség %-banMind
LOSS_PCTVeszteség %-banMind
DTEDays to ExpirationOpciók
DELTADelta-értékOpciók
IV_RANKIV Rank/percentilisOpciók
POSITION_SIZE_PCTPozíció > X% portfólióKockázat
BUYING_POWER_PCTBP kihasználtság > X%Kockázat
EARNINGS_DTEEarnings X napon belülMind

14. Státusz: koncepció

⚠️ Megjegyzés: A kereskedési szabályok rendszere jelenleg a koncepciófázisban van. Az itt leírt funkciók a jövőbeli verziókban kerülnek megvalósításra.

A visszajelzésed szívesen fogadjuk, hogy a funkciókat optimálisan alakíthassuk ki! A részletes technikai dokumentációt a docs/concepts/TRADING-RULES.md fájlban találod.

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.