algorembrant commited on
Commit
c672fd6
·
verified ·
1 Parent(s): d64015b

Delete TopoDevPOC.tex

Browse files
Files changed (1) hide show
  1. TopoDevPOC.tex +0 -256
TopoDevPOC.tex DELETED
@@ -1,256 +0,0 @@
1
- \documentclass[conference]{IEEEtran}
2
- \usepackage{amsmath, amssymb, amsthm}
3
- \usepackage{graphicx}
4
- \usepackage{array}
5
- \usepackage{booktabs}
6
- \usepackage{cite}
7
- \usepackage{tikz}
8
- \usepackage{xcolor}
9
-
10
- % Theorem environments
11
- \newtheorem{theorem}{Theorem}
12
- \newtheorem{lemma}{Lemma}
13
- \newtheorem{corollary}{Corollary}
14
- \newtheorem{definition}{Definition}
15
- \newtheorem{proposition}{Proposition}
16
-
17
- \begin{document}
18
-
19
- \title{TopoDevPOC: Topologically Unique Developing Poin of Control Patterns on Pre-market K-Lines}
20
-
21
- \author{\IEEEauthorblockN{ConQ Research Team}\\
22
- \IEEEauthorblockA{\textit{Continual Quasars}\\
23
- \today}
24
- }
25
-
26
- \maketitle
27
-
28
- \begin{abstract}
29
- This paper establishes the exact combinatorial enumeration of all possible unique developing Point of Control (POC) line patterns observed during the pre-market session consisting of $n = 39$ three-minute candlesticks. Under the constraint of continuous directional movement (bullish: non-increasing; bearish: non-decreasing), we prove that the total number of distinct patterns is $2^n$. The derivation employs elementary combinatorics and a state-transition matrix formulation. Additionally, we provide explicit formulas for converting between symbolic sequence representations and ternary matrix encodings using values $+1$, $0$, and $-1$. Ten illustrative random patterns are presented in both symbolic and matrix formats, with a visual chart emphasizing the right-to-left temporal ordering. The results are purely theoretical and require no empirical simulation.
30
- \end{abstract}
31
-
32
- \begin{IEEEkeywords}
33
- developing POC, combinatorial enumeration, candlestick patterns, monotonic sequences, transition matrix, pre-market analysis
34
- \end{IEEEkeywords}
35
-
36
- \section{Introduction}
37
-
38
- The Point of Control (POC) is the price level at which the maximum volume is traded during a given time interval. In pre-market trading, where volume is often thin and directional conviction emerges gradually, the evolving POC exhibits a tendency toward monotonicity: it either trends upward (bullish) or downward (bearish) with possible flat segments, but seldom oscillates. This observation motivates the following combinatorial question: Given a sequence of $n$ consecutive pre-market candles, each associated with a developing POC value, how many distinct patterns of directional movement (strict or flat) exist under the constraint that the sequence is non-increasing (bullish) or non-decreasing (bearish)?
39
-
40
- The present work provides a definitive answer to this question, with the following main contributions:
41
-
42
- \begin{enumerate}
43
- \item A closed-form enumeration showing that for $n$ candles there are exactly $2^n$ unique developing POC line patterns.
44
- \item A matrix-based state-transition formulation that validates the combinatorial result.
45
- \item Explicit formulas for converting a pattern between its symbolic sequence representation and a ternary matrix encoding using values $+1$ (strict up), $-1$ (strict down), and $0$ (equality).
46
- \item A set of ten randomly generated pattern examples, displayed in both symbolic and ternary matrix forms, with a visual chart aligned to the correct right-to-left temporal order.
47
- \end{enumerate}
48
-
49
- The analysis is purely theoretical; no simulations, empirical data, or numerical approximations are employed.
50
-
51
- \section{Problem Definition and Notation}
52
-
53
- Let $n \in \mathbb{N}$ denote the number of candles. For the conventional pre-market session, $n = 39$. Index candles from most recent to oldest as
54
- \begin{equation}
55
- C_0, C_{-1}, C_{-2}, \dots, C_{-(n-1)}.
56
- \end{equation}
57
- The corresponding developing POC values form a sequence
58
- \begin{equation}
59
- \mathbf{p} = (p_0, p_1, \dots, p_{n-1}) \in \mathbb{R}^n,
60
- \end{equation}
61
- where $p_k$ denotes the POC value of candle $C_{-k}$.
62
-
63
- \begin{definition}[Continuous Bullish Pattern]
64
- A sequence $\mathbf{p}$ is a \emph{continuous bullish pattern} if for every $k = 0, 1, \dots, n-2$, the relation $R_k \in \{>, =\}$ holds between $p_k$ and $p_{k+1}$, i.e.,
65
- \begin{equation}
66
- p_k \geq p_{k+1}, \quad \text{with } p_k > p_{k+1} \text{ or } p_k = p_{k+1}.
67
- \end{equation}
68
- \end{definition}
69
-
70
- \begin{definition}[Continuous Bearish Pattern]
71
- A sequence $\mathbf{p}$ is a \emph{continuous bearish pattern} if for every $k = 0, 1, \dots, n-2$, the relation $R_k \in \{<, =\}$ holds between $p_k$ and $p_{k+1}$, i.e.,
72
- \begin{equation}
73
- p_k \leq p_{k+1}, \quad \text{with } p_k < p_{k+1} \text{ or } p_k = p_{k+1}.
74
- \end{equation}
75
- \end{definition}
76
-
77
- A pattern is uniquely identified by the $(n-1)$-tuple of relations $(R_0, R_1, \dots, R_{n-2})$. Two price sequences that yield the same relation tuple are considered equivalent patterns.
78
-
79
- \section{Combinatorial Enumeration}
80
-
81
- \begin{theorem}
82
- For any $n \ge 1$, the number of continuous bullish developing POC patterns of length $n$ is $2^{n-1}$. The number of continuous bearish patterns is also $2^{n-1}$. Consequently, the total number of distinct patterns is $2^n$.
83
- \end{theorem}
84
-
85
- \begin{proof}
86
- For a bullish pattern, each adjacent pair $(p_k, p_{k+1})$ permits exactly two relations: $>$ or $=$. The $n-1$ choices are independent. Thus the number of bullish patterns is $2^{n-1}$. An identical argument applies to bearish patterns with relations $<$ and $=$. Since the two directional families are disjoint, the total count is $2 \cdot 2^{n-1} = 2^n$.
87
- \end{proof}
88
-
89
- For $n = 39$, the exact total number of unique patterns is
90
- \begin{equation}
91
- T_{39} = 2^{39}.
92
- \end{equation}
93
-
94
- \section{Matrix Formulation and State Transition}
95
-
96
- Define a ternary state variable $m_k$ for each transition $k$ ($0 \le k \le n-2$) as follows:
97
- \begin{itemize}
98
- \item For a bullish pattern:
99
- \begin{equation}
100
- m_k = \begin{cases}
101
- +1, & \text{if } R_k = \; >, \\
102
- 0, & \text{if } R_k = \; =.
103
- \end{cases}
104
- \end{equation}
105
- \item For a bearish pattern:
106
- \begin{equation}
107
- m_k = \begin{cases}
108
- -1, & \text{if } R_k = \; <, \\
109
- 0, & \text{if } R_k = \; =.
110
- \end{cases}
111
- \end{equation}
112
- \end{itemize}
113
- Note that in either directional family, the allowed values are either $\{+1, 0\}$ (bullish) or $\{-1, 0\}$ (bearish). Consequently, a pattern is equivalent to a ternary vector of length $n-1$:
114
- \begin{equation}
115
- \mathbf{m} = (m_0, m_1, \dots, m_{n-2}) \in \{-1,0,+1\}^{n-1},
116
- \end{equation}
117
- subject to the constraint that all nonzero entries share the same sign.
118
-
119
- \subsection{Transition Matrix Representation}
120
-
121
- Consider the directed graph with two states $\{S_0, S_{\pm}\}$ corresponding to the last observed relation being equality ($S_0$) or strict move ($S_{\pm}$, with sign determined by direction). Transitions are unconstrained: from any state, both $S_0$ and $S_{\pm}$ are reachable. The adjacency matrix is
122
- \begin{equation}
123
- \mathbf{A} = \begin{pmatrix}
124
- 1 & 1 \\
125
- 1 & 1
126
- \end{pmatrix}.
127
- \end{equation}
128
- Let $\mathbf{v}_0 = (1,1)^\top$ be the initial vector (both states permissible before any comparison). The number of patterns with $n$ candles (i.e., $n-1$ transitions) is
129
- \begin{equation}
130
- B_n = \mathbf{1}^\top \mathbf{A}^{n-2} \mathbf{v}_0,
131
- \end{equation}
132
- where $\mathbf{1} = (1,1)^\top$. Since $\mathbf{A} = \mathbf{1}\mathbf{1}^\top$, we have $\mathbf{A}^k = 2^{k-1} \mathbf{A}$ for $k \ge 1$. Hence,
133
- \begin{align}
134
- B_n &= \mathbf{1}^\top \left( 2^{n-3} \mathbf{A} \right) \mathbf{v}_0 \nonumber \\
135
- &= 2^{n-3} \mathbf{1}^\top \mathbf{A} \mathbf{1} \nonumber \\
136
- &= 2^{n-3} \cdot 4 = 2^{n-1}.
137
- \end{align}
138
- This matrix derivation confirms the combinatorial count independently.
139
-
140
- \section{Conversion Between Symbolic Sequence and Ternary Matrix}
141
-
142
- We establish bidirectional conversion formulas between the symbolic sequence representation (a string of symbols $>$ and $=$, or $<$ and $=$) and the ternary matrix (row vector) encoding.
143
-
144
- \subsection{Symbolic Sequence to Ternary Matrix}
145
-
146
- Let $\Sigma$ be a string of length $n-1$ over alphabet $\{>, =\}$ for bullish, or $\{<, =\}$ for bearish. Define the mapping $f$:
147
- \begin{align}
148
- f_{\text{bullish}}(>) &= +1, & f_{\text{bullish}}(=) &= 0, \\
149
- f_{\text{bearish}}(<) &= -1, & f_{\text{bearish}}(=) &= 0.
150
- \end{align}
151
- The ternary matrix $\mathbf{M}$ of size $1 \times (n-1)$ is given by
152
- \begin{equation}
153
- \mathbf{M}_{1,j+1} = f(\Sigma_j), \quad j = 0,1,\dots,n-2.
154
- \end{equation}
155
- That is, $\mathbf{M} = \begin{pmatrix} f(\Sigma_0) & f(\Sigma_1) & \cdots & f(\Sigma_{n-2}) \end{pmatrix}$.
156
-
157
- \subsection{Ternary Matrix to Symbolic Sequence}
158
-
159
- Conversely, given a ternary row matrix $\mathbf{M} = (m_0, m_1, \dots, m_{n-2})$ with $m_j \in \{+1,0\}$ for bullish or $\{-1,0\}$ for bearish, the symbolic sequence is obtained by applying the inverse mapping $g$:
160
- \begin{align}
161
- g_{\text{bullish}}(+1) &= >, & g_{\text{bullish}}(0) &= =, \\
162
- g_{\text{bearish}}(-1) &= <, & g_{\text{bearish}}(0) &= =.
163
- \end{align}
164
- Formally,
165
- \begin{equation}
166
- \Sigma_j = g(m_j),
167
- \end{equation}
168
- and the sequence is $\Sigma = \Sigma_0 \Sigma_1 \cdots \Sigma_{n-2}$.
169
-
170
- These conversions are one-to-one and preserve pattern identity.
171
-
172
- \section{Illustrative Examples}
173
-
174
- We present ten randomly generated continuous developing POC patterns. For compactness, we use $n = 6$ candles (5 transitions). Each pattern is displayed with its directional label, symbolic sequence, and the corresponding $1 \times 5$ ternary matrix.
175
-
176
- \subsection{Example Patterns}
177
-
178
- \begin{table}[h]
179
- \centering
180
- \caption{Ten Random Continuous Developing POC Patterns ($n=6$)}
181
- \label{tab:examples}
182
- \begin{tabular}{c c c c}
183
- \toprule
184
- \textbf{ID} & \textbf{Direction} & \textbf{Symbolic Sequence} & \textbf{Ternary Matrix ($1 \times 5$)} \\
185
- \midrule
186
- 1 & Bullish & $> \; > \; = \; > \; =$ & $\begin{pmatrix}+1 & +1 & 0 & +1 & 0\end{pmatrix}$ \\
187
- 2 & Bullish & $= \; > \; = \; = \; >$ & $\begin{pmatrix}0 & +1 & 0 & 0 & +1\end{pmatrix}$ \\
188
- 3 & Bearish & $< \; = \; < \; < \; =$ & $\begin{pmatrix}-1 & 0 & -1 & -1 & 0\end{pmatrix}$ \\
189
- 4 & Bearish & $= \; = \; < \; = \; <$ & $\begin{pmatrix}0 & 0 & -1 & 0 & -1\end{pmatrix}$ \\
190
- 5 & Bullish & $> \; = \; = \; > \; >$ & $\begin{pmatrix}+1 & 0 & 0 & +1 & +1\end{pmatrix}$ \\
191
- 6 & Bullish & $= \; > \; > \; = \; >$ & $\begin{pmatrix}0 & +1 & +1 & 0 & +1\end{pmatrix}$ \\
192
- 7 & Bearish & $< \; < \; = \; = \; <$ & $\begin{pmatrix}-1 & -1 & 0 & 0 & -1\end{pmatrix}$ \\
193
- 8 & Bearish & $= \; < \; = \; < \; =$ & $\begin{pmatrix}0 & -1 & 0 & -1 & 0\end{pmatrix}$ \\
194
- 9 & Bullish & $> \; > \; > \; = \; =$ & $\begin{pmatrix}+1 & +1 & +1 & 0 & 0\end{pmatrix}$ \\
195
- 10 & Bearish & $< \; = \; = \; = \; <$ & $\begin{pmatrix}-1 & 0 & 0 & 0 & -1\end{pmatrix}$ \\
196
- \bottomrule
197
- \end{tabular}
198
- \end{table}
199
-
200
- \subsection{Visual Chart with Correct Temporal Ordering}
201
-
202
- The temporal axis is oriented from right to left, aligning with the index convention $C_0$ (current candle, $t=0$) at the rightmost position, followed by $C_{-1}$, $C_{-2}$, etc., proceeding leftwards. This accurately reflects the backward-looking nature of the pattern analysis.
203
-
204
- Figure~\ref{fig:pattern1} depicts Pattern 1 (Bullish: $> \; > \; = \; > \; =$) with this right-to-left orientation. The $y$-axis shows relative POC value (arbitrary units decreasing for bullish).
205
-
206
- \begin{figure}[h]
207
- \centering
208
- \begin{tikzpicture}[scale=0.6]
209
- % x-axis reversed: 0 on the right, negative indices to the left
210
- \draw[->] (0,0) -- (6,0) node[right] {$t$ (candle index)};
211
- \draw[->] (0,0) -- (0,5) node[above] {POC};
212
- % Labels: C_0 at x=5, C_{-1} at x=4, ..., C_{-5} at x=0
213
- \foreach \x in {0,1,2,3,4,5} {
214
- \pgfmathtruncatemacro{\idx}{-\x}
215
- \draw (5-\x,0.1) -- (5-\x,-0.1) node[below] {\small $C_{\idx}$};
216
- }
217
- % Pattern: > > = > =
218
- % Starting value 5, then steps: -1, -1, 0, -1, 0
219
- % Plot from right to left: C_0 (x=5, y=5), C_{-1} (x=4, y=4), ...
220
- \draw[thick, blue] (5,5) -- (4,4) -- (3,3) -- (2,3) -- (1,2) -- (0,2);
221
- \filldraw (5,5) circle (2pt) (4,4) circle (2pt) (3,3) circle (2pt) (2,3) circle (2pt) (1,2) circle (2pt) (0,2) circle (2pt);
222
- % Annotate relations between points (placed near the line segment)
223
- \node[anchor=south] at (4.5,4.5) {$>$};
224
- \node[anchor=south] at (3.5,3.5) {$>$};
225
- \node[anchor=south] at (2.5,3) {$=$};
226
- \node[anchor=south] at (1.5,2.5) {$>$};
227
- \node[anchor=south] at (0.5,2) {$=$};
228
- \end{tikzpicture}
229
- \caption{Visualization of Bullish Pattern 1: $> > = > =$. The right-to-left orientation places the current candle $C_0$ at the rightmost, with older candles extending leftwards.}
230
- \label{fig:pattern1}
231
- \end{figure}
232
-
233
- \section{Discussion and Consistency Verification}
234
-
235
- The enumeration $2^{39}$ demonstrates the vast theoretical space of possible continuous developing POC patterns during the pre-market session. Even under the stringent constraint of directional monotonicity, the number of distinct configurations exceeds half a trillion.
236
-
237
- The ternary matrix representation using $+1$, $0$, and $-1$ provides a compact, signed encoding that inherently encodes both the direction (sign) and the presence of a strict move. This representation is fully consistent with the symbolic sequences and the combinatorial count. The conversion formulas are bijective, ensuring that each pattern has a unique ternary vector.
238
-
239
- The state-transition matrix derivation independently confirms the count $2^{n-1}$ per direction, serving as a cross-check of the combinatorial proof. Moreover, the examples demonstrate that patterns may contain any number of equalities, including the extreme case of all $=$ symbols (ternary matrix of all zeros), which corresponds to a completely flat developing POC line.
240
-
241
- The chart orientation (right to left) aligns with the temporal indexing convention and aids in intuitive interpretation by placing the most recent information at the viewer's natural scanning direction.
242
-
243
- Extensions of this work may consider patterns where the number of consecutive equalities is bounded, or where transition probabilities are non-uniform. The present combinatorial foundation supports such generalizations without alteration of the core enumeration.
244
-
245
- \section{Conclusion}
246
-
247
- We have determined that the total number of unique continuous developing POC line patterns for a sequence of $n$ pre-market candlesticks is $2^n$, with exactly $2^{39}$ patterns for the conventional $n=39$ session. The result is derived via elementary counting and validated by a matrix state-transition framework. Formulas for interconversion between symbolic sequences and ternary matrices (using $+1$, $0$, $-1$) are provided, along with ten illustrative random patterns and a correctly oriented visual chart. This theoretical analysis establishes a fundamental reference for future pattern recognition studies.
248
-
249
- \begin{thebibliography}{1}
250
- \bibitem{marketprofile}
251
- J. F. Dalton, \emph{Mind Over Markets: Power Trading with Market Generated Information}. Marketplace Books, 2013.
252
- \bibitem{combinatorics}
253
- R. P. Stanley, \emph{Enumerative Combinatorics}, vol. 1, 2nd ed. Cambridge University Press, 2011.
254
- \end{thebibliography}
255
-
256
- \end{document}