-
Notifications
You must be signed in to change notification settings - Fork 2
/
autocomplete.php
2453 lines (2287 loc) · 79.6 KB
/
autocomplete.php
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
<?php
/**
* @noinspection UnknownInspectionInspection
* @noinspection DuplicatedCode
* @noinspection SpellCheckingInspection
* @noinspection PhpUnusedParameterInspection
* @noinspection PhpUnused
*/
const EXCEPTION_MESSAGE = 'You should not autoload or include file `autcomplete.php`! This file exists only for IDE auto complete function.';
const TRADER_MA_TYPE_SMA = 0;
const TRADER_MA_TYPE_EMA = 1;
const TRADER_MA_TYPE_WMA = 2;
const TRADER_MA_TYPE_DEMA = 3;
const TRADER_MA_TYPE_TEMA = 4;
const TRADER_MA_TYPE_TRIMA = 5;
const TRADER_MA_TYPE_KAMA = 6;
const TRADER_MA_TYPE_MAMA = 7;
const TRADER_MA_TYPE_T3 = 8;
const TRADER_REAL_MIN = -3.0000000000000002E+37;
const TRADER_REAL_MAX = 3.0000000000000002E+37;
const TRADER_FUNC_UNST_ADX = 0;
const TRADER_FUNC_UNST_ADXR = 1;
const TRADER_FUNC_UNST_ATR = 2;
const TRADER_FUNC_UNST_CMO = 3;
const TRADER_FUNC_UNST_DX = 4;
const TRADER_FUNC_UNST_EMA = 5;
const TRADER_FUNC_UNST_HT_DCPERIOD = 6;
const TRADER_FUNC_UNST_HT_DCPHASE = 7;
const TRADER_FUNC_UNST_HT_PHASOR = 8;
const TRADER_FUNC_UNST_HT_TRENDLINE = 10;
const TRADER_FUNC_UNST_HT_TRENDMODE = 11;
const TRADER_FUNC_UNST_KAMA = 12;
const TRADER_FUNC_UNST_MAMA = 13;
const TRADER_FUNC_UNST_MFI = 14;
const TRADER_FUNC_UNST_MINUS_DI = 15;
const TRADER_FUNC_UNST_MINUS_DM = 16;
const TRADER_FUNC_UNST_NATR = 17;
const TRADER_FUNC_UNST_PLUS_DI = 18;
const TRADER_FUNC_UNST_PLUS_DM = 19;
const TRADER_FUNC_UNST_RSI = 20;
const TRADER_FUNC_UNST_STOCHRSI = 21;
const TRADER_FUNC_UNST_T3 = 22;
const TRADER_FUNC_UNST_ALL = 23;
const TRADER_FUNC_UNST_NONE = -1;
const TRADER_COMPATIBILITY_DEFAULT = 0;
const TRADER_COMPATIBILITY_METASTOCK = 1;
const TRADER_ERR_SUCCESS = 0;
const TRADER_ERR_LIB_NOT_INITIALIZE = 1;
const TRADER_ERR_BAD_PARAM = 2;
const TRADER_ERR_ALLOC_ERR = 3;
const TRADER_ERR_GROUP_NOT_FOUND = 4;
const TRADER_ERR_FUNC_NOT_FOUND = 5;
const TRADER_ERR_INVALID_HANDLE = 6;
const TRADER_ERR_INVALID_PARAM_HOLDER = 7;
const TRADER_ERR_INVALID_PARAM_HOLDER_TYPE = 8;
const TRADER_ERR_INVALID_PARAM_FUNCTION = 9;
const TRADER_ERR_INPUT_NOT_ALL_INITIALIZE = 10;
const TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE = 11;
const TRADER_ERR_OUT_OF_RANGE_START_INDEX = 12;
const TRADER_ERR_OUT_OF_RANGE_END_INDEX = 13;
const TRADER_ERR_INVALID_LIST_TYPE = 14;
const TRADER_ERR_BAD_OBJECT = 15;
const TRADER_ERR_NOT_SUPPORTED = 16;
const TRADER_ERR_INTERNAL_ERROR = 5000;
const TRADER_ERR_UNKNOWN_ERROR = 65535;
/**
* Calculates the arc cosine for each value in real and returns the resulting array.
*
* @param array $real Array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_acos(array $real): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Chaikin A/D Line
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param array $volume Volume traded, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_ad(array $high, array $low, array $close, array $volume): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Calculates the vector addition of real0 to real1 and returns the resulting vector.
*
* @param array $real0 Array of real values.
* @param array $real1 Array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_add(array $real0, array $real1): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Chaikin A/D Oscillator
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param array $volume Volume traded, array of real values.
* @param int $fastPeriod [OPTIONAL] [DEFAULT 3] Number of period for the fast MA. Valid range from 2 to 100000.
* @param int $slowPeriod [OPTIONAL] [DEFAULT 10] Number of period for the slow MA. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_adosc(
array $high,
array $low,
array $close,
array $volume,
int $fastPeriod = 3,
int $slowPeriod = 10
): array {
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Average Directional Movement Index
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 14] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_adx(array $high, array $low, array $close, int $timePeriod = 14): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Average Directional Movement Index Rating
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 14] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_adxr(array $high, array $low, array $close, int $timePeriod = 14): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Absolute Price Oscillator
*
* @param array $real Array of real values.
* @param int $fastPeriod [OPTIONAL] [DEFAULT 12] Number of period for the fast MA. Valid range from 2 to 100000.
* @param int $slowPeriod [OPTIONAL] [DEFAULT 26] Number of period for the slow MA. Valid range from 2 to 100000.
* @param int $mAType [OPTIONAL] [DEFAULT TRADER_MA_TYPE_SMA] Type of Moving Average. TRADER_MA_TYPE_* series of constants should be used.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_apo(array $real, int $fastPeriod = 12, int $slowPeriod = 26, int $mAType = TRADER_MA_TYPE_SMA): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Aroon
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 14] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_aroon(array $high, array $low, int $timePeriod = 14): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Aroon Oscillator
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 14] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_aroonosc(array $high, array $low, int $timePeriod = 14): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Vector Trigonometric ASin
* Calculates the arc sine for each value in real and returns the resulting array.
*
* @param array $real Array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_asin(array $real): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Vector Trigonometric ATan
* Calculates the arc tangent for each value in real and returns the resulting array.
*
* @param array $real Array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_atan(array $real): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Average True Range
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 14] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_atr(array $high, array $low, array $close, int $timePeriod = 14): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Average Price
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_avgprice(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Bollinger Bands
*
* @param array $real Array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 5] Number of period. Valid range from 2 to 100000.
* @param float $nbDevUp [OPTIONAL] [DEFAULT 2.0] Deviation multiplier for upper band. Valid range from TRADER_REAL_MIN to TRADER_REAL_MAX.
* @param float $nbDevDn [OPTIONAL] [DEFAULT 2.0] Deviation multiplier for lower band. Valid range from TRADER_REAL_MIN to TRADER_REAL_MAX.
* @param int $mAType [OPTIONAL] [DEFAULT TRADER_MA_TYPE_SMA] Type of Moving Average. TRADER_MA_TYPE_* series of constants should be used.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_bbands(
array $real,
int $timePeriod = 5,
float $nbDevUp = 2.0,
float $nbDevDn = 2.0,
int $mAType = TRADER_MA_TYPE_SMA
): array {
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Beta
*
* @param array $real0 Array of real values.
* @param array $real1 Array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 5] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_beta(array $real0, array $real1, int $timePeriod = 5): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Balance Of Power
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_bop(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Commodity Channel Index
*
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 14] Number of period. Valid range from 2 to 100000.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cci(array $high, array $low, array $close, int $timePeriod = 14): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Two Crows
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl2crows(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Three Black Crows
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl3blackcrows(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Three Inside Up/Down
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl3inside(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Three-Line Strike
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl3linestrike(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Three Outside Up/Down
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl3outside(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Three Stars In The South
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl3starsinsouth(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Three Advancing White Soldiers
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdl3whitesoldiers(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Abandoned Baby
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlabandonedbaby(array $open, array $high, array $low, array $close, float $penetration = 0.3): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Advance Block
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdladvanceblock(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Belt-hold
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlbelthold(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Breakaway
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlbreakaway(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Closing Marubozu
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlclosingmarubozu(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Concealing Baby Swallow
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlconcealbabyswall(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Counterattack
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlcounterattack(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Dark Cloud Cover
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.5] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdldarkcloudcover(array $open, array $high, array $low, array $close, float $penetration = 0.5): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Doji
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdldoji(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Doji Star
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdldojistar(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Dragonfly Doji
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdldragonflydoji(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Engulfing Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlengulfing(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Evening Doji Star
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdleveningdojistar(array $open, array $high, array $low, array $close, float $penetration = 0.3): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Evening Star
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdleveningstar(array $open, array $high, array $low, array $close, float $penetration = 0.3): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Up/Down-gap side-by-side white lines
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlgapsidesidewhite(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Gravestone Doji
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlgravestonedoji(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Hammer
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlhammer(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Hanging Man
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlhangingman(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Harami Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlharami(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Harami Cross Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlharamicross(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* High-Wave Candle
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlhighwave(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Hikkake Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlhikkake(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Modified Hikkake Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlhikkakemod(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Homing Pigeon
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlhomingpigeon(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Identical Three Crows
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlidentical3crows(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* In-Neck Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlinneck(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Inverted Hammer
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlinvertedhammer(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Kicking
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlkicking(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Kicking - bull/bear determined by the longer marubozu
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlkickingbylength(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Ladder Bottom
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlladderbottom(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Long Legged Doji
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdllongleggeddoji(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Long Line Candle
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdllongline(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Marubozu
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlmarubozu(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Matching Low
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlmatchinglow(array $open, array $high, array $low, array $close): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Mat Hold
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.5] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlmathold(array $open, array $high, array $low, array $close, float $penetration = 0.5): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Morning Doji Star
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlmorningdojistar(array $open, array $high, array $low, array $close, float $penetration = 0.3): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* Morning Star
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
*
* @return array Returns an array with calculated data or false on failure.
*/
function trader_cdlmorningstar(array $open, array $high, array $low, array $close, float $penetration = 0.3): array
{
throw new RuntimeException(EXCEPTION_MESSAGE);
}
/**
* On-Neck Pattern
*
* @param array $open Opening price, array of real values.
* @param array $high High price, array of real values.
* @param array $low Low price, array of real values.
* @param array $close Closing price, array of real values.