File size: 65,302 Bytes
8307463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
  \documentclass[conference]{IEEEtran}

  % ── Packages ─────────────────────────────────────────────────────────────────
  \usepackage{cite}
  \usepackage{amsmath,amssymb,amsfonts}
  \usepackage{algorithmic}
  \usepackage{algorithm}
  \usepackage{graphicx}
  \usepackage{textcomp}
  \usepackage{booktabs}
  \usepackage{multirow}
  \usepackage{tikz}
  \usepackage{pgfplots}
  \pgfplotsset{compat=1.18}
  \usepackage{hyperref}
  \usepackage{cleveref}

  % ── Meta ─────────────────────────────────────────────────────────────────────
  \hypersetup{
    colorlinks=true,
    linkcolor=blue,
    citecolor=blue,
    urlcolor=blue
  }
  \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
      T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

  % ── Color palette for letters A–J ────────────────────────────────────────────
  \definecolor{colorA}{RGB}{139,69,19}
  \definecolor{colorB}{RGB}{0,0,255}
  \definecolor{colorC}{RGB}{200,0,0}
  \definecolor{colorD}{RGB}{255,192,203}
  \definecolor{colorE}{RGB}{0,255,127}
  \definecolor{colorF}{RGB}{0,139,139}
  \definecolor{colorG}{RGB}{135,206,250}
  \definecolor{colorH}{RGB}{255,215,0}
  \definecolor{colorI}{RGB}{123,104,238}
  \definecolor{colorJ}{RGB}{0,100,0}

  \begin{document}

  % ══════════════════════════════════════════════════════════════════════════════
  % TITLE
  % ══════════════════════════════════════════════════════════════════════════════
  \title{GMP: Gap-Filled Market Profile and It's Variants}

  \author{\IEEEauthorblockN{ConQ Research Team}\\
  \IEEEauthorblockA{\textit{Continual Quasars}\\
  \today}
  }

  \maketitle

  % ══════════════════════════════════════════════════════════════════════════════
  % ABSTRACT
  % ══════════════════════════════════════════════════════════════════════════════
  \begin{abstract}
  Conventional Market Profile (CMP) aggregates price activity into histogram bins, but when applied to an ordered sequence of discrete price points, it leaves bins between consecutive observations empty. We propose \textbf{GMP (Gap‑Filled Market Profile)}, a universal construction that (i) operates on any ordered price sequence and (ii) interpolates every intermediate price bin traversed between successive points, producing a \emph{gap‑filled} profile. Building on this structure, we introduce an \emph{Up/Down‑Bin Footprint Profile} that classifies each bin's contribution directionally, revealing net upward or downward pressure without volume data. Furthermore, we extend GMP with two tick‑volume amplification modesβ€”\textbf{GTMP‑h} (holistic) and \textbf{GTMP‑d} (division)β€”that incorporate per‑observation tick volumes, distributing them fully or proportionally across traversed bins. We formalise all variants with explicit algorithms, derive the relationship between bin count and the user‑defined bin‑size parameter $\beta$, and provide a complete worked example on a ten‑point price series with tick volumes. Tables and colour‑coded profile charts demonstrate that GMP yields a strictly denser and more informative distribution than CMP, while the GTMP extensions add volume‑weighted depth, independent of the original data source.
  \end{abstract}

  \begin{IEEEkeywords}
  Market Profile, gap‑filling interpolation, price bins, directional footprint, tick volume, high‑frequency data, time series
  \end{IEEEkeywords}

  % ── Side‑by‑side introductory CMP vs GMP figure ─────────────────────────────
  % ── Combined 6-chart comparison figure ──────────────────────────────────────
  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      % --- Chart 1: Datapoints-with-Tick Volume ---
      \begin{axis}[
        title={\textbf{Datapoints with Tick Volume}},
        xlabel={Index},
        ylabel={Price (USD)},
        ymin=2999, ymax=3011,
        grid=both,
        width=0.44\columnwidth,
        height=4.2cm,
        name=data,
        title style={font=\tiny},
        label style={font=\tiny},
        tick label style={font=\tiny}
      ]
        \addplot[mark=*, thick, blue, mark size=1pt] coordinates {
          (1,3000.914) (2,3003.837) (3,3002.432) (4,3009.892) (5,3007.698)
          (6,3009.176) (7,3003.381) (8,3004.283) (9,3003.512) (10,3003.012)
        };
      \end{axis}
      \begin{axis}[
        width=0.44\columnwidth,
        height=4.2cm,
        at={(data)},
        anchor=center,
        axis y line*=right,
        axis x line=none,
        ylabel={Volume},
        ymin=0, ymax=2500,
        ylabel style={font=\tiny, color=white},
        tick label style={font=\tiny}
      ]
        \addplot[ybar, fill=gray!30, opacity=0.5, bar width=2.5pt] coordinates {
          (1,432) (2,141) (3,221) (4,1011) (5,1245)
          (6,261) (7,192) (8,483) (9,157) (10,249)
        };
      \end{axis}

      % --- Chart 2: CMP ---
      \begin{axis}[
        title={\textbf{CMP}},
        xbar stacked,
        ylabel={},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=6,
        bar width=3pt,
        width=0.44\columnwidth,
        height=4.2cm,
        at={(data.east)},
        anchor=west,
        xshift=1.0cm,
        name=cmp,
        title style={font=\tiny},
        label style={font=\tiny},
        tick label style={font=\tiny},
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
        \addplot+[fill=colorA, draw=black] coordinates {(1,3000) [A] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (1,3002) [C] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (1,3009) [D]};
        \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (1,3007) [E] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (1,3009) [F]};
        \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (1,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}

      % --- Chart 3: GMP-c ---
      \begin{axis}[
        title={\textbf{GMP-c}},
        xbar stacked,
        ylabel={Price},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=7,
        bar width=3pt,
        width=0.44\columnwidth,
        height=4.2cm,
        at={(data.south)},
        anchor=north,
        yshift=-1.6cm,
        name=gmpc,
        title style={font=\tiny},
        label style={font=\tiny},
        tick label style={font=\tiny},
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
        \addplot+[fill=colorA, draw=black] coordinates {(1,3000) [A] (1,3001) [A] (1,3002) [A] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (1,3002) [C] (1,3003) [C] (1,3004) [C] (1,3005) [C] (1,3006) [C] (1,3007) [C] (1,3008) [C] (0,3009) []};
        \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (1,3008) [D] (1,3009) [D]};
        \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (1,3007) [E] (1,3008) [E] (0,3009) []};
        \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (1,3004) [F] (1,3005) [F] (1,3006) [F] (1,3007) [F] (1,3008) [F] (1,3009) [F]};
        \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (1,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}

      % --- Chart 4: GMP-ud ---
      \begin{axis}[
        title={\textbf{GMP-ud}},
        xbar,
        ylabel={},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=-4, xmax=4,
        bar width=3pt,
        width=0.44\columnwidth,
        height=4.2cm,
        at={(gmpc.east)},
        anchor=west,
        xshift=1.0cm,
        name=gmpud,
        title style={font=\tiny},
        label style={font=\tiny},
        tick label style={font=\tiny},
        legend style={at={(0.5,-0.25)}, anchor=north, legend columns=2, font=\tiny}
      ]
        \addplot[fill=red!60, draw=black] coordinates {
          (0,3000) (0,3001) (-1,3002) (-3,3003) (-1,3004)
          (-1,3005) (-1,3006) (-2,3007) (-2,3008) (0,3009)
        };
        \addplot[fill=teal!60, draw=black] coordinates {
          (0,3000) (1,3001) (1,3002) (2,3003) (2,3004)
          (1,3005) (1,3006) (1,3007) (2,3008) (2,3009)
        };
      \end{axis}

      % --- Chart 5: GTMP-h ---
      \begin{axis}[
        title={\textbf{GTMP-h}},
        xbar stacked,
        ylabel={Price},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=3500,
        bar width=3pt,
        width=0.44\columnwidth,
        height=4.2cm,
        at={(gmpc.south)},
        anchor=north,
        yshift=-1.6cm,
        name=gtmph,
        title style={font=\tiny},
        label style={font=\tiny},
        tick label style={font=\tiny},
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
        \addplot+[fill=colorA, draw=black] coordinates {(432,3000) [A] (432,3001) [A] (432,3002) [A] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (141,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (221,3002) [C] (221,3003) [C] (221,3004) [C] (221,3005) [C] (221,3006) [C] (221,3007) [C] (221,3008) [C] (0,3009) []};
        \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (1011,3008) [D] (1011,3009) [D]};
        \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (1245,3007) [E] (1245,3008) [E] (0,3009) []};
        \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (261,3004) [F] (261,3005) [F] (261,3006) [F] (261,3007) [F] (261,3008) [F] (261,3009) [F]};
        \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (192,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (483,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (157,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (249,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}

      % --- Chart 6: GTMP-d ---
      \begin{axis}[
        title={\textbf{GTMP-d}},
        xbar stacked,
        ylabel={},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=1500,
        bar width=3pt,
        width=0.44\columnwidth,
        height=4.2cm,
        at={(gtmph.east)},
        anchor=west,
        xshift=1.0cm,
        name=gtmpd,
        title style={font=\tiny},
        label style={font=\tiny},
        tick label style={font=\tiny},
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
        \addplot+[fill=colorA, draw=black] coordinates {(144,3000) [A] (144,3001) [A] (144,3002) [A] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (141,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (31.57,3002) [C] (31.57,3003) [C] (31.57,3004) [C] (31.57,3005) [C] (31.57,3006) [C] (31.57,3007) [C] (31.57,3008) [C] (0,3009) []};
        \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (505.5,3008) [D] (505.5,3009) [D]};
        \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (622.5,3007) [E] (622.5,3008) [E] (0,3009) []};
        \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (43.5,3004) [F] (43.5,3005) [F] (43.5,3006) [F] (43.5,3007) [F] (43.5,3008) [F] (43.5,3009) [F]};
        \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (192,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (483,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (157,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
        \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (249,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}
    \end{tikzpicture}
    \caption{Comparison of the proposed Market Profile variants on a 10-point price sequence: (1) Datapoints and Tick Volume trajectory, (2) Conventional Market Profile (CMP), (3) Gap-Filled Market Profile (GMP-c), (4) Up/Down-Bin Footprint (GMP-ud), (5) Holistic Tick-Volume Amplified (GTMP-h), and (6) Division Tick-Volume Amplified (GTMP-d). The GMP family effectively resolves gaps and adds multi-dimensional intensity and direction to the profile.}
    \label{fig:sixcharts}
  \end{figure}


  % ══════════════════════════════════════════════════════════════════════════════
  % I. INTRODUCTION
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Introduction}\label{sec:intro}

  The Market Profile, introduced by Steidlmayer~\cite{steidlmayer1986market} and later formalised by Dalton et~al.~\cite{dalton2007markets}, represents price activity as a horizontal histogram whose bars count the number of times each price level was visited. Most implementations construct the profile from bar data (OHLCV), adding one stack to every bin between the bar's high and low.

  When the input is an arbitrary sequence of discrete price observationsβ€”ticks, irregular samples, or synthetic pathsβ€”the conventional approach records a stack only at the bin of each observed value. Price levels lying between two consecutive observations remain empty, even though price must have traversed them. This gap neglect occurs regardless of the data source.

  We address this shortcoming with \textbf{GMP (Gap‑Filled Market Profile)}. The construction rule is universal: given \emph{any} ordered sequence of price observations $\{p_i\}_{i=1}^{N}$, every bin between two successive points receives an interpolated stack, producing a profile free of gaps.

  Beyond equal‑weight gap‑filling, we introduce \textbf{GTMP (Gap‑filled Tick‑volume Amplified Market Profile)} in two variants that exploit an optional per‑observation tick volume $V_i$. Specifically, \textbf{GTMP‑h (holistic)} assigns the full tick volume of an observation to every bin that the observation's forward path touches. Complementarily, \textbf{GTMP‑d (division)} distributes the tick volume evenly across those same bins, yielding an accurate volume‑density profile.

  The main contributions of this work are:
  \begin{enumerate}
    \item Rigorous formalisation of CMP, GMP‑c, GMP‑ud, GTMP‑h, and GTMP‑d with explicit algorithms and complexity analyses.
    \item A universal gap‑filling methodology applicable to any ordered price sequence, independent of source or frequency.
    \item The Up/Down‑Bin Footprint Profile, a directional classification derived purely from the price traversal.
    \item Tick‑volume amplification modes (holistic and division) that enrich the profile with traded‑size information without requiring order‑book data.
    \item A complete, self‑contained illustration on a ten‑point series with tick volumes, demonstrated through coloured profile charts and summary tables.
  \end{enumerate}

  The rest of the paper is organised as follows. \Cref{sec:related} surveys related work. \Cref{sec:prelim} establishes the foundational notation. \Cref{sec:method} formally defines the core constructions. \Cref{sec:illustration} provides the detailed worked example equipped with tables and charts. \Cref{sec:binsize} provides a mathematical analysis of bin size dynamics. \Cref{sec:discussion} critically discusses implications and limitations, and \Cref{sec:conclusion} concludes the study.

  % ══════════════════════════════════════════════════════════════════════════════
  % II. RELATED WORK
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Related Work}\label{sec:related}

  \subsection{Market Profile}
  Steidlmayer~\cite{steidlmayer1986market} introduced Market Profile to reveal fair value through price distributions. Dalton et~al.~\cite{dalton2007markets} extended the framework with auction‑market theory. Both rely on time‑based bars, but the underlying binning logic is data‑source agnostic.

  \subsection{Interpolation in Financial Time Series}
  High‑frequency finance frequently uses interpolation. Clark~\cite{clark1973subordinated} showed that subordinating returns to trade‑count time yields near‑Gaussian distributions. An\'{e} and Geman~\cite{ane2000order} confirmed that business‑time transformations normalise tick‑level returns. Gap‑filling on the price axis is equivalent to linear interpolation of histogram counts.

  \subsection{Footprint and Order‑Flow Analysis}
  Market microstructure theory~\cite{glosten1985bid,ohara1995market,madhavan2000market} underpins directional pressure analysis. Traditional footprint charts classify trades as buyer/seller‑initiated. Our Up/Down‑Bin Footprint obtains directional information solely from the price path, complementing volume‑based footprints.

  % ══════════════════════════════════════════════════════════════════════════════
  % III. PRELIMINARIES
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Preliminaries}\label{sec:prelim}

  \Cref{tab:notation} summarises the notation. Table~\ref{tab:data} shows the sample data used throughout.

  \begin{table}[!t]
    \centering
    \caption{Notation Summary}
    \label{tab:notation}
    \begin{tabular}{@{}cl@{}}
      \toprule
      \textbf{Symbol} & \textbf{Description} \\
      \midrule
      $N$       & Number of observations \\
      $p_i$     & Price of $i$‑th observation, $i=1,\dots,N$ \\
      $V_i$     & Tick volume of $i$‑th observation (optional) \\
      $\beta$   & Bin size (price units per bin); default $\beta=1$ \\
      $b(p)$    & Bin index of price $p$: $b(p)=\lfloor p/\beta \rfloor$ \\
      $S[k]$    & Stack count at bin $k$ \\
      $U[k],D[k]$ & Up‑bin / Down‑bin counts at bin $k$ \\
      $\delta[k]$ & Net footprint delta, $\delta[k] = U[k]-D[k]$ \\
      $K_i$     & Number of bins traversed from $p_{i-1}$ to $p_i$ (inclusive) \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{table}[!t]
    \centering
    \caption{Input Observations with Tick Volumes}
    \label{tab:data}
    \begin{tabular}{@{}cccc@{}}
      \toprule
      \textbf{Label} & \textbf{Index \#} & \textbf{Price (USD)} & \textbf{Tick Volume} \\
      \midrule
      A &  1 & 3000.914 & 432 \\
      B &  2 & 3003.837 & 141 \\
      C &  3 & 3002.432 & 221 \\
      D &  4 & 3009.892 & 1011 \\
      E &  5 & 3007.698 & 1245 \\
      F &  6 & 3009.176 & 261 \\
      G &  7 & 3003.381 & 192 \\
      H &  8 & 3004.283 & 483 \\
      I &  9 & 3003.512 & 157 \\
      J & 10 & 3003.012 & 249 \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{definition}[Price observation sequence]
    A \emph{price observation sequence} is an ordered set $\mathcal{P}=\{(t_i,\,p_i,\,V_i)\}_{i=1}^{N}$ where $t_i$ is a monotonic index and $V_i\ge0$ is an optional tick volume.
  \end{definition}

  \begin{definition}[Bin]
    Given $\beta>0$, the \emph{bin} of price $p$ is
    \begin{equation}\label{eq:bin}
      b(p) = \left\lfloor \frac{p}{\beta} \right\rfloor,
    \end{equation}
    so that all prices $k\beta \le p < (k+1)\beta$ map to bin $k$.
  \end{definition}

  \begin{definition}[Market Profile]
    A \emph{market profile} is a mapping $S:\mathbb{Z}\to\mathbb{R}_{\ge 0}$ where $S[k]$ measures the activity accumulated at bin $k$.
  \end{definition}

  % Visual overview of data
  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      \begin{axis}[
        title={Price Trajectory},
        xlabel={Index},
        ylabel={Price (USD)},
        ymin=2999, ymax=3011,
        grid=both,
        width=\columnwidth,
        height=5cm,
        name=priceline
      ]
      \addplot[mark=*, thick, blue] coordinates {
        (1,3000.914) (2,3003.837) (3,3002.432) (4,3009.892) (5,3007.698)
        (6,3009.176) (7,3003.381) (8,3004.283) (9,3003.512) (10,3003.012)
      };
      \end{axis}
    \end{tikzpicture}

    \vspace{0.3cm}

    \begin{tikzpicture}
      \begin{axis}[
        title={Tick Volume per Observation},
        xlabel={Label},
        ylabel={Volume},
        ybar,
        bar width=10pt,
        symbolic x coords={A,B,C,D,E,F,G,H,I,J},
        xtick=data,
        width=\columnwidth,
        height=5cm,
        enlarge x limits=0.1
      ]
      \addplot[fill=gray!60, draw=black] coordinates {
        (A,432) (B,141) (C,221) (D,1011) (E,1245)
        (F,261) (G,192) (H,483) (I,157) (J,249)
      };
      \end{axis}
    \end{tikzpicture}
    \caption{Top: Price trajectory across the ten observations. Bottom: Bar chart of tick volumes per observation.}
    \label{fig:dataviz}
  \end{figure}

  % ══════════════════════════════════════════════════════════════════════════════
  % IV. METHODOLOGY
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Methodology}\label{sec:method}

  \subsection{CMP: Conventional Market Profile}\label{sec:cmp}

  CMP records a stack only at the bin of each observed price:
  \begin{equation}\label{eq:cmp}
    S_{\text{CMP}}[k] \;=\; \sum_{i=1}^{N} \mathbf{1}\!\bigl[b(p_i)=k\bigr].
  \end{equation}

  \begin{algorithm}[!t]
    \caption{CMP Construction}\label{alg:cmp}
    \begin{algorithmic}[1]
      \REQUIRE $\{p_i\}_{i=1}^{N}$, $\beta$
      \ENSURE  Profile $S_{\text{CMP}}[\cdot]$
      \STATE Initialise $S_{\text{CMP}}[k]\leftarrow 0\;\forall\,k$
      \FOR{$i = 1$ \TO $N$}
        \STATE $k \leftarrow \lfloor p_i / \beta \rfloor$
        \STATE $S_{\text{CMP}}[k] \leftarrow S_{\text{CMP}}[k] + 1$
      \ENDFOR
      \RETURN $S_{\text{CMP}}$
    \end{algorithmic}
  \end{algorithm}

  \textbf{Complexity:} $\mathcal{O}(N)$.

  \subsection{GMP‑c: Gap‑Filled Market Profile (Casual / Equal‑Weight)}\label{sec:gmpc}

  GMP‑c fills every intermediate bin between consecutive observations. Let $b_i = b(p_i)$. Then
  \begin{equation}\label{eq:gmp}
    S_{\text{GMP}}[k]
    \;=\;
    \sum_{i=1}^{N}\mathbf{1}[b_i=k]
    \;+\;
    \sum_{i=2}^{N}\;
    \sum_{j=\min(b_{i-1},b_i)+1}^{\max(b_{i-1},b_i)-1}
    \mathbf{1}[j=k].
  \end{equation}
  When $|b_i - b_{i-1}| > 1$, the gap‑filling adds $|b_i - b_{i-1}|-1$ intermediate stacks.

  Conceptually, each observation $i$ (except the last) contributes one stack to every bin traversed when moving from $p_i$ to $p_{i+1}$, starting at $b_i$ and ending just before $b_{i+1}$. The last observation $p_N$ contributes only to $b_N$. Thus the set of bins touched by $p_i$ is $\mathcal{B}_i = \{b_i, b_i+d, \dots, b_{i+1}-d\}$ for $i<N$, with $d=\operatorname{sign}(b_{i+1}-b_i)$, and $\mathcal{B}_N=\{b_N\}$.

  \begin{algorithm}[!t]
    \caption{GMP‑c Construction}\label{alg:gmpc}
    \begin{algorithmic}[1]
      \REQUIRE $\{p_i\}_{i=1}^{N}$, $\beta$
      \ENSURE  Profile $S_{\text{GMP}}[\cdot]$
      \STATE Initialise $S_{\text{GMP}}[k]\leftarrow 0\;\forall\,k$
      \FOR{$i = 1$ \TO $N-1$}
        \STATE $k_{\text{from}} \leftarrow \lfloor p_i/\beta \rfloor$; $k_{\text{to}} \leftarrow \lfloor p_{i+1}/\beta \rfloor$
        \STATE $d \leftarrow \operatorname{sign}(k_{\text{to}} - k_{\text{from}})$
        \STATE $k \leftarrow k_{\text{from}}$
        \WHILE{$k \neq k_{\text{to}}$}
          \STATE $S_{\text{GMP}}[k] \leftarrow S_{\text{GMP}}[k] + 1$
          \STATE $k \leftarrow k + d$
        \ENDWHILE
      \ENDFOR
      \STATE $S_{\text{GMP}}[\lfloor p_N/\beta \rfloor] \leftarrow S_{\text{GMP}}[\lfloor p_N/\beta \rfloor] + 1$
      \RETURN $S_{\text{GMP}}$
    \end{algorithmic}
  \end{algorithm}

  \textbf{Complexity:} $\mathcal{O}(N + D)$, where $D = \sum_{i=2}^{N} |b_i - b_{i-1}|$ is the cumulative bin displacement.

  \subsection{GMP‑ud: Up/Down‑Bin Footprint Profile}\label{sec:gmpud}

  While GMP‑c counts equal‑weight contributions, GMP‑ud classifies each bin traversal by direction. For each consecutive pair $(p_{i-1}, p_i)$, the bins on the path from $b_{i-1}$ (exclusive) to $b_i$ (inclusive) increment $U$ if $p_i > p_{i-1}$, otherwise $D$. The net footprint is $\delta[k] = U[k] - D[k]$.

  \begin{algorithm}[!t]
    \caption{Up/Down‑Bin Footprint (GMP‑ud)}\label{alg:updown}
    \begin{algorithmic}[1]
      \REQUIRE $\{p_i\}_{i=1}^{N}$, $\beta$
      \ENSURE  $U[\cdot], D[\cdot], \delta[\cdot]$
      \STATE Initialise $U[k]\leftarrow0$, $D[k]\leftarrow0\;\forall\,k$
      \FOR{$i = 2$ \TO $N$}
        \STATE $k_{\text{from}} \leftarrow \lfloor p_{i-1}/\beta \rfloor$; $k_{\text{to}} \leftarrow \lfloor p_i/\beta \rfloor$
        \STATE $d \leftarrow \operatorname{sign}(k_{\text{to}} - k_{\text{from}})$
        \STATE $k \leftarrow k_{\text{from}} + d$
        \IF{$p_i > p_{i-1}$}
          \WHILE{$k \neq k_{\text{to}} + d$}
            \STATE $U[k] \leftarrow U[k] + 1$; $k \leftarrow k + d$
          \ENDWHILE
        \ELSE
          \WHILE{$k \neq k_{\text{to}} + d$}
            \STATE $D[k] \leftarrow D[k] + 1$; $k \leftarrow k + d$
          \ENDWHILE
        \ENDIF
      \ENDFOR
      \FORALL{$k$}
        \STATE $\delta[k] \leftarrow U[k] - D[k]$
      \ENDFOR
      \RETURN $U,\,D,\,\delta$
    \end{algorithmic}
  \end{algorithm}

  \subsection{GTMP‑h: Holistic Tick‑Volume Amplified Profile}\label{sec:gtmph}

  When each observation $i$ carries a tick volume $V_i$, GTMP‑h assigns the full volume to every bin in the forward path $\mathcal{B}_i$ defined earlier. Formally,
  \begin{equation}\label{eq:gtmph}
    S_{\text{GTMP‑h}}[k] = \sum_{i=1}^{N} V_i \cdot \mathbf{1}[k \in \mathcal{B}_i].
  \end{equation}
  Thus the total profile value at bin $k$ is the sum of tick volumes of all observations whose path crosses that bin.

  \begin{algorithm}[!t]
    \caption{GTMP‑h Construction}\label{alg:gtmph}
    \begin{algorithmic}[1]
      \REQUIRE $\{p_i\}_{i=1}^{N}$, $\{V_i\}_{i=1}^{N}$, $\beta$
      \ENSURE  Profile $S_h[\cdot]$
      \STATE Initialise $S_h[k]\leftarrow0\;\forall\,k$
      \FOR{$i = 1$ \TO $N-1$}
        \STATE $k_{\text{from}} \leftarrow \lfloor p_i/\beta \rfloor$; $k_{\text{to}} \leftarrow \lfloor p_{i+1}/\beta \rfloor$
        \STATE $d \leftarrow \operatorname{sign}(k_{\text{to}} - k_{\text{from}})$
        \STATE $k \leftarrow k_{\text{from}}$
        \WHILE{$k \neq k_{\text{to}}$}
          \STATE $S_h[k] \leftarrow S_h[k] + V_i$
          \STATE $k \leftarrow k + d$
        \ENDWHILE
      \ENDFOR
      \STATE $S_h[\lfloor p_N/\beta \rfloor] \leftarrow S_h[\lfloor p_N/\beta \rfloor] + V_N$
      \RETURN $S_h$
    \end{algorithmic}
  \end{algorithm}

  \textbf{Complexity:} identical to GMP‑c, $\mathcal{O}(N+D)$.

  \subsection{GTMP‑d: Division Tick‑Volume Amplified Profile}\label{sec:gtmpd}

  GTMP‑d distributes each $V_i$ evenly across the bins in $\mathcal{B}_i$. For $i<N$, the number of bins in the path is $K_i = |b_{i+1} - b_i|$; for $i=N$, $K_N=1$. Then
  \begin{equation}\label{eq:gtmpd}
    S_{\text{GTMP‑d}}[k] = \sum_{i=1}^{N} \frac{V_i}{K_i} \cdot \mathbf{1}[k \in \mathcal{B}_i].
  \end{equation}
  This yields a volume‑density profile where each bin's value is the sum of proportionate volume contributions.

  \begin{algorithm}[!t]
    \caption{GTMP‑d Construction}\label{alg:gtmpd}
    \begin{algorithmic}[1]
      \REQUIRE $\{p_i\}_{i=1}^{N}$, $\{V_i\}_{i=1}^{N}$, $\beta$
      \ENSURE  Profile $S_d[\cdot]$
      \STATE Initialise $S_d[k]\leftarrow0\;\forall\,k$
      \FOR{$i = 1$ \TO $N-1$}
        \STATE $k_{\text{from}} \leftarrow \lfloor p_i/\beta \rfloor$; $k_{\text{to}} \leftarrow \lfloor p_{i+1}/\beta \rfloor$
        \STATE $K \leftarrow |k_{\text{to}} - k_{\text{from}}|$
        \STATE $d \leftarrow \operatorname{sign}(k_{\text{to}} - k_{\text{from}})$
        \STATE $v \leftarrow V_i / K$
        \STATE $k \leftarrow k_{\text{from}}$
        \WHILE{$k \neq k_{\text{to}}$}
          \STATE $S_d[k] \leftarrow S_d[k] + v$
          \STATE $k \leftarrow k + d$
        \ENDWHILE
      \ENDFOR
      \STATE $S_d[\lfloor p_N/\beta \rfloor] \leftarrow S_d[\lfloor p_N/\beta \rfloor] + V_N$
      \RETURN $S_d$
    \end{algorithmic}
  \end{algorithm}

  \textbf{Complexity:} $\mathcal{O}(N+D)$.

  % ══════════════════════════════════════════════════════════════════════════════
  % V. ILLUSTRATION WITH A 10‑POINT SERIES
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Illustration: Ten‑Point Price Series}\label{sec:illustration}

  We apply all methods to the ten‑point series of Table~\ref{tab:data} with bin size $\beta=1$. The bin range covers 3000 to 3009 (bins 1–10).

  \subsection{CMP Profile}
  Table~\ref{tab:cmp} and Figure~\ref{fig:cmp} show the conventional profile. Four bins are empty.

  \begin{table}[!t]
    \centering
    \caption{CMP Profile ($\beta=1$)}
    \label{tab:cmp}
    \begin{tabular}{@{}ccccc@{}}
      \toprule
      \textbf{Bin} & \textbf{Range} & \textbf{Group} & \textbf{Stacks} \\
      \midrule
      3000 & 3000–3001 & A      & 1 \\
      3001 & 3001–3002 & β€”      & 0 \\
      3002 & 3002–3003 & C      & 1 \\
      3003 & 3003–3004 & BGIJ   & 4 \\
      3004 & 3004–3005 & H      & 1 \\
      3005 & 3005–3006 & β€”      & 0 \\
      3006 & 3006–3007 & β€”      & 0 \\
      3007 & 3007–3008 & E      & 1 \\
      3008 & 3008–3009 & β€”      & 0 \\
      3009 & 3009–3010 & DF     & 2 \\
      \midrule
      \multicolumn{3}{c}{\textbf{Total}} & \textbf{10} \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      \begin{axis}[
        title={CMP Profile},
        xbar stacked,
        bar width=10pt,
        xlabel={Stacks},
        ylabel={Price (USD)},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=6,
        enlarge y limits=0.08,
        width=\columnwidth,
        height=6cm,
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
      \addplot+[fill=colorA, draw=black] coordinates {(1,3000) [A] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (1,3002) [C] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (1,3009) [D]};
      \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (1,3007) [E] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (1,3009) [F]};
      \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (1,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}
    \end{tikzpicture}
    \caption{CMP profile: letters A–J coloured by observation; four bins empty.}
    \label{fig:cmp}
  \end{figure}

  \subsection{GMP‑c Profile}
  Gap‑filling produces the continuous profile in Table~\ref{tab:gmpc} and Figure~\ref{fig:gmpc}. Every bin now contains at least one stack.

  \begin{table}[!t]
    \centering
    \caption{GMP‑c Profile ($\beta=1$)}
    \label{tab:gmpc}
    \begin{tabular}{@{}ccccc@{}}
      \toprule
      \textbf{Bin} & \textbf{Range} & \textbf{Group} & \textbf{Stacks} \\
      \midrule
      3000 & 3000–3001 & A      & 1 \\
      3001 & 3001–3002 & A      & 1 \\
      3002 & 3002–3003 & AC     & 2 \\
      3003 & 3003–3004 & BCGIJ  & 5 \\
      3004 & 3004–3005 & CFH    & 3 \\
      3005 & 3005–3006 & CF     & 2 \\
      3006 & 3006–3007 & CF     & 2 \\
      3007 & 3007–3008 & CEF    & 3 \\
      3008 & 3008–3009 & CDEF   & 4 \\
      3009 & 3009–3010 & DF     & 2 \\
      \midrule
      \multicolumn{3}{c}{\textbf{Total}} & \textbf{25} \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      \begin{axis}[
        title={GMP‑c Profile},
        xbar stacked,
        bar width=10pt,
        xlabel={Stacks},
        ylabel={Price (USD)},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=7,
        enlarge y limits=0.08,
        width=\columnwidth,
        height=6cm,
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
      \addplot+[fill=colorA, draw=black] coordinates {(1,3000) [A] (1,3001) [A] (1,3002) [A] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (1,3002) [C] (1,3003) [C] (1,3004) [C] (1,3005) [C] (1,3006) [C] (1,3007) [C] (1,3008) [C] (0,3009) []};
      \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (1,3008) [D] (1,3009) [D]};
      \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (1,3007) [E] (1,3008) [E] (0,3009) []};
      \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (1,3004) [F] (1,3005) [F] (1,3006) [F] (1,3007) [F] (1,3008) [F] (1,3009) [F]};
      \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (1,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (1,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}
    \end{tikzpicture}
    \caption{GMP‑c profile: letters extend along their forward paths; no gaps.}
    \label{fig:gmpc}
  \end{figure}

  \subsection{GMP‑ud Profile}
  Table~\ref{tab:updown} and Figure~\ref{fig:updown} give the directional breakdown. Positive delta indicates net upward pressure, negative delta net downward pressure.

  \begin{table}[!t]
    \centering
    \caption{Up/Down‑Bin Footprint ($\beta=1$)}
    \label{tab:updown}
    \begin{tabular}{@{}cccrrr@{}}
      \toprule
      \textbf{Bin} & \textbf{Range} & \textbf{Group} & \textbf{Down} & \textbf{Up} & \textbf{$\delta$} \\
      \midrule
      3000 & 3000–3001 & A   & 0 & 0 &  0 \\
      3001 & 3001–3002 & A   & 0 & 1 & +1 \\
      3002 & 3002–3003 & AC  & 1 & 1 &  0 \\
      3003 & 3003–3004 & BGIJ& 3 & 2 & -1 \\
      3004 & 3004–3005 & CFH & 1 & 2 & +1 \\
      3005 & 3005–3006 & CF  & 1 & 1 &  0 \\
      3006 & 3006–3007 & CF  & 1 & 1 &  0 \\
      3007 & 3007–3008 & CEF & 2 & 1 & -1 \\
      3008 & 3008–3009 & CDEF& 2 & 2 &  0 \\
      3009 & 3009–3010 & DF  & 0 & 2 & +2 \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      \begin{axis}[
        title={Up/Down‑Bin Footprint},
        xbar,
        xlabel={Count (Down / Up)},
        ylabel={Price (USD)},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=-4, xmax=4,
        bar width=6pt,
        width=\columnwidth,
        height=5cm,
        enlarge y limits=0.08,
        legend style={at={(0.5,-0.15)}, anchor=north, legend columns=2}
      ]
      \addplot[fill=red!60, draw=black] coordinates {
        (0,3000) (0,3001) (-1,3002) (-3,3003) (-1,3004)
        (-1,3005) (-1,3006) (-2,3007) (-2,3008) (0,3009)
      };
      \addplot[fill=teal!60, draw=black] coordinates {
        (0,3000) (1,3001) (1,3002) (2,3003) (2,3004)
        (1,3005) (1,3006) (1,3007) (2,3008) (2,3009)
      };
      \legend{Down bins, Up bins}
      \end{axis}
    \end{tikzpicture}
    \caption{Directional footprint: red = downward pressure, teal = upward pressure.}
    \label{fig:updown}
  \end{figure}

  \subsection{GTMP‑h Profile}
  Table~\ref{tab:gtmph} and Figure~\ref{fig:gtmph} present the holistic tick‑volume profile. Each bin’s total equals the sum of full tick volumes of all observations that traverse it.

  \begin{table}[!t]
    \centering
    \caption{GTMP‑h Profile ($\beta=1$)}
    \label{tab:gtmph}
    \begin{tabular}{@{}ccccc@{}}
      \toprule
      \textbf{Bin} & \textbf{Range} & \textbf{Group} & \textbf{Tick Volume} \\
      \midrule
      3000 & 3000–3001 & A      & 432 \\
      3001 & 3001–3002 & A      & 432 \\
      3002 & 3002–3003 & AC     & 653 \\
      3003 & 3003–3004 & BCGIJ  & 960 \\
      3004 & 3004–3005 & CFH    & 965 \\
      3005 & 3005–3006 & CF     & 482 \\
      3006 & 3006–3007 & CF     & 482 \\
      3007 & 3007–3008 & CEF    & 1727 \\
      3008 & 3008–3009 & CDEF   & 2738 \\
      3009 & 3009–3010 & DF     & 1272 \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      \begin{axis}[
        title={GTMP‑h Profile},
        xbar stacked,
        bar width=10pt,
        xlabel={Volume},
        ylabel={Price (USD)},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=3500,
        enlarge y limits=0.08,
        width=\columnwidth,
        height=6cm,
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
      \addplot+[fill=colorA, draw=black] coordinates {(432,3000) [A] (432,3001) [A] (432,3002) [A] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (141,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (221,3002) [C] (221,3003) [C] (221,3004) [C] (221,3005) [C] (221,3006) [C] (221,3007) [C] (221,3008) [C] (0,3009) []};
      \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (1011,3008) [D] (1011,3009) [D]};
      \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (1245,3007) [E] (1245,3008) [E] (0,3009) []};
      \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (261,3004) [F] (261,3005) [F] (261,3006) [F] (261,3007) [F] (261,3008) [F] (261,3009) [F]};
      \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (192,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (483,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (157,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (249,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}
    \end{tikzpicture}
    \caption{GTMP‑h profile: full tick volume repeated on every bin the observation touches.}
    \label{fig:gtmph}
  \end{figure}

  \subsection{GTMP‑d Profile}
  Table~\ref{tab:gtmpd} and Figure~\ref{fig:gtmpd} show the division mode. Volumes are split evenly among the traversed bins, preventing excessive accumulation on long jumps.

  \begin{table}[!t]
    \centering
    \caption{GTMP‑d Profile ($\beta=1$)}
    \label{tab:gtmpd}
    \begin{tabular}{@{}ccccc@{}}
      \toprule
      \textbf{Bin} & \textbf{Range} & \textbf{Group} & \textbf{Tick Volume (distr.)} \\
      \midrule
      3000 & 3000–3001 & A      & 144.00 \\
      3001 & 3001–3002 & A      & 144.00 \\
      3002 & 3002–3003 & AC     & 175.57 \\
      3003 & 3003–3004 & BCGIJ  & 770.57 \\
      3004 & 3004–3005 & CFH    & 558.07 \\
      3005 & 3005–3006 & CF     & 75.07 \\
      3006 & 3006–3007 & CF     & 75.07 \\
      3007 & 3007–3008 & CEF    & 697.57 \\
      3008 & 3008–3009 & CDEF   & 1203.07 \\
      3009 & 3009–3010 & DF     & 549.00 \\
      \bottomrule
    \end{tabular}
  \end{table}

  \begin{figure}[!t]
    \centering
    \begin{tikzpicture}
      \begin{axis}[
        title={GTMP‑d Profile},
        xbar stacked,
        bar width=10pt,
        xlabel={Volume (distributed)},
        ylabel={Price (USD)},
        ytick={3000,3001,...,3009},
        ymin=2999.5, ymax=3009.5,
        xmin=0, xmax=1500,
        enlarge y limits=0.08,
        width=\columnwidth,
        height=6cm,
        point meta=explicit symbolic,
        nodes near coords,
        nodes near coords style={font=\tiny},
        every node near coord/.append style={anchor=center, color=black}
      ]
      \addplot+[fill=colorA, draw=black] coordinates {(144,3000) [A] (144,3001) [A] (144,3002) [A] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorB, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (141,3003) [B] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorC, draw=black] coordinates {(0,3000) [] (0,3001) [] (31.57,3002) [C] (31.57,3003) [C] (31.57,3004) [C] (31.57,3005) [C] (31.57,3006) [C] (31.57,3007) [C] (31.57,3008) [C] (0,3009) []};
      \addplot+[fill=colorD, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (505.5,3008) [D] (505.5,3009) [D]};
      \addplot+[fill=colorE, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (0,3004) [] (0,3005) [] (0,3006) [] (622.5,3007) [E] (622.5,3008) [E] (0,3009) []};
      \addplot+[fill=colorF, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (43.5,3004) [F] (43.5,3005) [F] (43.5,3006) [F] (43.5,3007) [F] (43.5,3008) [F] (43.5,3009) [F]};
      \addplot+[fill=colorG, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (192,3003) [G] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorH, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (0,3003) [] (483,3004) [H] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorI, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (157,3003) [I] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \addplot+[fill=colorJ, draw=black] coordinates {(0,3000) [] (0,3001) [] (0,3002) [] (249,3003) [J] (0,3004) [] (0,3005) [] (0,3006) [] (0,3007) [] (0,3008) [] (0,3009) []};
      \end{axis}
    \end{tikzpicture}
    \caption{GTMP‑d profile: volume evenly split across traversed bins.}
    \label{fig:gtmpd}
  \end{figure}

  % ══════════════════════════════════════════════════════════════════════════════
  % VI. BIN‑SIZE ANALYSIS
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Effect of Bin Size on Profile Resolution}\label{sec:binsize}

  The bin size $\beta$ directly controls profile granularity. For a price displacement $|\Delta p|$, the number of bins traversed is
  \begin{equation}\label{eq:bins_beta}
    K(\beta) = \left| \left\lfloor \frac{p_i}{\beta} \right\rfloor - \left\lfloor \frac{p_{i-1}}{\beta} \right\rfloor \right| + 1.
  \end{equation}

  \begin{proposition}[Bin‑count scaling]\label{prop:scaling}
    For fixed $\Delta p$ and $\beta_1 > \beta_2 > 0$,
    \begin{equation}\label{eq:scaling}
      K(\beta_2) \ge \left\lfloor \frac{\beta_1}{\beta_2} \right\rfloor \bigl(K(\beta_1)-1\bigr) + 1.
    \end{equation}
  \end{proposition}

  \begin{proof}
    Write $\Delta p = (K(\beta_1)-1)\beta_1 + r_1$ with $0 \le r_1 < \beta_1$. Then
    $K(\beta_2) = \lfloor \Delta p/\beta_2 \rfloor + 1 \ge \lfloor (K(\beta_1)-1)\beta_1/\beta_2 \rfloor + 1 \ge \lfloor \beta_1/\beta_2 \rfloor (K(\beta_1)-1) + 1$.
  \end{proof}

  \Cref{tab:binsize} illustrates the scaling for $\Delta p = 10$. CMP always occupies exactly two bins regardless of $\beta$, while GMP (and its volume‑amplified variants) gains resolution inversely with $\beta$.

  \begin{table}[!t]
    \centering
    \caption{Bin count vs.\ $\beta$ for $\Delta p = 10$}
    \label{tab:binsize}
    \begin{tabular}{@{}cccc@{}}
      \toprule
      $\beta$ & $K(\beta)$ & CMP bins & GMP bins \\
      \midrule
      2.0  & 6   & 2 & 6  \\
      1.0  & 11  & 2 & 11 \\
      0.5  & 21  & 2 & 21 \\
      0.25 & 41  & 2 & 41 \\
      0.1  & 101 & 2 & 101 \\
      \bottomrule
    \end{tabular}
  \end{table}

  % ══════════════════════════════════════════════════════════════════════════════
  % VII. DISCUSSION
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Discussion}\label{sec:discussion}

  \subsection{Advantages}
  The proposed methodologies offer several distinct advantages. Primarily, they generate a \textbf{gap‑free profile} where all traversed price levels are accurately represented, causing the empty bins characteristic of CMP to vanish completely. In terms of \textbf{universality}, the method natively applies to any ordered price sequence, including raw ticks, time-based candles, or irregular data samples. Furthermore, the \textbf{directional classification} within GMP‑ud successfully reveals net buying or selling pressure without requiring external order‑flow data. Additionally, \textbf{tick‑volume integration} through GTMP‑h and GTMP‑d enriches the overall profile with traded size; the holistic variant preserves volume inventory, whereas the division variant accurately illustrates volume density. The framework also features \textbf{tunable resolution}, as the bin size parameter $\beta$ adjusts independently of the underlying data frequency. Computationally, the framework ensures \textbf{efficient computation}, with all algorithmic variants operating in $\mathcal{O}(N+D)$ time, making them highly suitable for real-time, high‑frequency data streams.

  \subsection{Limitations}
  Despite these robust advantages, certain limitations must be carefully acknowledged. A core limitation is that \textbf{continuous traversal is assumed}; true price gaps resulting from market closures or extreme illiquidity may be synthetically filled by interpolation. Implementing a threshold filter for large temporal gaps could effectively mitigate this issue. Moreover, a large \textbf{cumulative displacement} $D$ proportionally increases the computational load, suggesting that adaptive sampling or decimation of unusually long, unidirectional moves might be necessary in extreme edge cases. Regarding \textbf{volume interpretation}, GTMP‑h and GTMP‑d represent two methodological extremesβ€”full repetition versus full dilution. Developing a hybrid scheme that employs partial volume repetition could provide a more nuanced structural representation. Finally, it must be noted that this approach is \textbf{not a full volume‑at‑price profile}. While our method significantly enhances pure traversal profiles by integrating tick volume, it does not aim to replace dedicated, order-book derived volume‑profile algorithms. Combining our interpolated gap-filling constructions directly with Level II order‑book data remains an important and promising avenue for future research.

  % ══════════════════════════════════════════════════════════════════════════════
  % VIII. CONCLUSION
  % ══════════════════════════════════════════════════════════════════════════════
  \section{Conclusion}\label{sec:conclusion}

  We have presented a unified family of gap‑filled market profiles. GMP‑c universally interpolates intermediate price bins, GMP‑ud adds directional classification, and GTMP‑h/d incorporate tick volume through holistic or proportional distribution. All constructions are formally specified, analysed, and illustrated on a ten‑point example with colour‑coded charts. The methods close the gaps inherent in conventional profiles and provide a richer, more complete picture of price traversal, applicable across any ordered price sequence. Future work may explore weighted interpolation and integration with granular order‑book data.

  % ══════════════════════════════════════════════════════════════════════════════
  % APPENDIX
  % ══════════════════════════════════════════════════════════════════════════════
  \onecolumn
  \appendices
  \section{Complete Tabular Data and Exact CSV Output}
  This appendix details the exact tabular data generated and utilised throughout the study. The data corresponds precisely to the input observations and the resulting algorithmic outputs for the Conventional Market Profile (CMP), Gap-Filled Market Profile casual mode (GMP-c), Up/Down-Bin Footprint mode (GMP-ud), and the tick-volume amplified extensions (GTMP-h and GTMP-d) at a defined bin size of $\beta=1.000$.

  \vspace{1em}
  \begin{center}
  \textbf{Table A1: Input Observations / Data Points}
  \vspace{0.5em}

  \begin{tabular}{@{}ccc@{}}
  \toprule
  \textbf{Label} & \textbf{Index \#} & \textbf{Price} \\
  \midrule
  A & 1 & 3000.914 \\
  B & 2 & 3003.837 \\
  C & 3 & 3002.432 \\
  D & 4 & 3009.892 \\
  E & 5 & 3007.698 \\
  F & 6 & 3009.176 \\
  G & 7 & 3003.381 \\
  H & 8 & 3004.283 \\
  I & 9 & 3003.512 \\
  J & 10 & 3003.012 \\
  \bottomrule
  \end{tabular}
  \end{center}

  \vspace{2em}
  \begin{center}
  \textbf{Table A2: Conventional Market Profile (CMP) | with Binsize = 1.000}
  \vspace{0.5em}

  \begin{tabular}{@{}ccccc@{}}
  \toprule
  \textbf{Bin} & \textbf{From} & \textbf{Until} & \textbf{Group} & \textbf{Stacks} \\
  \midrule
  1 & 3000 & 3001 & A & 1 \\
  2 & 3001 & 3002 & & 0 \\
  3 & 3002 & 3003 & C & 1 \\
  4 & 3003 & 3004 & BGIJ & 4 \\
  5 & 3004 & 3005 & H & 1 \\
  6 & 3005 & 3006 & & 0 \\
  7 & 3006 & 3007 & & 0 \\
  8 & 3007 & 3008 & E & 1 \\
  9 & 3008 & 3009 & & 0 \\
  10 & 3009 & 3010 & DF & 2 \\
  \bottomrule
  \end{tabular}
  \end{center}

  \vspace{2em}
  \begin{center}
  \textbf{Table A3: (GMP-c) Gap-filled Market Profile (casual `c` mode) | with Binsize = 1.000}
  \vspace{0.5em}

  \begin{tabular}{@{}ccccc@{}}
  \toprule
  \textbf{Bin} & \textbf{From} & \textbf{Until} & \textbf{Group} & \textbf{Stacks} \\
  \midrule
  1 & 3000 & 3001 & A & 1 \\
  2 & 3001 & 3002 & A & 1 \\
  3 & 3002 & 3003 & AC & 2 \\
  4 & 3003 & 3004 & BCGIJ & 5 \\
  5 & 3004 & 3005 & CFH & 3 \\
  6 & 3005 & 3006 & CF & 2 \\
  7 & 3006 & 3007 & CF & 2 \\
  8 & 3007 & 3008 & CEF & 3 \\
  9 & 3008 & 3009 & CDEF & 4 \\
  10 & 3009 & 3010 & DF & 2 \\
  \bottomrule
  \end{tabular}
  \end{center}

  \vspace{2em}
  \begin{center}
  \textbf{Table A4: (GMP-ud) Gap-filled Market Profile (up/down-bin `ud` mode) | with Binsize = 1.000}
  \vspace{0.5em}

  \begin{tabular}{@{}ccccccc@{}}
  \toprule
  \textbf{Bin} & \textbf{From} & \textbf{Until} & \textbf{Group} & \textbf{Down Stack} & \textbf{Up Stack} & \textbf{Delta Stack} \\
  \midrule
  1 & 3000 & 3001 & A & 0 & 0 & 0 \\
  2 & 3001 & 3002 & A & 0 & 1 & 1 \\
  3 & 3002 & 3003 & AC & 1 & 1 & 0 \\
  4 & 3003 & 3004 & BCGIJ & 3 & 2 & -1 \\
  5 & 3004 & 3005 & CFH & 1 & 2 & 1 \\
  6 & 3005 & 3006 & CF & 1 & 1 & 0 \\
  7 & 3006 & 3007 & CF & 1 & 1 & 0 \\
  8 & 3007 & 3008 & CEF & 2 & 1 & -1 \\
  9 & 3008 & 3009 & CDEF & 2 & 2 & 0 \\
  10 & 3009 & 3010 & DF & 0 & 2 & 2 \\
  \bottomrule
  \end{tabular}
  \end{center}

  \vspace{2em}
  \begin{center}
  \textbf{Table A5: Input Observations / Data Points and Tick Volume}
  \vspace{0.5em}

  \begin{tabular}{@{}cccc@{}}
  \toprule
  \textbf{Label} & \textbf{Index \#} & \textbf{Price} & \textbf{Tick Volume} \\
  \midrule
  A & 1 & 3000.914 & 432 \\
  B & 2 & 3003.837 & 141 \\
  C & 3 & 3002.432 & 221 \\
  D & 4 & 3009.892 & 1011 \\
  E & 5 & 3007.698 & 1245 \\
  F & 6 & 3009.176 & 261 \\
  G & 7 & 3003.381 & 192 \\
  H & 8 & 3004.283 & 483 \\
  I & 9 & 3003.512 & 157 \\
  J & 10 & 3003.012 & 249 \\
  \bottomrule
  \end{tabular}
  \end{center}

  \vspace{2em}
  \begin{center}
  \textbf{Table A6: (GTMP-h) Gap-filled Tick-volume Amplified Market Profile (holistic `h` mode) | with Binsize = 1.000}
  \vspace{0.5em}

  \begin{tabular}{@{}cccccc@{}}
  \toprule
  \textbf{Bin} & \textbf{From} & \textbf{Until} & \textbf{Group} & \textbf{Tick Volume} & \textbf{Stacks} \\
  \midrule
  1 & 3000 & 3001 & A & 432 & 432 \\
  2 & 3001 & 3002 & A & 432 & 432 \\
  3 & 3002 & 3003 & AC & 432 + 221 & 653 \\
  4 & 3003 & 3004 & BCGIJ & 141 + 221 + 192 + 157 + 249 & 960 \\
  5 & 3004 & 3005 & CFH & 221 + 261 + 483 & 965 \\
  6 & 3005 & 3006 & CF & 221 + 261 & 482 \\
  7 & 3006 & 3007 & CF & 221 + 261 & 482 \\
  8 & 3007 & 3008 & CEF & 221 + 1245 + 261 & 1727 \\
  9 & 3008 & 3009 & CDEF & 221 + 1011 + 1245 + 261 & 2738 \\
  10 & 3009 & 3010 & DF & 1011 + 261 & 1272 \\
  \bottomrule
  \end{tabular}
  \end{center}

  \vspace{2em}
  \begin{center}
  \textbf{Table A7: (GTMP-d) Gap-filled Tick-volume Amplified Market Profile (division `d` mode) | with Binsize = 1.000}
  \vspace{0.5em}

  \begin{tabular}{@{}cccccc@{}}
  \toprule
  \textbf{Bin} & \textbf{From} & \textbf{Until} & \textbf{Group} & \textbf{Tick Volume} & \textbf{Stacks} \\
  \midrule
  1 & 3000 & 3001 & A & (432/3) & 144 \\
  2 & 3001 & 3002 & A & (432/3) & 144 \\
  3 & 3002 & 3003 & AC & (432/3) + (221/7) & 175.571429 \\
  4 & 3003 & 3004 & BCGIJ & (141/1) + (221/7) + (192/1) + (157/1) + (249/1) & 770.571429 \\
  5 & 3004 & 3005 & CFH & (221/7) + (261/6) + (483/1) & 558.071429 \\
  6 & 3005 & 3006 & CF & (221/7) + (261/6) & 75.0714286 \\
  7 & 3006 & 3007 & CF & (221/7) + (261/6) & 75.0714286 \\
  8 & 3007 & 3008 & CEF & (221/7) + (1245/2) + (261/6) & 697.571429 \\
  9 & 3008 & 3009 & CDEF & (221/7) + (1011/2) + (1245/2) + (261/6) & 1203.07143 \\
  10 & 3009 & 3010 & DF & (1011/2) + (261/6) & 549 \\
  \bottomrule
  \end{tabular}
  \end{center}
  \twocolumn

  % ══════════════════════════════════════════════════════════════════════════════
  % REFERENCES
  % ══════════════════════════════════════════════════════════════════════════════
  \begin{thebibliography}{10}

  \bibitem{steidlmayer1986market}
  J.~Steidlmayer, \emph{Market Profile}, Chicago Board of Trade, 1986.

  \bibitem{dalton2007markets}
  J.~F.~Dalton, E.~T.~Jones, and R.~B.~Dalton, \emph{Markets in Profile: Profiting from the Auction Process}, John Wiley \& Sons, 2007.

  \bibitem{clark1973subordinated}
  P.~K.~Clark, ``A subordinated stochastic process model with finite variance for speculative prices,'' \emph{Econometrica}, vol.~41, no.~1, pp.~135--155, 1973.

  \bibitem{ane2000order}
  T.~An\'{e} and H.~Geman, ``Order flow, transaction clock, and normality of asset returns,'' \emph{The Journal of Finance}, vol.~55, no.~5, pp.~2259--2284, 2000.

  \bibitem{glosten1985bid}
  L.~R.~Glosten and P.~R.~Milgrom, ``Bid, ask and transaction prices in a specialist market with heterogeneously informed traders,'' \emph{Journal of Financial Economics}, vol.~14, no.~1, pp.~71--100, 1985.

  \bibitem{ohara1995market}
  M.~O'Hara, \emph{Market Microstructure Theory}, Blackwell, 1995.

  \bibitem{madhavan2000market}
  A.~Madhavan, ``Market microstructure: A survey,'' \emph{Journal of Financial Markets}, vol.~3, no.~3, pp.~205--258, 2000.

  \end{thebibliography}

  \end{document}