1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Laratrade\Trader\Contracts; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Trait MagicCalls |
7
|
|
|
* @package Laratrade\Trader\Contracts |
8
|
|
|
* |
9
|
|
|
* phpcs:disable Generic.Files.LineLength |
10
|
|
|
* phpcs:disable PSR1.Methods.CamelCapsMethodName |
11
|
|
|
*/ |
12
|
|
|
trait MagicCalls |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* Vector Trigonometric ACos. |
16
|
|
|
* |
17
|
|
|
* Calculates the arc cosine for each value in real and returns the resulting array. |
18
|
|
|
* |
19
|
|
|
* @param array $real Array of real values. |
20
|
|
|
* |
21
|
|
|
* @return array Returns an array with calculated data. |
22
|
|
|
*/ |
23
|
2 |
|
public function acos(array $real): array |
|
|
|
|
24
|
|
|
{ |
25
|
2 |
|
return $this->__call(__FUNCTION__, func_get_args()); |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* Chaikin A/D Line. |
30
|
|
|
* |
31
|
|
|
* @param array $high High price, array of real values. |
32
|
|
|
* @param array $low Low price, array of real values. |
33
|
|
|
* @param array $close Closing price, array of real values. |
34
|
|
|
* @param array $volume Volume traded, array of real values. |
35
|
|
|
* |
36
|
|
|
* @return array Returns an array with calculated data. |
37
|
|
|
*/ |
38
|
2 |
|
public function ad(array $high, array $low, array $close, array $volume): array |
|
|
|
|
39
|
|
|
{ |
40
|
2 |
|
return $this->__call(__FUNCTION__, func_get_args()); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* Vector Arithmetic Add. |
45
|
|
|
* |
46
|
|
|
* Calculates the vector addition of real0 to real1 and returns the resulting vector. |
47
|
|
|
* |
48
|
|
|
* @param array $real0 Array of real values. |
49
|
|
|
* @param array $real1 Array of real values. |
50
|
|
|
* |
51
|
|
|
* @return array Returns an array with calculated data. |
52
|
|
|
*/ |
53
|
2 |
|
public function add(array $real0, array $real1): array |
|
|
|
|
54
|
|
|
{ |
55
|
2 |
|
return $this->__call(__FUNCTION__, func_get_args()); |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* Chaikin A/D Oscillator. |
60
|
|
|
* |
61
|
|
|
* @param array $high High price, array of real values. |
62
|
|
|
* @param array $low Low price, array of real values. |
63
|
|
|
* @param array $close Closing price, array of real values. |
64
|
|
|
* @param array $volume Volume traded, array of real values. |
65
|
|
|
* @param int $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000. |
66
|
|
|
* @param int $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000. |
67
|
|
|
* |
68
|
|
|
* @return array Returns an array with calculated data. |
69
|
|
|
*/ |
70
|
|
|
public function adosc( |
71
|
|
|
array $high, |
|
|
|
|
72
|
|
|
array $low, |
|
|
|
|
73
|
|
|
array $close, |
|
|
|
|
74
|
|
|
array $volume, |
|
|
|
|
75
|
|
|
int $fastPeriod = 3, |
|
|
|
|
76
|
|
|
int $slowPeriod = 10 |
|
|
|
|
77
|
|
|
): array { |
78
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Average Directional Movement Index. |
83
|
|
|
* |
84
|
|
|
* @param array $high High price, array of real values. |
85
|
|
|
* @param array $low Low price, array of real values. |
86
|
|
|
* @param array $close Closing price, array of real values. |
87
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
88
|
|
|
* |
89
|
|
|
* @return array Returns an array with calculated data. |
90
|
|
|
*/ |
91
|
|
|
public function adx(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
92
|
|
|
{ |
93
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* Average Directional Movement Index Rating. |
98
|
|
|
* |
99
|
|
|
* @param array $high High price, array of real values. |
100
|
|
|
* @param array $low Low price, array of real values. |
101
|
|
|
* @param array $close Closing price, array of real values. |
102
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
103
|
|
|
* |
104
|
|
|
* @return array Returns an array with calculated data. |
105
|
|
|
*/ |
106
|
|
|
public function adxr(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
107
|
|
|
{ |
108
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* Absolute Price Oscillator. |
113
|
|
|
* |
114
|
|
|
* @param array $real Array of real values. |
115
|
|
|
* @param int $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000. |
116
|
|
|
* @param int $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000. |
117
|
|
|
* @param int $mAType Type of Moving Average. MA_TYPE_* series of constants should be used. |
118
|
|
|
* |
119
|
|
|
* @return array Returns an array with calculated data. |
120
|
|
|
*/ |
121
|
|
|
public function apo(array $real, int $fastPeriod = 12, int $slowPeriod = 26, int $mAType = 0): array |
|
|
|
|
122
|
|
|
{ |
123
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* Aroon. |
128
|
|
|
* |
129
|
|
|
* @param array $high High price, array of real values. |
130
|
|
|
* @param array $low Low price, array of real values. |
131
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
132
|
|
|
* |
133
|
|
|
* @return array Returns an array with calculated data. |
134
|
|
|
*/ |
135
|
|
|
public function aroon(array $high, array $low, int $timePeriod = 14): array |
|
|
|
|
136
|
|
|
{ |
137
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* Aroon Oscillator. |
142
|
|
|
* |
143
|
|
|
* @param array $high High price, array of real values. |
144
|
|
|
* @param array $low Low price, array of real values. |
145
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
146
|
|
|
* |
147
|
|
|
* @return array Returns an array with calculated data. |
148
|
|
|
*/ |
149
|
|
|
public function aroonosc(array $high, array $low, int $timePeriod = 14): array |
|
|
|
|
150
|
|
|
{ |
151
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* Vector Trigonometric ASin. |
156
|
|
|
* |
157
|
|
|
* @param array $real Array of real values. |
158
|
|
|
* |
159
|
|
|
* @return array Returns an array with calculated data. |
160
|
|
|
*/ |
161
|
|
|
public function asin(array $real): array |
|
|
|
|
162
|
|
|
{ |
163
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* Vector Trigonometric ATan. |
168
|
|
|
* |
169
|
|
|
* @param array $real Array of real values. |
170
|
|
|
* |
171
|
|
|
* @return array Returns an array with calculated data. |
172
|
|
|
*/ |
173
|
|
|
public function atan(array $real): array |
|
|
|
|
174
|
|
|
{ |
175
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* Average True Range. |
180
|
|
|
* |
181
|
|
|
* @param array $high High price, array of real values. |
182
|
|
|
* @param array $low Low price, array of real values. |
183
|
|
|
* @param array $close Closing price, array of real values. |
184
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
185
|
|
|
* |
186
|
|
|
* @return array Returns an array with calculated data. |
187
|
|
|
*/ |
188
|
|
|
public function atr(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
189
|
|
|
{ |
190
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* Average Price. |
195
|
|
|
* |
196
|
|
|
* @param array $open Opening price, array of real values. |
197
|
|
|
* @param array $high High price, array of real values. |
198
|
|
|
* @param array $low Low price, array of real values. |
199
|
|
|
* @param array $close Closing price, array of real values. |
200
|
|
|
* |
201
|
|
|
* @return array Returns an array with calculated data. |
202
|
|
|
*/ |
203
|
|
|
public function avgprice(array $open, array $high, array $low, array $close): array |
|
|
|
|
204
|
|
|
{ |
205
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* Bollinger Bands. |
210
|
|
|
* |
211
|
|
|
* @param array $real Array of real values. |
212
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
213
|
|
|
* @param float $nbDevUp Deviation multiplier for upper band. Valid range from REAL_MIN to REAL_MAX. |
214
|
|
|
* @param float $nbDevDn Deviation multiplier for lower band. Valid range from REAL_MIN to REAL_MAX. |
215
|
|
|
* @param int $mAType Type of Moving Average. MA_TYPE_* series of constants should be used. |
216
|
|
|
* |
217
|
|
|
* @return array Returns an array with calculated data. |
218
|
|
|
*/ |
219
|
|
|
public function bbands( |
220
|
|
|
array $real, |
|
|
|
|
221
|
|
|
int $timePeriod = 5, |
|
|
|
|
222
|
|
|
float $nbDevUp = 2.0, |
|
|
|
|
223
|
|
|
float $nbDevDn = 2.0, |
|
|
|
|
224
|
|
|
int $mAType = 0 |
|
|
|
|
225
|
|
|
): array { |
226
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* Beta. |
231
|
|
|
* |
232
|
|
|
* @param array $real0 Array of real values. |
233
|
|
|
* @param array $real1 Array of real values. |
234
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
235
|
|
|
* |
236
|
|
|
* @return array Returns an array with calculated data. |
237
|
|
|
*/ |
238
|
|
|
public function beta(array $real0, array $real1, int $timePeriod = 5): array |
|
|
|
|
239
|
|
|
{ |
240
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* Balance Of Power. |
245
|
|
|
* |
246
|
|
|
* @param array $open Opening price, array of real values. |
247
|
|
|
* @param array $high High price, array of real values. |
248
|
|
|
* @param array $low Low price, array of real values. |
249
|
|
|
* @param array $close Closing price, array of real values. |
250
|
|
|
* |
251
|
|
|
* @return array Returns an array with calculated data. |
252
|
|
|
*/ |
253
|
|
|
public function bop(array $open, array $high, array $low, array $close): array |
|
|
|
|
254
|
|
|
{ |
255
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* Commodity Channel Index. |
260
|
|
|
* |
261
|
|
|
* @param array $high High price, array of real values. |
262
|
|
|
* @param array $low Low price, array of real values. |
263
|
|
|
* @param array $close Closing price, array of real values. |
264
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
265
|
|
|
* |
266
|
|
|
* @return array Returns an array with calculated data. |
267
|
|
|
*/ |
268
|
|
|
public function cci(array $high, array $low, array $close, int $timePeriod = null): array |
|
|
|
|
269
|
|
|
{ |
270
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* Two Crows. |
275
|
|
|
* |
276
|
|
|
* @param array $open Opening price, array of real values. |
277
|
|
|
* @param array $high High price, array of real values. |
278
|
|
|
* @param array $low Low price, array of real values. |
279
|
|
|
* @param array $close Closing price, array of real values. |
280
|
|
|
* |
281
|
|
|
* @return array Returns an array with calculated data. |
282
|
|
|
*/ |
283
|
|
|
public function cdl2crows(array $open, array $high, array $low, array $close): array |
|
|
|
|
284
|
|
|
{ |
285
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
286
|
|
|
} |
287
|
|
|
|
288
|
|
|
/** |
289
|
|
|
* Three Black Crows. |
290
|
|
|
* |
291
|
|
|
* @param array $open Opening price, array of real values. |
292
|
|
|
* @param array $high High price, array of real values. |
293
|
|
|
* @param array $low Low price, array of real values. |
294
|
|
|
* @param array $close Closing price, array of real values. |
295
|
|
|
* |
296
|
|
|
* @return array Returns an array with calculated data. |
297
|
|
|
*/ |
298
|
|
|
public function cdl3blackcrows(array $open, array $high, array $low, array $close): array |
|
|
|
|
299
|
|
|
{ |
300
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
301
|
|
|
} |
302
|
|
|
|
303
|
|
|
/** |
304
|
|
|
* Three Inside Up/Down. |
305
|
|
|
* |
306
|
|
|
* @param array $open Opening price, array of real values. |
307
|
|
|
* @param array $high High price, array of real values. |
308
|
|
|
* @param array $low Low price, array of real values. |
309
|
|
|
* @param array $close Closing price, array of real values. |
310
|
|
|
* |
311
|
|
|
* @return array Returns an array with calculated data. |
312
|
|
|
*/ |
313
|
|
|
public function cdl3inside(array $open, array $high, array $low, array $close): array |
|
|
|
|
314
|
|
|
{ |
315
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
316
|
|
|
} |
317
|
|
|
|
318
|
|
|
/** |
319
|
|
|
* Three-Line Strike |
320
|
|
|
* |
321
|
|
|
* @param array $open Opening price, array of real values. |
322
|
|
|
* @param array $high High price, array of real values. |
323
|
|
|
* @param array $low Low price, array of real values. |
324
|
|
|
* @param array $close Closing price, array of real values. |
325
|
|
|
* |
326
|
|
|
* @return array Returns an array with calculated data. |
327
|
|
|
*/ |
328
|
|
|
public function cdl3linestrike(array $open, array $high, array $low, array $close): array |
|
|
|
|
329
|
|
|
{ |
330
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
331
|
|
|
} |
332
|
|
|
|
333
|
|
|
/** |
334
|
|
|
* Three Outside Up/Down. |
335
|
|
|
* |
336
|
|
|
* @param array $open Opening price, array of real values. |
337
|
|
|
* @param array $high High price, array of real values. |
338
|
|
|
* @param array $low Low price, array of real values. |
339
|
|
|
* @param array $close Closing price, array of real values. |
340
|
|
|
* |
341
|
|
|
* @return array Returns an array with calculated data. |
342
|
|
|
*/ |
343
|
|
|
public function cdl3outside(array $open, array $high, array $low, array $close): array |
|
|
|
|
344
|
|
|
{ |
345
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
346
|
|
|
} |
347
|
|
|
|
348
|
|
|
/** |
349
|
|
|
* Three Stars In The South. |
350
|
|
|
* |
351
|
|
|
* @param array $open Opening price, array of real values. |
352
|
|
|
* @param array $high High price, array of real values. |
353
|
|
|
* @param array $low Low price, array of real values. |
354
|
|
|
* @param array $close Closing price, array of real values. |
355
|
|
|
* |
356
|
|
|
* @return array Returns an array with calculated data. |
357
|
|
|
*/ |
358
|
|
|
public function cdl3starsinsouth(array $open, array $high, array $low, array $close): array |
|
|
|
|
359
|
|
|
{ |
360
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
361
|
|
|
} |
362
|
|
|
|
363
|
|
|
/** |
364
|
|
|
* Three Advancing White Soldiers. |
365
|
|
|
* |
366
|
|
|
* @param array $open Opening price, array of real values. |
367
|
|
|
* @param array $high High price, array of real values. |
368
|
|
|
* @param array $low Low price, array of real values. |
369
|
|
|
* @param array $close Closing price, array of real values. |
370
|
|
|
* |
371
|
|
|
* @return array Returns an array with calculated data. |
372
|
|
|
*/ |
373
|
|
|
public function cdl3whitesoldiers(array $open, array $high, array $low, array $close): array |
|
|
|
|
374
|
|
|
{ |
375
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
376
|
|
|
} |
377
|
|
|
|
378
|
|
|
/** |
379
|
|
|
* Abandoned Baby. |
380
|
|
|
* |
381
|
|
|
* @param array $open Opening price, array of real values. |
382
|
|
|
* @param array $high High price, array of real values. |
383
|
|
|
* @param array $low Low price, array of real values. |
384
|
|
|
* @param array $close Closing price, array of real values. |
385
|
|
|
* @param float $penetration Percentage of penetration of a candle within another candle. |
386
|
|
|
* |
387
|
|
|
* @return array Returns an array with calculated data. |
388
|
|
|
*/ |
389
|
|
|
public function cdlabandonedbaby( |
390
|
|
|
array $open, |
|
|
|
|
391
|
|
|
array $high, |
|
|
|
|
392
|
|
|
array $low, |
|
|
|
|
393
|
|
|
array $close, |
|
|
|
|
394
|
|
|
float $penetration = 0.3 |
|
|
|
|
395
|
|
|
): array { |
396
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
/** |
400
|
|
|
* Advance Block. |
401
|
|
|
* |
402
|
|
|
* @param array $open Opening price, array of real values. |
403
|
|
|
* @param array $high High price, array of real values. |
404
|
|
|
* @param array $low Low price, array of real values. |
405
|
|
|
* @param array $close Closing price, array of real values. |
406
|
|
|
* |
407
|
|
|
* @return array Returns an array with calculated data. |
408
|
|
|
*/ |
409
|
|
|
public function cdladvanceblock(array $open, array $high, array $low, array $close): array |
|
|
|
|
410
|
|
|
{ |
411
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
412
|
|
|
} |
413
|
|
|
|
414
|
|
|
/** |
415
|
|
|
* Belt-hold. |
416
|
|
|
* |
417
|
|
|
* @param array $open Opening price, array of real values. |
418
|
|
|
* @param array $high High price, array of real values. |
419
|
|
|
* @param array $low Low price, array of real values. |
420
|
|
|
* @param array $close Closing price, array of real values. |
421
|
|
|
* |
422
|
|
|
* @return array Returns an array with calculated data. |
423
|
|
|
*/ |
424
|
|
|
public function cdlbelthold(array $open, array $high, array $low, array $close): array |
|
|
|
|
425
|
|
|
{ |
426
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
427
|
|
|
} |
428
|
|
|
|
429
|
|
|
/** |
430
|
|
|
* Breakaway. |
431
|
|
|
* |
432
|
|
|
* @param array $open Opening price, array of real values. |
433
|
|
|
* @param array $high High price, array of real values. |
434
|
|
|
* @param array $low Low price, array of real values. |
435
|
|
|
* @param array $close Closing price, array of real values. |
436
|
|
|
* |
437
|
|
|
* @return array Returns an array with calculated data. |
438
|
|
|
*/ |
439
|
|
|
public function cdlbreakaway(array $open, array $high, array $low, array $close): array |
|
|
|
|
440
|
|
|
{ |
441
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
442
|
|
|
} |
443
|
|
|
|
444
|
|
|
/** |
445
|
|
|
* Closing Marubozu. |
446
|
|
|
* |
447
|
|
|
* @param array $open Opening price, array of real values. |
448
|
|
|
* @param array $high High price, array of real values. |
449
|
|
|
* @param array $low Low price, array of real values. |
450
|
|
|
* @param array $close Closing price, array of real values. |
451
|
|
|
* |
452
|
|
|
* @return array Returns an array with calculated data. |
453
|
|
|
*/ |
454
|
|
|
public function cdlclosingmarubozu(array $open, array $high, array $low, array $close): array |
|
|
|
|
455
|
|
|
{ |
456
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
457
|
|
|
} |
458
|
|
|
|
459
|
|
|
/** |
460
|
|
|
* Concealing Baby Swallow. |
461
|
|
|
* |
462
|
|
|
* @param array $open Opening price, array of real values. |
463
|
|
|
* @param array $high High price, array of real values. |
464
|
|
|
* @param array $low Low price, array of real values. |
465
|
|
|
* @param array $close Closing price, array of real values. |
466
|
|
|
* |
467
|
|
|
* @return array Returns an array with calculated data. |
468
|
|
|
*/ |
469
|
|
|
public function cdlconcealbabyswall(array $open, array $high, array $low, array $close): array |
|
|
|
|
470
|
|
|
{ |
471
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
472
|
|
|
} |
473
|
|
|
|
474
|
|
|
/** |
475
|
|
|
* Counterattack. |
476
|
|
|
* |
477
|
|
|
* @param array $open Opening price, array of real values. |
478
|
|
|
* @param array $high High price, array of real values. |
479
|
|
|
* @param array $low Low price, array of real values. |
480
|
|
|
* @param array $close Closing price, array of real values. |
481
|
|
|
* |
482
|
|
|
* @return array Returns an array with calculated data. |
483
|
|
|
*/ |
484
|
|
|
public function cdlcounterattack(array $open, array $high, array $low, array $close): array |
|
|
|
|
485
|
|
|
{ |
486
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
487
|
|
|
} |
488
|
|
|
|
489
|
|
|
/** |
490
|
|
|
* Dark Cloud Cover. |
491
|
|
|
* |
492
|
|
|
* @param array $open Opening price, array of real values. |
493
|
|
|
* @param array $high High price, array of real values. |
494
|
|
|
* @param array $low Low price, array of real values. |
495
|
|
|
* @param array $close Closing price, array of real values. |
496
|
|
|
* @param float $penetration Percentage of penetration of a candle within another candle. |
497
|
|
|
* |
498
|
|
|
* @return array Returns an array with calculated data. |
499
|
|
|
*/ |
500
|
|
|
public function cdldarkcloudcover( |
501
|
|
|
array $open, |
|
|
|
|
502
|
|
|
array $high, |
|
|
|
|
503
|
|
|
array $low, |
|
|
|
|
504
|
|
|
array $close, |
|
|
|
|
505
|
|
|
float $penetration = 0.5 |
|
|
|
|
506
|
|
|
): array { |
507
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
508
|
|
|
} |
509
|
|
|
|
510
|
|
|
/** |
511
|
|
|
* Doji. |
512
|
|
|
* |
513
|
|
|
* @param array $open Opening price, array of real values. |
514
|
|
|
* @param array $high High price, array of real values. |
515
|
|
|
* @param array $low Low price, array of real values. |
516
|
|
|
* @param array $close Closing price, array of real values. |
517
|
|
|
* |
518
|
|
|
* @return array Returns an array with calculated data. |
519
|
|
|
*/ |
520
|
|
|
public function cdldoji(array $open, array $high, array $low, array $close): array |
|
|
|
|
521
|
|
|
{ |
522
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
523
|
|
|
} |
524
|
|
|
|
525
|
|
|
/** |
526
|
|
|
* Doji Star. |
527
|
|
|
* |
528
|
|
|
* @param array $open Opening price, array of real values. |
529
|
|
|
* @param array $high High price, array of real values. |
530
|
|
|
* @param array $low Low price, array of real values. |
531
|
|
|
* @param array $close Closing price, array of real values. |
532
|
|
|
* |
533
|
|
|
* @return array Returns an array with calculated data. |
534
|
|
|
*/ |
535
|
|
|
public function cdldojistar(array $open, array $high, array $low, array $close): array |
|
|
|
|
536
|
|
|
{ |
537
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
538
|
|
|
} |
539
|
|
|
|
540
|
|
|
/** |
541
|
|
|
* Dragonfly Doji. |
542
|
|
|
* |
543
|
|
|
* @param array $open Opening price, array of real values. |
544
|
|
|
* @param array $high High price, array of real values. |
545
|
|
|
* @param array $low Low price, array of real values. |
546
|
|
|
* @param array $close Closing price, array of real values. |
547
|
|
|
* |
548
|
|
|
* @return array Returns an array with calculated data. |
549
|
|
|
*/ |
550
|
|
|
public function cdldragonflydoji(array $open, array $high, array $low, array $close): array |
|
|
|
|
551
|
|
|
{ |
552
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
553
|
|
|
} |
554
|
|
|
|
555
|
|
|
/** |
556
|
|
|
* Engulfing Pattern. |
557
|
|
|
* |
558
|
|
|
* @param array $open Opening price, array of real values. |
559
|
|
|
* @param array $high High price, array of real values. |
560
|
|
|
* @param array $low Low price, array of real values. |
561
|
|
|
* @param array $close Closing price, array of real values. |
562
|
|
|
* |
563
|
|
|
* @return array Returns an array with calculated data. |
564
|
|
|
*/ |
565
|
|
|
public function cdlengulfing(array $open, array $high, array $low, array $close): array |
|
|
|
|
566
|
|
|
{ |
567
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
568
|
|
|
} |
569
|
|
|
|
570
|
|
|
/** |
571
|
|
|
* Evening Doji Star. |
572
|
|
|
* |
573
|
|
|
* @param array $open Opening price, array of real values. |
574
|
|
|
* @param array $high High price, array of real values. |
575
|
|
|
* @param array $low Low price, array of real values. |
576
|
|
|
* @param array $close Closing price, array of real values. |
577
|
|
|
* @param float $penetration Percentage of penetration of a candle within another candle. |
578
|
|
|
* |
579
|
|
|
* @return array Returns an array with calculated data. |
580
|
|
|
*/ |
581
|
|
|
public function cdleveningdojistar( |
582
|
|
|
array $open, |
|
|
|
|
583
|
|
|
array $high, |
|
|
|
|
584
|
|
|
array $low, |
|
|
|
|
585
|
|
|
array $close, |
|
|
|
|
586
|
|
|
float $penetration = 0.3 |
|
|
|
|
587
|
|
|
): array { |
588
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
589
|
|
|
} |
590
|
|
|
|
591
|
|
|
/** |
592
|
|
|
* Evening Star. |
593
|
|
|
* |
594
|
|
|
* @param array $open Opening price, array of real values. |
595
|
|
|
* @param array $high High price, array of real values. |
596
|
|
|
* @param array $low Low price, array of real values. |
597
|
|
|
* @param array $close Closing price, array of real values. |
598
|
|
|
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle. |
599
|
|
|
* |
600
|
|
|
* @return array Returns an array with calculated data. |
601
|
|
|
*/ |
602
|
|
|
public function cdleveningstar( |
603
|
|
|
array $open, |
|
|
|
|
604
|
|
|
array $high, |
|
|
|
|
605
|
|
|
array $low, |
|
|
|
|
606
|
|
|
array $close, |
|
|
|
|
607
|
|
|
float $penetration = 0.3 |
|
|
|
|
608
|
|
|
): array { |
609
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
610
|
|
|
} |
611
|
|
|
|
612
|
|
|
/** |
613
|
|
|
* Up/Down-gap side-by-side white lines. |
614
|
|
|
* |
615
|
|
|
* @param array $open Opening price, array of real values. |
616
|
|
|
* @param array $high High price, array of real values. |
617
|
|
|
* @param array $low Low price, array of real values. |
618
|
|
|
* @param array $close Closing price, array of real values. |
619
|
|
|
* |
620
|
|
|
* @return array Returns an array with calculated data. |
621
|
|
|
*/ |
622
|
|
|
public function cdlgapsidesidewhite(array $open, array $high, array $low, array $close): array |
|
|
|
|
623
|
|
|
{ |
624
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
625
|
|
|
} |
626
|
|
|
|
627
|
|
|
/** |
628
|
|
|
* Gravestone Doji. |
629
|
|
|
* |
630
|
|
|
* @param array $open Opening price, array of real values. |
631
|
|
|
* @param array $high High price, array of real values. |
632
|
|
|
* @param array $low Low price, array of real values. |
633
|
|
|
* @param array $close Closing price, array of real values. |
634
|
|
|
* |
635
|
|
|
* @return array Returns an array with calculated data. |
636
|
|
|
*/ |
637
|
|
|
public function cdlgravestonedoji(array $open, array $high, array $low, array $close): array |
|
|
|
|
638
|
|
|
{ |
639
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
640
|
|
|
} |
641
|
|
|
|
642
|
|
|
/** |
643
|
|
|
* Hammer. |
644
|
|
|
* |
645
|
|
|
* @param array $open Opening price, array of real values. |
646
|
|
|
* @param array $high High price, array of real values. |
647
|
|
|
* @param array $low Low price, array of real values. |
648
|
|
|
* @param array $close Closing price, array of real values. |
649
|
|
|
* |
650
|
|
|
* @return array Returns an array with calculated data. |
651
|
|
|
*/ |
652
|
|
|
public function cdlhammer(array $open, array $high, array $low, array $close): array |
|
|
|
|
653
|
|
|
{ |
654
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
655
|
|
|
} |
656
|
|
|
|
657
|
|
|
/** |
658
|
|
|
* Hanging Man. |
659
|
|
|
* |
660
|
|
|
* @param array $open Opening price, array of real values. |
661
|
|
|
* @param array $high High price, array of real values. |
662
|
|
|
* @param array $low Low price, array of real values. |
663
|
|
|
* @param array $close Closing price, array of real values. |
664
|
|
|
* |
665
|
|
|
* @return array Returns an array with calculated data. |
666
|
|
|
*/ |
667
|
|
|
public function cdlhangingman(array $open, array $high, array $low, array $close): array |
|
|
|
|
668
|
|
|
{ |
669
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
670
|
|
|
} |
671
|
|
|
|
672
|
|
|
/** |
673
|
|
|
* Harami Pattern. |
674
|
|
|
* |
675
|
|
|
* @param array $open Opening price, array of real values. |
676
|
|
|
* @param array $high High price, array of real values. |
677
|
|
|
* @param array $low Low price, array of real values. |
678
|
|
|
* @param array $close Closing price, array of real values. |
679
|
|
|
* |
680
|
|
|
* @return array Returns an array with calculated data. |
681
|
|
|
*/ |
682
|
|
|
public function cdlharami(array $open, array $high, array $low, array $close): array |
|
|
|
|
683
|
|
|
{ |
684
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
685
|
|
|
} |
686
|
|
|
|
687
|
|
|
/** |
688
|
|
|
* Harami Cross Pattern. |
689
|
|
|
* |
690
|
|
|
* @param array $open Opening price, array of real values. |
691
|
|
|
* @param array $high High price, array of real values. |
692
|
|
|
* @param array $low Low price, array of real values. |
693
|
|
|
* @param array $close Closing price, array of real values. |
694
|
|
|
* |
695
|
|
|
* @return array Returns an array with calculated data. |
696
|
|
|
*/ |
697
|
|
|
public function cdlharamicross(array $open, array $high, array $low, array $close): array |
|
|
|
|
698
|
|
|
{ |
699
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
700
|
|
|
} |
701
|
|
|
|
702
|
|
|
/** |
703
|
|
|
* High-Wave Candle. |
704
|
|
|
* |
705
|
|
|
* @param array $open Opening price, array of real values. |
706
|
|
|
* @param array $high High price, array of real values. |
707
|
|
|
* @param array $low Low price, array of real values. |
708
|
|
|
* @param array $close Closing price, array of real values. |
709
|
|
|
* |
710
|
|
|
* @return array Returns an array with calculated data. |
711
|
|
|
*/ |
712
|
|
|
public function cdlhighwave(array $open, array $high, array $low, array $close): array |
|
|
|
|
713
|
|
|
{ |
714
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
715
|
|
|
} |
716
|
|
|
|
717
|
|
|
/** |
718
|
|
|
* Hikkake Pattern. |
719
|
|
|
* |
720
|
|
|
* @param array $open Opening price, array of real values. |
721
|
|
|
* @param array $high High price, array of real values. |
722
|
|
|
* @param array $low Low price, array of real values. |
723
|
|
|
* @param array $close Closing price, array of real values. |
724
|
|
|
* |
725
|
|
|
* @return array Returns an array with calculated data. |
726
|
|
|
*/ |
727
|
|
|
public function cdlhikkake(array $open, array $high, array $low, array $close): array |
|
|
|
|
728
|
|
|
{ |
729
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
730
|
|
|
} |
731
|
|
|
|
732
|
|
|
/** |
733
|
|
|
* Modified Hikkake Pattern. |
734
|
|
|
* |
735
|
|
|
* @param array $open Opening price, array of real values. |
736
|
|
|
* @param array $high High price, array of real values. |
737
|
|
|
* @param array $low Low price, array of real values. |
738
|
|
|
* @param array $close Closing price, array of real values. |
739
|
|
|
* |
740
|
|
|
* @return array Returns an array with calculated data. |
741
|
|
|
*/ |
742
|
|
|
public function cdlhikkakemod(array $open, array $high, array $low, array $close): array |
|
|
|
|
743
|
|
|
{ |
744
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
745
|
|
|
} |
746
|
|
|
|
747
|
|
|
/** |
748
|
|
|
* Homing Pigeon. |
749
|
|
|
* |
750
|
|
|
* @param array $open Opening price, array of real values. |
751
|
|
|
* @param array $high High price, array of real values. |
752
|
|
|
* @param array $low Low price, array of real values. |
753
|
|
|
* @param array $close Closing price, array of real values. |
754
|
|
|
* |
755
|
|
|
* @return array Returns an array with calculated data. |
756
|
|
|
*/ |
757
|
|
|
public function cdlhomingpigeon(array $open, array $high, array $low, array $close): array |
|
|
|
|
758
|
|
|
{ |
759
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
760
|
|
|
} |
761
|
|
|
|
762
|
|
|
/** |
763
|
|
|
* Identical Three Crows. |
764
|
|
|
* |
765
|
|
|
* @param array $open Opening price, array of real values. |
766
|
|
|
* @param array $high High price, array of real values. |
767
|
|
|
* @param array $low Low price, array of real values. |
768
|
|
|
* @param array $close Closing price, array of real values. |
769
|
|
|
* |
770
|
|
|
* @return array Returns an array with calculated data. |
771
|
|
|
*/ |
772
|
|
|
public function cdlidentical3crows(array $open, array $high, array $low, array $close): array |
|
|
|
|
773
|
|
|
{ |
774
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
775
|
|
|
} |
776
|
|
|
|
777
|
|
|
/** |
778
|
|
|
* In-Neck Pattern. |
779
|
|
|
* |
780
|
|
|
* @param array $open Opening price, array of real values. |
781
|
|
|
* @param array $high High price, array of real values. |
782
|
|
|
* @param array $low Low price, array of real values. |
783
|
|
|
* @param array $close Closing price, array of real values. |
784
|
|
|
* |
785
|
|
|
* @return array Returns an array with calculated data. |
786
|
|
|
*/ |
787
|
|
|
public function cdlinneck(array $open, array $high, array $low, array $close): array |
|
|
|
|
788
|
|
|
{ |
789
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
790
|
|
|
} |
791
|
|
|
|
792
|
|
|
/** |
793
|
|
|
* Inverted Hammer. |
794
|
|
|
* |
795
|
|
|
* @param array $open Opening price, array of real values. |
796
|
|
|
* @param array $high High price, array of real values. |
797
|
|
|
* @param array $low Low price, array of real values. |
798
|
|
|
* @param array $close Closing price, array of real values. |
799
|
|
|
* |
800
|
|
|
* @return array Returns an array with calculated data. |
801
|
|
|
*/ |
802
|
|
|
public function cdlinvertedhammer(array $open, array $high, array $low, array $close): array |
|
|
|
|
803
|
|
|
{ |
804
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
805
|
|
|
} |
806
|
|
|
|
807
|
|
|
/** |
808
|
|
|
* Kicking. |
809
|
|
|
* |
810
|
|
|
* @param array $open Opening price, array of real values. |
811
|
|
|
* @param array $high High price, array of real values. |
812
|
|
|
* @param array $low Low price, array of real values. |
813
|
|
|
* @param array $close Closing price, array of real values. |
814
|
|
|
* |
815
|
|
|
* @return array Returns an array with calculated data. |
816
|
|
|
*/ |
817
|
|
|
public function cdlkicking(array $open, array $high, array $low, array $close): array |
|
|
|
|
818
|
|
|
{ |
819
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
820
|
|
|
} |
821
|
|
|
|
822
|
|
|
/** |
823
|
|
|
* Kicking - bull/bear determined by the longer marubozu. |
824
|
|
|
* |
825
|
|
|
* @param array $open Opening price, array of real values. |
826
|
|
|
* @param array $high High price, array of real values. |
827
|
|
|
* @param array $low Low price, array of real values. |
828
|
|
|
* @param array $close Closing price, array of real values. |
829
|
|
|
* |
830
|
|
|
* @return array Returns an array with calculated data. |
831
|
|
|
*/ |
832
|
|
|
public function cdlkickingbylength(array $open, array $high, array $low, array $close): array |
|
|
|
|
833
|
|
|
{ |
834
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
835
|
|
|
} |
836
|
|
|
|
837
|
|
|
/** |
838
|
|
|
* Ladder Bottom. |
839
|
|
|
* |
840
|
|
|
* @param array $open Opening price, array of real values. |
841
|
|
|
* @param array $high High price, array of real values. |
842
|
|
|
* @param array $low Low price, array of real values. |
843
|
|
|
* @param array $close Closing price, array of real values. |
844
|
|
|
* |
845
|
|
|
* @return array Returns an array with calculated data. |
846
|
|
|
*/ |
847
|
|
|
public function cdlladderbottom(array $open, array $high, array $low, array $close): array |
|
|
|
|
848
|
|
|
{ |
849
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
850
|
|
|
} |
851
|
|
|
|
852
|
|
|
/** |
853
|
|
|
* Long Legged Doji. |
854
|
|
|
* |
855
|
|
|
* @param array $open Opening price, array of real values. |
856
|
|
|
* @param array $high High price, array of real values. |
857
|
|
|
* @param array $low Low price, array of real values. |
858
|
|
|
* @param array $close Closing price, array of real values. |
859
|
|
|
* |
860
|
|
|
* @return array Returns an array with calculated data. |
861
|
|
|
*/ |
862
|
|
|
public function cdllongleggeddoji(array $open, array $high, array $low, array $close): array |
|
|
|
|
863
|
|
|
{ |
864
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
865
|
|
|
} |
866
|
|
|
|
867
|
|
|
/** |
868
|
|
|
* Long Line Candle. |
869
|
|
|
* |
870
|
|
|
* @param array $open Opening price, array of real values. |
871
|
|
|
* @param array $high High price, array of real values. |
872
|
|
|
* @param array $low Low price, array of real values. |
873
|
|
|
* @param array $close Closing price, array of real values. |
874
|
|
|
* |
875
|
|
|
* @return array Returns an array with calculated data. |
876
|
|
|
*/ |
877
|
|
|
public function cdllongline(array $open, array $high, array $low, array $close): array |
|
|
|
|
878
|
|
|
{ |
879
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
880
|
|
|
} |
881
|
|
|
|
882
|
|
|
/** |
883
|
|
|
* Marubozu. |
884
|
|
|
* |
885
|
|
|
* @param array $open Opening price, array of real values. |
886
|
|
|
* @param array $high High price, array of real values. |
887
|
|
|
* @param array $low Low price, array of real values. |
888
|
|
|
* @param array $close Closing price, array of real values. |
889
|
|
|
* |
890
|
|
|
* @return array Returns an array with calculated data. |
891
|
|
|
*/ |
892
|
|
|
public function cdlmarubozu(array $open, array $high, array $low, array $close): array |
|
|
|
|
893
|
|
|
{ |
894
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
895
|
|
|
} |
896
|
|
|
|
897
|
|
|
/** |
898
|
|
|
* Matching Low. |
899
|
|
|
* |
900
|
|
|
* @param array $open Opening price, array of real values. |
901
|
|
|
* @param array $high High price, array of real values. |
902
|
|
|
* @param array $low Low price, array of real values. |
903
|
|
|
* @param array $close Closing price, array of real values. |
904
|
|
|
* |
905
|
|
|
* @return array Returns an array with calculated data. |
906
|
|
|
*/ |
907
|
|
|
public function cdlmatchinglow(array $open, array $high, array $low, array $close): array |
|
|
|
|
908
|
|
|
{ |
909
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
910
|
|
|
} |
911
|
|
|
|
912
|
|
|
/** |
913
|
|
|
* Mat Hold. |
914
|
|
|
* |
915
|
|
|
* @param array $open Opening price, array of real values. |
916
|
|
|
* @param array $high High price, array of real values. |
917
|
|
|
* @param array $low Low price, array of real values. |
918
|
|
|
* @param array $close Closing price, array of real values. |
919
|
|
|
* @param float $penetration Percentage of penetration of a candle within another candle. |
920
|
|
|
* |
921
|
|
|
* @return array Returns an array with calculated data. |
922
|
|
|
*/ |
923
|
|
|
public function cdlmathold( |
924
|
|
|
array $open, |
|
|
|
|
925
|
|
|
array $high, |
|
|
|
|
926
|
|
|
array $low, |
|
|
|
|
927
|
|
|
array $close, |
|
|
|
|
928
|
|
|
float $penetration = 0.5 |
|
|
|
|
929
|
|
|
): array { |
930
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
931
|
|
|
} |
932
|
|
|
|
933
|
|
|
/** |
934
|
|
|
* Morning Doji Star. |
935
|
|
|
* |
936
|
|
|
* @param array $open Opening price, array of real values. |
937
|
|
|
* @param array $high High price, array of real values. |
938
|
|
|
* @param array $low Low price, array of real values. |
939
|
|
|
* @param array $close Closing price, array of real values. |
940
|
|
|
* @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle. |
941
|
|
|
* |
942
|
|
|
* @return array Returns an array with calculated data. |
943
|
|
|
*/ |
944
|
|
|
public function cdlmorningdojistar( |
945
|
|
|
array $open, |
|
|
|
|
946
|
|
|
array $high, |
|
|
|
|
947
|
|
|
array $low, |
|
|
|
|
948
|
|
|
array $close, |
|
|
|
|
949
|
|
|
float $penetration = 0.3 |
|
|
|
|
950
|
|
|
): array { |
951
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
952
|
|
|
} |
953
|
|
|
|
954
|
|
|
/** |
955
|
|
|
* Morning Star. |
956
|
|
|
* |
957
|
|
|
* @param array $open Opening price, array of real values. |
958
|
|
|
* @param array $high High price, array of real values. |
959
|
|
|
* @param array $low Low price, array of real values. |
960
|
|
|
* @param array $close Closing price, array of real values. |
961
|
|
|
* @param float $penetration Percentage of penetration of a candle within another candle. |
962
|
|
|
* |
963
|
|
|
* @return array Returns an array with calculated data. |
964
|
|
|
*/ |
965
|
|
|
public function cdlmorningstar( |
966
|
|
|
array $open, |
|
|
|
|
967
|
|
|
array $high, |
|
|
|
|
968
|
|
|
array $low, |
|
|
|
|
969
|
|
|
array $close, |
|
|
|
|
970
|
|
|
float $penetration = 0.3 |
|
|
|
|
971
|
|
|
): array { |
972
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
973
|
|
|
} |
974
|
|
|
|
975
|
|
|
/** |
976
|
|
|
* On-Neck Pattern. |
977
|
|
|
* |
978
|
|
|
* @param array $open Opening price, array of real values. |
979
|
|
|
* @param array $high High price, array of real values. |
980
|
|
|
* @param array $low Low price, array of real values. |
981
|
|
|
* @param array $close Closing price, array of real values. |
982
|
|
|
* |
983
|
|
|
* @return array Returns an array with calculated data. |
984
|
|
|
*/ |
985
|
|
|
public function cdlonneck(array $open, array $high, array $low, array $close): array |
|
|
|
|
986
|
|
|
{ |
987
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
988
|
|
|
} |
989
|
|
|
|
990
|
|
|
/** |
991
|
|
|
* Piercing Pattern. |
992
|
|
|
* |
993
|
|
|
* @param array $open Opening price, array of real values. |
994
|
|
|
* @param array $high High price, array of real values. |
995
|
|
|
* @param array $low Low price, array of real values. |
996
|
|
|
* @param array $close Closing price, array of real values. |
997
|
|
|
* |
998
|
|
|
* @return array Returns an array with calculated data. |
999
|
|
|
*/ |
1000
|
|
|
public function cdlpiercing(array $open, array $high, array $low, array $close): array |
|
|
|
|
1001
|
|
|
{ |
1002
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1003
|
|
|
} |
1004
|
|
|
|
1005
|
|
|
/** |
1006
|
|
|
* Rickshaw Man. |
1007
|
|
|
* |
1008
|
|
|
* @param array $open Opening price, array of real values. |
1009
|
|
|
* @param array $high High price, array of real values. |
1010
|
|
|
* @param array $low Low price, array of real values. |
1011
|
|
|
* @param array $close Closing price, array of real values. |
1012
|
|
|
* |
1013
|
|
|
* @return array Returns an array with calculated data. |
1014
|
|
|
*/ |
1015
|
|
|
public function cdlrickshawman(array $open, array $high, array $low, array $close): array |
|
|
|
|
1016
|
|
|
{ |
1017
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1018
|
|
|
} |
1019
|
|
|
|
1020
|
|
|
/** |
1021
|
|
|
* Rising/Falling Three Methods. |
1022
|
|
|
* |
1023
|
|
|
* @param array $open Opening price, array of real values. |
1024
|
|
|
* @param array $high High price, array of real values. |
1025
|
|
|
* @param array $low Low price, array of real values. |
1026
|
|
|
* @param array $close Closing price, array of real values. |
1027
|
|
|
* |
1028
|
|
|
* @return array Returns an array with calculated data. |
1029
|
|
|
*/ |
1030
|
|
|
public function cdlrisefall3methods(array $open, array $high, array $low, array $close): array |
|
|
|
|
1031
|
|
|
{ |
1032
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1033
|
|
|
} |
1034
|
|
|
|
1035
|
|
|
/** |
1036
|
|
|
* Separating Lines. |
1037
|
|
|
* |
1038
|
|
|
* @param array $open Opening price, array of real values. |
1039
|
|
|
* @param array $high High price, array of real values. |
1040
|
|
|
* @param array $low Low price, array of real values. |
1041
|
|
|
* @param array $close Closing price, array of real values. |
1042
|
|
|
* |
1043
|
|
|
* @return array Returns an array with calculated data. |
1044
|
|
|
*/ |
1045
|
|
|
public function cdlseparatinglines(array $open, array $high, array $low, array $close): array |
|
|
|
|
1046
|
|
|
{ |
1047
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1048
|
|
|
} |
1049
|
|
|
|
1050
|
|
|
/** |
1051
|
|
|
* Shooting Star. |
1052
|
|
|
* |
1053
|
|
|
* @param array $open Opening price, array of real values. |
1054
|
|
|
* @param array $high High price, array of real values. |
1055
|
|
|
* @param array $low Low price, array of real values. |
1056
|
|
|
* @param array $close Closing price, array of real values. |
1057
|
|
|
* |
1058
|
|
|
* @return array Returns an array with calculated data. |
1059
|
|
|
*/ |
1060
|
|
|
public function cdlshootingstar(array $open, array $high, array $low, array $close): array |
|
|
|
|
1061
|
|
|
{ |
1062
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1063
|
|
|
} |
1064
|
|
|
|
1065
|
|
|
/** |
1066
|
|
|
* Short Line Candle. |
1067
|
|
|
* |
1068
|
|
|
* @param array $open Opening price, array of real values. |
1069
|
|
|
* @param array $high High price, array of real values. |
1070
|
|
|
* @param array $low Low price, array of real values. |
1071
|
|
|
* @param array $close Closing price, array of real values. |
1072
|
|
|
* |
1073
|
|
|
* @return array Returns an array with calculated data. |
1074
|
|
|
*/ |
1075
|
|
|
public function cdlshortline(array $open, array $high, array $low, array $close): array |
|
|
|
|
1076
|
|
|
{ |
1077
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1078
|
|
|
} |
1079
|
|
|
|
1080
|
|
|
/** |
1081
|
|
|
* Spinning Top. |
1082
|
|
|
* |
1083
|
|
|
* @param array $open Opening price, array of real values. |
1084
|
|
|
* @param array $high High price, array of real values. |
1085
|
|
|
* @param array $low Low price, array of real values. |
1086
|
|
|
* @param array $close Closing price, array of real values. |
1087
|
|
|
* |
1088
|
|
|
* @return array Returns an array with calculated data. |
1089
|
|
|
*/ |
1090
|
|
|
public function cdlspinningtop(array $open, array $high, array $low, array $close): array |
|
|
|
|
1091
|
|
|
{ |
1092
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1093
|
|
|
} |
1094
|
|
|
|
1095
|
|
|
/** |
1096
|
|
|
* Stalled Pattern. |
1097
|
|
|
* |
1098
|
|
|
* @param array $open Opening price, array of real values. |
1099
|
|
|
* @param array $high High price, array of real values. |
1100
|
|
|
* @param array $low Low price, array of real values. |
1101
|
|
|
* @param array $close Closing price, array of real values. |
1102
|
|
|
* |
1103
|
|
|
* @return array Returns an array with calculated data. |
1104
|
|
|
*/ |
1105
|
|
|
public function cdlstalledpattern(array $open, array $high, array $low, array $close): array |
|
|
|
|
1106
|
|
|
{ |
1107
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1108
|
|
|
} |
1109
|
|
|
|
1110
|
|
|
/** |
1111
|
|
|
* Stick Sandwich. |
1112
|
|
|
* |
1113
|
|
|
* @param array $open Opening price, array of real values. |
1114
|
|
|
* @param array $high High price, array of real values. |
1115
|
|
|
* @param array $low Low price, array of real values. |
1116
|
|
|
* @param array $close Closing price, array of real values. |
1117
|
|
|
* |
1118
|
|
|
* @return array Returns an array with calculated data. |
1119
|
|
|
*/ |
1120
|
|
|
public function cdlsticksandwich(array $open, array $high, array $low, array $close): array |
|
|
|
|
1121
|
|
|
{ |
1122
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1123
|
|
|
} |
1124
|
|
|
|
1125
|
|
|
/** |
1126
|
|
|
* Takuri (Dragonfly Doji with very long lower shadow). |
1127
|
|
|
* |
1128
|
|
|
* @param array $open Opening price, array of real values. |
1129
|
|
|
* @param array $high High price, array of real values. |
1130
|
|
|
* @param array $low Low price, array of real values. |
1131
|
|
|
* @param array $close Closing price, array of real values. |
1132
|
|
|
* |
1133
|
|
|
* @return array Returns an array with calculated data. |
1134
|
|
|
*/ |
1135
|
|
|
public function cdltakuri(array $open, array $high, array $low, array $close): array |
|
|
|
|
1136
|
|
|
{ |
1137
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1138
|
|
|
} |
1139
|
|
|
|
1140
|
|
|
/** |
1141
|
|
|
* Tasuki Gap. |
1142
|
|
|
* |
1143
|
|
|
* @param array $open Opening price, array of real values. |
1144
|
|
|
* @param array $high High price, array of real values. |
1145
|
|
|
* @param array $low Low price, array of real values. |
1146
|
|
|
* @param array $close Closing price, array of real values. |
1147
|
|
|
* |
1148
|
|
|
* @return array Returns an array with calculated data. |
1149
|
|
|
*/ |
1150
|
|
|
public function cdltasukigap(array $open, array $high, array $low, array $close): array |
|
|
|
|
1151
|
|
|
{ |
1152
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1153
|
|
|
} |
1154
|
|
|
|
1155
|
|
|
/** |
1156
|
|
|
* Thrusting Pattern. |
1157
|
|
|
* |
1158
|
|
|
* @param array $open Opening price, array of real values. |
1159
|
|
|
* @param array $high High price, array of real values. |
1160
|
|
|
* @param array $low Low price, array of real values. |
1161
|
|
|
* @param array $close Closing price, array of real values. |
1162
|
|
|
* |
1163
|
|
|
* @return array Returns an array with calculated data. |
1164
|
|
|
*/ |
1165
|
|
|
public function cdlthrusting(array $open, array $high, array $low, array $close): array |
|
|
|
|
1166
|
|
|
{ |
1167
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1168
|
|
|
} |
1169
|
|
|
|
1170
|
|
|
/** |
1171
|
|
|
* Tristar Pattern. |
1172
|
|
|
* |
1173
|
|
|
* @param array $open Opening price, array of real values. |
1174
|
|
|
* @param array $high High price, array of real values. |
1175
|
|
|
* @param array $low Low price, array of real values. |
1176
|
|
|
* @param array $close Closing price, array of real values. |
1177
|
|
|
* |
1178
|
|
|
* @return array Returns an array with calculated data. |
1179
|
|
|
*/ |
1180
|
|
|
public function cdltristar(array $open, array $high, array $low, array $close): array |
|
|
|
|
1181
|
|
|
{ |
1182
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1183
|
|
|
} |
1184
|
|
|
|
1185
|
|
|
/** |
1186
|
|
|
* Unique 3 River. |
1187
|
|
|
* |
1188
|
|
|
* @param array $open Opening price, array of real values. |
1189
|
|
|
* @param array $high High price, array of real values. |
1190
|
|
|
* @param array $low Low price, array of real values. |
1191
|
|
|
* @param array $close Closing price, array of real values. |
1192
|
|
|
* |
1193
|
|
|
* @return array Returns an array with calculated data. |
1194
|
|
|
*/ |
1195
|
|
|
public function cdlunique3river(array $open, array $high, array $low, array $close): array |
|
|
|
|
1196
|
|
|
{ |
1197
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1198
|
|
|
} |
1199
|
|
|
|
1200
|
|
|
/** |
1201
|
|
|
* Upside Gap Two Crows. |
1202
|
|
|
* |
1203
|
|
|
* @param array $open Opening price, array of real values. |
1204
|
|
|
* @param array $high High price, array of real values. |
1205
|
|
|
* @param array $low Low price, array of real values. |
1206
|
|
|
* @param array $close Closing price, array of real values. |
1207
|
|
|
* |
1208
|
|
|
* @return array Returns an array with calculated data. |
1209
|
|
|
*/ |
1210
|
|
|
public function cdlupsidegap2crows(array $open, array $high, array $low, array $close): array |
|
|
|
|
1211
|
|
|
{ |
1212
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1213
|
|
|
} |
1214
|
|
|
|
1215
|
|
|
/** |
1216
|
|
|
* Upside/Downside Gap Three Methods. |
1217
|
|
|
* |
1218
|
|
|
* @param array $open Opening price, array of real values. |
1219
|
|
|
* @param array $high High price, array of real values. |
1220
|
|
|
* @param array $low Low price, array of real values. |
1221
|
|
|
* @param array $close Closing price, array of real values. |
1222
|
|
|
* |
1223
|
|
|
* @return array Returns an array with calculated data. |
1224
|
|
|
*/ |
1225
|
|
|
public function cdlxsidegap3methods(array $open, array $high, array $low, array $close): array |
|
|
|
|
1226
|
|
|
{ |
1227
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1228
|
|
|
} |
1229
|
|
|
|
1230
|
|
|
/** |
1231
|
|
|
* Vector Ceil. |
1232
|
|
|
* |
1233
|
|
|
* Calculates the next highest integer for each value in real and returns the resulting array. |
1234
|
|
|
* |
1235
|
|
|
* @param array $real Array of real values. |
1236
|
|
|
* |
1237
|
|
|
* @return array Returns an array with calculated data. |
1238
|
|
|
*/ |
1239
|
|
|
public function ceil(array $real): array |
|
|
|
|
1240
|
|
|
{ |
1241
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1242
|
|
|
} |
1243
|
|
|
|
1244
|
|
|
/** |
1245
|
|
|
* Chande Momentum Oscillator. |
1246
|
|
|
* |
1247
|
|
|
* @param array $real Array of real values. |
1248
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1249
|
|
|
* |
1250
|
|
|
* @return array Returns an array with calculated data. |
1251
|
|
|
*/ |
1252
|
|
|
public function cmo(array $real, int $timePeriod = 14): array |
|
|
|
|
1253
|
|
|
{ |
1254
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1255
|
|
|
} |
1256
|
|
|
|
1257
|
|
|
/** |
1258
|
|
|
* Pearson's Correlation Coefficient (r). |
1259
|
|
|
* |
1260
|
|
|
* @param array $real0 Array of real values. |
1261
|
|
|
* @param array $real1 Array of real values. |
1262
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1263
|
|
|
* |
1264
|
|
|
* @return array Returns an array with calculated data. |
1265
|
|
|
*/ |
1266
|
|
|
public function correl(array $real0, array $real1, int $timePeriod = 30): array |
|
|
|
|
1267
|
|
|
{ |
1268
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1269
|
|
|
} |
1270
|
|
|
|
1271
|
|
|
/** |
1272
|
|
|
* Vector Trigonometric Cos. |
1273
|
|
|
* |
1274
|
|
|
* Calculates the cosine for each value in real and returns the resulting array. |
1275
|
|
|
* |
1276
|
|
|
* @param array $real Array of real values. |
1277
|
|
|
* |
1278
|
|
|
* @return array Returns an array with calculated data. |
1279
|
|
|
*/ |
1280
|
|
|
public function cos(array $real): array |
|
|
|
|
1281
|
|
|
{ |
1282
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1283
|
|
|
} |
1284
|
|
|
|
1285
|
|
|
/** |
1286
|
|
|
* Vector Trigonometric Cosh. |
1287
|
|
|
* |
1288
|
|
|
* Calculates the hyperbolic cosine for each value in real and returns the resulting array. |
1289
|
|
|
* |
1290
|
|
|
* @param array $real Array of real values. |
1291
|
|
|
* |
1292
|
|
|
* @return array Returns an array with calculated data. |
1293
|
|
|
*/ |
1294
|
|
|
public function cosh(array $real): array |
|
|
|
|
1295
|
|
|
{ |
1296
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1297
|
|
|
} |
1298
|
|
|
|
1299
|
|
|
/** |
1300
|
|
|
* Double Exponential Moving Average. |
1301
|
|
|
* |
1302
|
|
|
* @param array $real Array of real values. |
1303
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1304
|
|
|
* |
1305
|
|
|
* @return array Returns an array with calculated data. |
1306
|
|
|
*/ |
1307
|
|
|
public function dema(array $real, int $timePeriod = 30): array |
|
|
|
|
1308
|
|
|
{ |
1309
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1310
|
|
|
} |
1311
|
|
|
|
1312
|
|
|
/** |
1313
|
|
|
* Vector Arithmetic Div. |
1314
|
|
|
* |
1315
|
|
|
* Divides each value from real0 by the corresponding value from real1 and returns the resulting array. |
1316
|
|
|
* |
1317
|
|
|
* @param array $real0 Array of real values. |
1318
|
|
|
* @param array $real1 Array of real values. |
1319
|
|
|
* |
1320
|
|
|
* @return array Returns an array with calculated data. |
1321
|
|
|
*/ |
1322
|
|
|
public function div(array $real0, array $real1): array |
|
|
|
|
1323
|
|
|
{ |
1324
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1325
|
|
|
} |
1326
|
|
|
|
1327
|
|
|
/** |
1328
|
|
|
* Directional Movement Index. |
1329
|
|
|
* |
1330
|
|
|
* @param array $high High price, array of real values. |
1331
|
|
|
* @param array $low Low price, array of real values. |
1332
|
|
|
* @param array $close Closing price, array of real values. |
1333
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1334
|
|
|
* |
1335
|
|
|
* @return array Returns an array with calculated data. |
1336
|
|
|
*/ |
1337
|
|
|
public function dx(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
1338
|
|
|
{ |
1339
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1340
|
|
|
} |
1341
|
|
|
|
1342
|
|
|
/** |
1343
|
|
|
* Exponential Moving Average. |
1344
|
|
|
* |
1345
|
|
|
* @param array $real Array of real values. |
1346
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1347
|
|
|
* |
1348
|
|
|
* @return array Returns an array with calculated data. |
1349
|
|
|
*/ |
1350
|
|
|
public function ema(array $real, int $timePeriod = 30): array |
|
|
|
|
1351
|
|
|
{ |
1352
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1353
|
|
|
} |
1354
|
|
|
|
1355
|
|
|
/** |
1356
|
|
|
* Get error code. |
1357
|
|
|
* |
1358
|
|
|
* Get error code of the last operation. |
1359
|
|
|
* |
1360
|
|
|
* @return int Returns the error code identified by one of the ERR_* constants. |
1361
|
|
|
*/ |
1362
|
|
|
public function errno(): int |
1363
|
|
|
{ |
1364
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1365
|
|
|
} |
1366
|
|
|
|
1367
|
|
|
/** |
1368
|
|
|
* Vector Arithmetic Exp. |
1369
|
|
|
* |
1370
|
|
|
* Calculates e raised to the power of each value in real. Returns an array with the calculated data. |
1371
|
|
|
* |
1372
|
|
|
* @param array $real Array of real values. |
1373
|
|
|
* |
1374
|
|
|
* @return array Returns an array with calculated data. |
1375
|
|
|
*/ |
1376
|
|
|
public function exp(array $real): array |
|
|
|
|
1377
|
|
|
{ |
1378
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1379
|
|
|
} |
1380
|
|
|
|
1381
|
|
|
/** |
1382
|
|
|
* Vector Floor. |
1383
|
|
|
* |
1384
|
|
|
* Calculates the next lowest integer for each value in real and returns the resulting array. |
1385
|
|
|
* |
1386
|
|
|
* @param array $real Array of real values. |
1387
|
|
|
* |
1388
|
|
|
* @return array Returns an array with calculated data. |
1389
|
|
|
*/ |
1390
|
|
|
public function floor(array $real): array |
|
|
|
|
1391
|
|
|
{ |
1392
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1393
|
|
|
} |
1394
|
|
|
|
1395
|
|
|
/** |
1396
|
|
|
* Get compatibility mode. |
1397
|
|
|
* |
1398
|
|
|
* Get compatibility mode which affects the way calculations are done by all the extension functions. |
1399
|
|
|
* |
1400
|
|
|
* @return int Returns the compatibility mode id which can be identified by COMPATIBILITY_* series of constants. |
1401
|
|
|
*/ |
1402
|
|
|
public function get_compat(): int |
1403
|
|
|
{ |
1404
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1405
|
|
|
} |
1406
|
|
|
|
1407
|
|
|
/** |
1408
|
|
|
* Get unstable period. |
1409
|
|
|
* |
1410
|
|
|
* Get unstable period factor for a particular function. |
1411
|
|
|
* |
1412
|
|
|
* @param int $functionId Function ID the factor to be read for. FUNC_UNST_* series of constants should be used. |
1413
|
|
|
* |
1414
|
|
|
* @return int Returns the unstable period factor for the corresponding function. |
1415
|
|
|
*/ |
1416
|
|
|
public function get_unstable_period(int $functionId): int |
|
|
|
|
1417
|
|
|
{ |
1418
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1419
|
|
|
} |
1420
|
|
|
|
1421
|
|
|
/** |
1422
|
|
|
* Hilbert Transform - Dominant Cycle Period. |
1423
|
|
|
* |
1424
|
|
|
* @param array $real Array of real values. |
1425
|
|
|
* |
1426
|
|
|
* @return array Returns an array with calculated data. |
1427
|
|
|
*/ |
1428
|
|
|
public function ht_dcperiod(array $real): array |
|
|
|
|
1429
|
|
|
{ |
1430
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1431
|
|
|
} |
1432
|
|
|
|
1433
|
|
|
/** |
1434
|
|
|
* Hilbert Transform - Dominant Cycle Phase. |
1435
|
|
|
* |
1436
|
|
|
* @param array $real Array of real values. |
1437
|
|
|
* |
1438
|
|
|
* @return array Returns an array with calculated data. |
1439
|
|
|
*/ |
1440
|
|
|
public function ht_dcphase(array $real): array |
|
|
|
|
1441
|
|
|
{ |
1442
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1443
|
|
|
} |
1444
|
|
|
|
1445
|
|
|
/** |
1446
|
|
|
* Hilbert Transform - Phasor Components. |
1447
|
|
|
* |
1448
|
|
|
* @param array $open Opening price, array of real values. |
1449
|
|
|
* @param array $close Closing price, array of real values. |
1450
|
|
|
* |
1451
|
|
|
* @return array Returns an array with calculated data. |
1452
|
|
|
*/ |
1453
|
|
|
public function ht_phasor(array $open, array $close): array |
|
|
|
|
1454
|
|
|
{ |
1455
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1456
|
|
|
} |
1457
|
|
|
|
1458
|
|
|
/** |
1459
|
|
|
* Hilbert Transform - Phasor Components. |
1460
|
|
|
* |
1461
|
|
|
* @param array $open Opening price, array of real values. |
1462
|
|
|
* @param array $close Closing price, array of real values. |
1463
|
|
|
* |
1464
|
|
|
* @return array Returns an array with calculated data. |
1465
|
|
|
*/ |
1466
|
|
|
public function ht_sine(array $open, array $close): array |
|
|
|
|
1467
|
|
|
{ |
1468
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1469
|
|
|
} |
1470
|
|
|
|
1471
|
|
|
/** |
1472
|
|
|
* Hilbert Transform - Instantaneous Trendline. |
1473
|
|
|
* |
1474
|
|
|
* @param array $real Array of real values. |
1475
|
|
|
* |
1476
|
|
|
* @return array Returns an array with calculated data. |
1477
|
|
|
*/ |
1478
|
|
|
public function ht_trendline(array $real): array |
|
|
|
|
1479
|
|
|
{ |
1480
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1481
|
|
|
} |
1482
|
|
|
|
1483
|
|
|
/** |
1484
|
|
|
* Hilbert Transform - Trend vs Cycle Mode. |
1485
|
|
|
* |
1486
|
|
|
* @param array $real Array of real values. |
1487
|
|
|
* |
1488
|
|
|
* @return array Returns an array with calculated data. |
1489
|
|
|
*/ |
1490
|
|
|
public function ht_trendmode(array $real): array |
|
|
|
|
1491
|
|
|
{ |
1492
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1493
|
|
|
} |
1494
|
|
|
|
1495
|
|
|
/** |
1496
|
|
|
* Kaufman Adaptive Moving Average. |
1497
|
|
|
* |
1498
|
|
|
* @param array $real Array of real values. |
1499
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1500
|
|
|
* |
1501
|
|
|
* @return array Returns an array with calculated data. |
1502
|
|
|
*/ |
1503
|
|
|
public function kama(array $real, int $timePeriod = 30): array |
|
|
|
|
1504
|
|
|
{ |
1505
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1506
|
|
|
} |
1507
|
|
|
|
1508
|
|
|
/** |
1509
|
|
|
* Linear Regression Angle. |
1510
|
|
|
* |
1511
|
|
|
* @param array $real Array of real values. |
1512
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1513
|
|
|
* |
1514
|
|
|
* @return array Returns an array with calculated data. |
1515
|
|
|
*/ |
1516
|
|
|
public function linearreg_angle(array $real, int $timePeriod = 14): array |
|
|
|
|
1517
|
|
|
{ |
1518
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1519
|
|
|
} |
1520
|
|
|
|
1521
|
|
|
/** |
1522
|
|
|
* Linear Regression Angle. |
1523
|
|
|
* |
1524
|
|
|
* @param array $real Array of real values. |
1525
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1526
|
|
|
* |
1527
|
|
|
* @return array Returns an array with calculated data. |
1528
|
|
|
*/ |
1529
|
|
|
public function linearreg_intercept(array $real, int $timePeriod = 14): array |
|
|
|
|
1530
|
|
|
{ |
1531
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1532
|
|
|
} |
1533
|
|
|
|
1534
|
|
|
/** |
1535
|
|
|
* Linear Regression Slope. |
1536
|
|
|
* |
1537
|
|
|
* @param array $real Array of real values. |
1538
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1539
|
|
|
* |
1540
|
|
|
* @return array Returns an array with calculated data. |
1541
|
|
|
*/ |
1542
|
|
|
public function linearreg_slope(array $real, int $timePeriod = 14): array |
|
|
|
|
1543
|
|
|
{ |
1544
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1545
|
|
|
} |
1546
|
|
|
|
1547
|
|
|
/** |
1548
|
|
|
* Linear Regression. |
1549
|
|
|
* |
1550
|
|
|
* @param array $real Array of real values. |
1551
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1552
|
|
|
* |
1553
|
|
|
* @return array Returns an array with calculated data. |
1554
|
|
|
*/ |
1555
|
|
|
public function linearreg(array $real, int $timePeriod = 14): array |
|
|
|
|
1556
|
|
|
{ |
1557
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1558
|
|
|
} |
1559
|
|
|
|
1560
|
|
|
/** |
1561
|
|
|
* Vector Log Natural. |
1562
|
|
|
* |
1563
|
|
|
* Calculates the natural logarithm for each value in real and returns the resulting array. |
1564
|
|
|
* |
1565
|
|
|
* @param array $real Array of real values. |
1566
|
|
|
* |
1567
|
|
|
* @return array Returns an array with calculated data. |
1568
|
|
|
*/ |
1569
|
|
|
public function ln(array $real): array |
|
|
|
|
1570
|
|
|
{ |
1571
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1572
|
|
|
} |
1573
|
|
|
|
1574
|
|
|
/** |
1575
|
|
|
* Vector Log10. |
1576
|
|
|
* |
1577
|
|
|
* Calculates the base-10 logarithm for each value in real and returns the resulting array. |
1578
|
|
|
* |
1579
|
|
|
* @param array $real Array of real values. |
1580
|
|
|
* |
1581
|
|
|
* @return array Returns an array with calculated data. |
1582
|
|
|
*/ |
1583
|
|
|
public function log10(array $real): array |
|
|
|
|
1584
|
|
|
{ |
1585
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1586
|
|
|
} |
1587
|
|
|
|
1588
|
|
|
/** |
1589
|
|
|
* Moving average. |
1590
|
|
|
* |
1591
|
|
|
* @param array $real Array of real values. |
1592
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1593
|
|
|
* @param int $mAType Type of Moving Average. MA_TYPE_* series of constants should be used. |
1594
|
|
|
* |
1595
|
|
|
* @return array Returns an array with calculated data. |
1596
|
|
|
*/ |
1597
|
|
|
public function ma(array $real, int $timePeriod = 30, int $mAType = 0): array |
|
|
|
|
1598
|
|
|
{ |
1599
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1600
|
|
|
} |
1601
|
|
|
|
1602
|
|
|
/** |
1603
|
|
|
* Moving Average Convergence/Divergence. |
1604
|
|
|
* |
1605
|
|
|
* @param array $real Array of real values. |
1606
|
|
|
* @param int $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000. |
1607
|
|
|
* @param int $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000. |
1608
|
|
|
* @param int $signalPeriod Smoothing for the signal line (nb of period). Valid range from 1 to 100000. |
1609
|
|
|
* |
1610
|
|
|
* @return array Returns an array with calculated data. |
1611
|
|
|
*/ |
1612
|
|
|
public function macd( |
1613
|
|
|
array $real, |
|
|
|
|
1614
|
|
|
int $fastPeriod = 12, |
|
|
|
|
1615
|
|
|
int $slowPeriod = 26, |
|
|
|
|
1616
|
|
|
int $signalPeriod = 9 |
|
|
|
|
1617
|
|
|
): array { |
1618
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1619
|
|
|
} |
1620
|
|
|
|
1621
|
|
|
/** |
1622
|
|
|
* Moving Average Convergence/Divergence with controllable Moving Average type. |
1623
|
|
|
* |
1624
|
|
|
* @param array $real Array of real values. |
1625
|
|
|
* @param int $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000. |
1626
|
|
|
* @param int $fastMAType Type of Moving Average for fast MA. MA_TYPE_* series of constants should be used. |
1627
|
|
|
* @param int $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000. |
1628
|
|
|
* @param int $slowMAType Type of Moving Average for fast MA. MA_TYPE_* series of constants should be used. |
1629
|
|
|
* @param int $signalPeriod Smoothing for the signal line (nb of period). Valid range from 1 to 100000. |
1630
|
|
|
* |
1631
|
|
|
* @return array Returns an array with calculated data. |
1632
|
|
|
*/ |
1633
|
|
|
public function macdext( |
1634
|
|
|
array $real, |
|
|
|
|
1635
|
|
|
int $fastPeriod = 12, |
|
|
|
|
1636
|
|
|
int $fastMAType = 0, |
|
|
|
|
1637
|
|
|
int $slowPeriod = 26, |
|
|
|
|
1638
|
|
|
int $slowMAType = 0, |
|
|
|
|
1639
|
|
|
int $signalPeriod = 9 |
|
|
|
|
1640
|
|
|
): array { |
1641
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1642
|
|
|
} |
1643
|
|
|
|
1644
|
|
|
/** |
1645
|
|
|
* Moving Average Convergence/Divergence Fix 12/26. |
1646
|
|
|
* |
1647
|
|
|
* @param array $real Array of real values. |
1648
|
|
|
* @param int $signalPeriod Smoothing for the signal line (nb of period). Valid range from 1 to 100000. |
1649
|
|
|
* |
1650
|
|
|
* @return array Returns an array with calculated data. |
1651
|
|
|
*/ |
1652
|
|
|
public function macdfix(array $real, int $signalPeriod = 9): array |
|
|
|
|
1653
|
|
|
{ |
1654
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1655
|
|
|
} |
1656
|
|
|
|
1657
|
|
|
/** |
1658
|
|
|
* MESA Adaptive Moving Average. |
1659
|
|
|
* |
1660
|
|
|
* @param array $real Array of real values. |
1661
|
|
|
* @param float $fastLimit Upper limit use in the adaptive algorithm. Valid range from 0.01 to 0.99. |
1662
|
|
|
* @param float $slowLimit Lower limit use in the adaptive algorithm. Valid range from 0.01 to 0.99. |
1663
|
|
|
* |
1664
|
|
|
* @return array Returns an array with calculated data. |
1665
|
|
|
*/ |
1666
|
|
|
public function mama(array $real, float $fastLimit = 0.5, float $slowLimit = 0.05): array |
|
|
|
|
1667
|
|
|
{ |
1668
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1669
|
|
|
} |
1670
|
|
|
|
1671
|
|
|
/** |
1672
|
|
|
* Moving average with variable period |
1673
|
|
|
* |
1674
|
|
|
* @param array $real Array of real values. |
1675
|
|
|
* @param array $periods Array of real values. |
1676
|
|
|
* @param int $minPeriod Value less than minimum will be changed to Minimum period. Valid range from 2 to 100000 |
1677
|
|
|
* @param int $maxPeriod Value higher than maximum will be changed to Maximum period. Valid range from 2 to 100000 |
1678
|
|
|
* @param int $mAType Type of Moving Average. MA_TYPE_* series of constants should be used. |
1679
|
|
|
* |
1680
|
|
|
* @return array Returns an array with calculated data. |
1681
|
|
|
*/ |
1682
|
|
|
public function mavp( |
1683
|
|
|
array $real, |
|
|
|
|
1684
|
|
|
array $periods, |
|
|
|
|
1685
|
|
|
int $minPeriod = 2, |
|
|
|
|
1686
|
|
|
int $maxPeriod = 30, |
|
|
|
|
1687
|
|
|
int $mAType = 0 |
|
|
|
|
1688
|
|
|
): array { |
1689
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1690
|
|
|
} |
1691
|
|
|
|
1692
|
|
|
/** |
1693
|
|
|
* Highest value over a specified period. |
1694
|
|
|
* |
1695
|
|
|
* @param array $real Array of real values. |
1696
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1697
|
|
|
* |
1698
|
|
|
* @return array Returns an array with calculated data. |
1699
|
|
|
*/ |
1700
|
|
|
public function max(array $real, int $timePeriod = 30): array |
|
|
|
|
1701
|
|
|
{ |
1702
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1703
|
|
|
} |
1704
|
|
|
|
1705
|
|
|
/** |
1706
|
|
|
* Index of highest value over a specified period |
1707
|
|
|
* |
1708
|
|
|
* @param array $real Array of real values. |
1709
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1710
|
|
|
* |
1711
|
|
|
* @return array Returns an array with calculated data. |
1712
|
|
|
*/ |
1713
|
|
|
public function maxindex(array $real, int $timePeriod = 30): array |
|
|
|
|
1714
|
|
|
{ |
1715
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1716
|
|
|
} |
1717
|
|
|
|
1718
|
|
|
/** |
1719
|
|
|
* Median Price. |
1720
|
|
|
* |
1721
|
|
|
* @param array $high High price, array of real values. |
1722
|
|
|
* @param array $low Low price, array of real values. |
1723
|
|
|
* |
1724
|
|
|
* @return array Returns an array with calculated data. |
1725
|
|
|
*/ |
1726
|
|
|
public function medprice(array $high, array $low): array |
|
|
|
|
1727
|
|
|
{ |
1728
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1729
|
|
|
} |
1730
|
|
|
|
1731
|
|
|
/** |
1732
|
|
|
* Money Flow Index. |
1733
|
|
|
* |
1734
|
|
|
* @param array $high High price, array of real values. |
1735
|
|
|
* @param array $low Low price, array of real values. |
1736
|
|
|
* @param array $close Closing price, array of real values. |
1737
|
|
|
* @param array $volume Volume traded, array of real values. |
1738
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1739
|
|
|
* |
1740
|
|
|
* @return array Returns an array with calculated data. |
1741
|
|
|
*/ |
1742
|
|
|
public function mfi(array $high, array $low, array $close, array $volume, int $timePeriod = 14): array |
|
|
|
|
1743
|
|
|
{ |
1744
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1745
|
|
|
} |
1746
|
|
|
|
1747
|
|
|
/** |
1748
|
|
|
* MidPoint over period. |
1749
|
|
|
* |
1750
|
|
|
* @param array $real Array of real values. |
1751
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1752
|
|
|
* |
1753
|
|
|
* @return array Returns an array with calculated data. |
1754
|
|
|
*/ |
1755
|
|
|
public function midpoint(array $real, int $timePeriod = 14): array |
|
|
|
|
1756
|
|
|
{ |
1757
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1758
|
|
|
} |
1759
|
|
|
|
1760
|
|
|
/** |
1761
|
|
|
* Midpoint Price over period. |
1762
|
|
|
* |
1763
|
|
|
* @param array $high High price, array of real values. |
1764
|
|
|
* @param array $low Low price, array of real values. |
1765
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1766
|
|
|
* |
1767
|
|
|
* @return array Returns an array with calculated data. |
1768
|
|
|
*/ |
1769
|
|
|
public function midprice(array $high, array $low, int $timePeriod = 14) |
|
|
|
|
1770
|
|
|
{ |
1771
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1772
|
|
|
} |
1773
|
|
|
|
1774
|
|
|
/** |
1775
|
|
|
* Lowest value over a specified period. |
1776
|
|
|
* |
1777
|
|
|
* @param array $real Array of real values. |
1778
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1779
|
|
|
* |
1780
|
|
|
* @return array Returns an array with calculated data. |
1781
|
|
|
*/ |
1782
|
|
|
public function min(array $real, int $timePeriod = 30): array |
|
|
|
|
1783
|
|
|
{ |
1784
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1785
|
|
|
} |
1786
|
|
|
|
1787
|
|
|
/** |
1788
|
|
|
* Index of lowest value over a specified period. |
1789
|
|
|
* |
1790
|
|
|
* @param array $real Array of real values. |
1791
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1792
|
|
|
* |
1793
|
|
|
* @return array Returns an array with calculated data. |
1794
|
|
|
*/ |
1795
|
|
|
public function minindex(array $real, int $timePeriod = 30): array |
|
|
|
|
1796
|
|
|
{ |
1797
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1798
|
|
|
} |
1799
|
|
|
|
1800
|
|
|
/** |
1801
|
|
|
* Lowest and highest values over a specified period. |
1802
|
|
|
* |
1803
|
|
|
* @param array $real Array of real values. |
1804
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1805
|
|
|
* |
1806
|
|
|
* @return array Returns an array with calculated data. |
1807
|
|
|
*/ |
1808
|
|
|
public function minmax(array $real, int $timePeriod = 30): array |
|
|
|
|
1809
|
|
|
{ |
1810
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1811
|
|
|
} |
1812
|
|
|
|
1813
|
|
|
/** |
1814
|
|
|
* Indexes of lowest and highest values over a specified period. |
1815
|
|
|
* |
1816
|
|
|
* @param array $real Array of real values. |
1817
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1818
|
|
|
* |
1819
|
|
|
* @return array Returns an array with calculated data. |
1820
|
|
|
*/ |
1821
|
|
|
public function minmaxindex(array $real, int $timePeriod = 30): array |
|
|
|
|
1822
|
|
|
{ |
1823
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1824
|
|
|
} |
1825
|
|
|
|
1826
|
|
|
/** |
1827
|
|
|
* Minus Directional Indicator. |
1828
|
|
|
* |
1829
|
|
|
* @param array $high High price, array of real values. |
1830
|
|
|
* @param array $low Low price, array of real values. |
1831
|
|
|
* @param array $close Closing price, array of real values. |
1832
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1833
|
|
|
* |
1834
|
|
|
* @return array Returns an array with calculated data. |
1835
|
|
|
*/ |
1836
|
|
|
public function minus_di(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
1837
|
|
|
{ |
1838
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1839
|
|
|
} |
1840
|
|
|
|
1841
|
|
|
/** |
1842
|
|
|
* Minus Directional Movement. |
1843
|
|
|
* |
1844
|
|
|
* @param array $high High price, array of real values. |
1845
|
|
|
* @param array $low Low price, array of real values. |
1846
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1847
|
|
|
* |
1848
|
|
|
* @return array Returns an array with calculated data. |
1849
|
|
|
*/ |
1850
|
|
|
public function minus_dm(array $high, array $low, int $timePeriod = 14): array |
|
|
|
|
1851
|
|
|
{ |
1852
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1853
|
|
|
} |
1854
|
|
|
|
1855
|
|
|
/** |
1856
|
|
|
* Momentum. |
1857
|
|
|
* |
1858
|
|
|
* @param array $real Array of real values. |
1859
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1860
|
|
|
* |
1861
|
|
|
* @return array Returns an array with calculated data. |
1862
|
|
|
*/ |
1863
|
|
|
public function mom(array $real, int $timePeriod = 10): array |
|
|
|
|
1864
|
|
|
{ |
1865
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1866
|
|
|
} |
1867
|
|
|
|
1868
|
|
|
/** |
1869
|
|
|
* Vector Arithmetic Mult. |
1870
|
|
|
* |
1871
|
|
|
* Calculates the vector dot product of real0 with real1 and returns the resulting vector. |
1872
|
|
|
* |
1873
|
|
|
* @param array $real0 Array of real values. |
1874
|
|
|
* @param array $real1 Array of real values. |
1875
|
|
|
* |
1876
|
|
|
* @return array Returns an array with calculated data. |
1877
|
|
|
*/ |
1878
|
|
|
public function mult(array $real0, array $real1): array |
|
|
|
|
1879
|
|
|
{ |
1880
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1881
|
|
|
} |
1882
|
|
|
|
1883
|
|
|
/** |
1884
|
|
|
* Normalized Average True Range. |
1885
|
|
|
* |
1886
|
|
|
* @param array $high High price, array of real values. |
1887
|
|
|
* @param array $low Low price, array of real values. |
1888
|
|
|
* @param array $close Closing price, array of real values. |
1889
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1890
|
|
|
* |
1891
|
|
|
* @return array Returns an array with calculated data. |
1892
|
|
|
*/ |
1893
|
|
|
public function natr(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
1894
|
|
|
{ |
1895
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1896
|
|
|
} |
1897
|
|
|
|
1898
|
|
|
/** |
1899
|
|
|
* On Balance Volume. |
1900
|
|
|
* |
1901
|
|
|
* @param array $real Array of real values. |
1902
|
|
|
* @param array $volume Volume traded, array of real values. |
1903
|
|
|
* |
1904
|
|
|
* @return array Returns an array with calculated data. |
1905
|
|
|
*/ |
1906
|
|
|
public function obv(array $real, array $volume): array |
|
|
|
|
1907
|
|
|
{ |
1908
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1909
|
|
|
} |
1910
|
|
|
|
1911
|
|
|
/** |
1912
|
|
|
* Plus Directional Indicator. |
1913
|
|
|
* |
1914
|
|
|
* @param array $high High price, array of real values. |
1915
|
|
|
* @param array $low Low price, array of real values. |
1916
|
|
|
* @param array $close Closing price, array of real values. |
1917
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1918
|
|
|
* |
1919
|
|
|
* @return array Returns an array with calculated data. |
1920
|
|
|
*/ |
1921
|
|
|
public function plus_di(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
1922
|
|
|
{ |
1923
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1924
|
|
|
} |
1925
|
|
|
|
1926
|
|
|
/** |
1927
|
|
|
* Plus Directional Movement. |
1928
|
|
|
* |
1929
|
|
|
* @param array $high High price, array of real values. |
1930
|
|
|
* @param array $low Low price, array of real values. |
1931
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1932
|
|
|
* |
1933
|
|
|
* @return array Returns an array with calculated data. |
1934
|
|
|
*/ |
1935
|
|
|
public function plus_dm(array $high, array $low, int $timePeriod = 14): array |
|
|
|
|
1936
|
|
|
{ |
1937
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1938
|
|
|
} |
1939
|
|
|
|
1940
|
|
|
/** |
1941
|
|
|
* Percentage Price Oscillator. |
1942
|
|
|
* |
1943
|
|
|
* @param array $real Array of real values. |
1944
|
|
|
* @param int $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000. |
1945
|
|
|
* @param int $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000. |
1946
|
|
|
* @param int $mAType Type of Moving Average. MA_TYPE_* series of constants should be used. |
1947
|
|
|
* |
1948
|
|
|
* @return array Returns an array with calculated data. |
1949
|
|
|
*/ |
1950
|
|
|
public function ppo(array $real, int $fastPeriod = 12, int $slowPeriod = 26, int $mAType = 0): array |
|
|
|
|
1951
|
|
|
{ |
1952
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1953
|
|
|
} |
1954
|
|
|
|
1955
|
|
|
/** |
1956
|
|
|
* Rate of change : ((price/prevPrice)-1)*100. |
1957
|
|
|
* |
1958
|
|
|
* @param array $real Array of real values. |
1959
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1960
|
|
|
* |
1961
|
|
|
* @return array Returns an array with calculated data. |
1962
|
|
|
*/ |
1963
|
|
|
public function roc(array $real, int $timePeriod = 10): array |
|
|
|
|
1964
|
|
|
{ |
1965
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1966
|
|
|
} |
1967
|
|
|
|
1968
|
|
|
/** |
1969
|
|
|
* Rate of change Percentage: (price-prevPrice)/prevPrice. |
1970
|
|
|
* |
1971
|
|
|
* @param array $real Array of real values. |
1972
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1973
|
|
|
* |
1974
|
|
|
* @return array Returns an array with calculated data. |
1975
|
|
|
*/ |
1976
|
|
|
public function rocp(array $real, int $timePeriod = 10): array |
|
|
|
|
1977
|
|
|
{ |
1978
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1979
|
|
|
} |
1980
|
|
|
|
1981
|
|
|
/** |
1982
|
|
|
* Rate of change ratio 100 scale: (price/prevPrice)*100. |
1983
|
|
|
* |
1984
|
|
|
* @param array $real Array of real values. |
1985
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1986
|
|
|
* |
1987
|
|
|
* @return array Returns an array with calculated data. |
1988
|
|
|
*/ |
1989
|
|
|
public function rocr100(array $real, int $timePeriod = 10): array |
|
|
|
|
1990
|
|
|
{ |
1991
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
1992
|
|
|
} |
1993
|
|
|
|
1994
|
|
|
/** |
1995
|
|
|
* Rate of change ratio: (price/prevPrice). |
1996
|
|
|
* |
1997
|
|
|
* @param array $real Array of real values. |
1998
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
1999
|
|
|
* |
2000
|
|
|
* @return array Returns an array with calculated data. |
2001
|
|
|
*/ |
2002
|
|
|
public function rocr(array $real, int $timePeriod = 10): array |
|
|
|
|
2003
|
|
|
{ |
2004
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2005
|
|
|
} |
2006
|
|
|
|
2007
|
|
|
/** |
2008
|
|
|
* Relative Strength Index. |
2009
|
|
|
* |
2010
|
|
|
* @param array $real Array of real values. |
2011
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2012
|
|
|
* |
2013
|
|
|
* @return array Returns an array with calculated data. |
2014
|
|
|
*/ |
2015
|
|
|
public function rsi(array $real, int $timePeriod = 14): array |
|
|
|
|
2016
|
|
|
{ |
2017
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2018
|
|
|
} |
2019
|
|
|
|
2020
|
|
|
/** |
2021
|
|
|
* Parabolic SAR. |
2022
|
|
|
* |
2023
|
|
|
* @param array $high High price, array of real values. |
2024
|
|
|
* @param array $low Low price, array of real values. |
2025
|
|
|
* @param float $acceleration Acceleration Factor used up to the Maximum value. Valid range from 0 to REAL_MAX. |
2026
|
|
|
* @param float $maximum Acceleration Factor Maximum value. Valid range from 0 to REAL_MAX. |
2027
|
|
|
* |
2028
|
|
|
* @return array Returns an array with calculated data. |
2029
|
|
|
*/ |
2030
|
|
|
public function sar(array $high, array $low, float $acceleration = 0.02, float $maximum = 0.2): array |
|
|
|
|
2031
|
|
|
{ |
2032
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2033
|
|
|
} |
2034
|
|
|
|
2035
|
|
|
/** |
2036
|
|
|
* Parabolic SAR - Extended. |
2037
|
|
|
* |
2038
|
|
|
* @param array $high High price, array of real values. |
2039
|
|
|
* @param array $low Low price, array of real values. |
2040
|
|
|
* @param float $startValue Start value and direction. 0 for Auto, >0 for Long, <0 for Short. Valid range from TRADER_REAL_MIN to TRADER_REAL_MAX. |
2041
|
|
|
* @param float $offsetOnReverse Percent offset added/removed to initial stop on short/long reversal. Valid range from 0 to TRADER_REAL_MAX. |
2042
|
|
|
* @param float $accelerationInitLong Acceleration Factor initial value for the Long direction. Valid range from 0 to TRADER_REAL_MAX. |
2043
|
|
|
* @param float $accelerationLong Acceleration Factor for the Long direction. Valid range from 0 to TRADER_REAL_MAX. |
2044
|
|
|
* @param float $accelerationMaxLong Acceleration Factor maximum value for the Long direction. Valid range from 0 to TRADER_REAL_MAX. |
2045
|
|
|
* @param float $accelerationInitShort Acceleration Factor initial value for the Short direction. Valid range from 0 to TRADER_REAL_MAX. |
2046
|
|
|
* @param float $accelerationShort Acceleration Factor for the Short direction. Valid range from 0 to TRADER_REAL_MAX. |
2047
|
|
|
* @param float $accelerationMaxShort Acceleration Factor maximum value for the Short direction. Valid range from 0 to TRADER_REAL_MAX. |
2048
|
|
|
* |
2049
|
|
|
* @return array Returns an array with calculated data. |
2050
|
|
|
*/ |
2051
|
|
|
public function sarext( |
2052
|
|
|
array $high, |
|
|
|
|
2053
|
|
|
array $low, |
|
|
|
|
2054
|
|
|
float $startValue = 0.0, |
|
|
|
|
2055
|
|
|
float $offsetOnReverse = 0.0, |
|
|
|
|
2056
|
|
|
float $accelerationInitLong = 0.02, |
|
|
|
|
2057
|
|
|
float $accelerationLong = 0.02, |
|
|
|
|
2058
|
|
|
float $accelerationMaxLong = 0.2, |
|
|
|
|
2059
|
|
|
float $accelerationInitShort = 0.02, |
|
|
|
|
2060
|
|
|
float $accelerationShort = 0.02, |
|
|
|
|
2061
|
|
|
float $accelerationMaxShort = 0.2 |
|
|
|
|
2062
|
|
|
): array { |
2063
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2064
|
|
|
} |
2065
|
|
|
|
2066
|
|
|
/** |
2067
|
|
|
* Set compatibility mode. |
2068
|
|
|
* |
2069
|
|
|
* Set compatibility mode which will affect the way calculations are done by all the extension functions. |
2070
|
|
|
* |
2071
|
|
|
* @param int $compatId Compatibility Id. TRADER_COMPATIBILITY_* series of constants should be used. |
2072
|
|
|
*/ |
2073
|
|
|
public function set_compat(int $compatId) |
2074
|
|
|
{ |
2075
|
|
|
trader_set_compat($compatId); |
2076
|
|
|
} |
2077
|
|
|
|
2078
|
|
|
/** |
2079
|
|
|
* Set unstable period. |
2080
|
|
|
* |
2081
|
|
|
* Influences unstable period factor for functions, which are sensible to it. More information about unstable periods can be found on the » TA-Lib API documentation page. |
2082
|
|
|
* |
2083
|
|
|
* @param int $functionId Function ID the factor should be set for. FUNC_UNST_* constant series can be used to affect the corresponding function. |
2084
|
|
|
* @param int $timePeriod Unstable period value. |
2085
|
|
|
*/ |
2086
|
|
|
public function set_unstable_period(int $functionId, int $timePeriod) |
2087
|
|
|
{ |
2088
|
|
|
trader_set_unstable_period($functionId, $timePeriod); |
2089
|
|
|
} |
2090
|
|
|
|
2091
|
|
|
/** |
2092
|
|
|
* Vector Trigonometric Sin. |
2093
|
|
|
* |
2094
|
|
|
* Calculates the sine for each value in real and returns the resulting array. |
2095
|
|
|
* |
2096
|
|
|
* @param array $real Array of real values. |
2097
|
|
|
* |
2098
|
|
|
* @return array Returns an array with calculated data. |
2099
|
|
|
*/ |
2100
|
|
|
public function sin(array $real): array |
|
|
|
|
2101
|
|
|
{ |
2102
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2103
|
|
|
} |
2104
|
|
|
|
2105
|
|
|
/** |
2106
|
|
|
* Vector Trigonometric Sinh. |
2107
|
|
|
* |
2108
|
|
|
* Calculates the hyperbolic sine for each value in real and returns the resulting array. |
2109
|
|
|
* |
2110
|
|
|
* @param array $real Array of real values. |
2111
|
|
|
* |
2112
|
|
|
* @return array Returns an array with calculated data. |
2113
|
|
|
*/ |
2114
|
|
|
public function sinh(array $real): array |
|
|
|
|
2115
|
|
|
{ |
2116
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2117
|
|
|
} |
2118
|
|
|
|
2119
|
|
|
/** |
2120
|
|
|
* Simple Moving Average. |
2121
|
|
|
* |
2122
|
|
|
* @param array $real Array of real values. |
2123
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2124
|
|
|
* |
2125
|
|
|
* @return array Returns an array with calculated data. |
2126
|
|
|
*/ |
2127
|
|
|
public function sma(array $real, int $timePeriod = 30): array |
|
|
|
|
2128
|
|
|
{ |
2129
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2130
|
|
|
} |
2131
|
|
|
|
2132
|
|
|
/** |
2133
|
|
|
* Vector Square Root. |
2134
|
|
|
* |
2135
|
|
|
* Calculates the square root of each value in real and returns the resulting array. |
2136
|
|
|
* |
2137
|
|
|
* @param array $real Array of real values. |
2138
|
|
|
* |
2139
|
|
|
* @return array Returns an array with calculated data. |
2140
|
|
|
*/ |
2141
|
|
|
public function sqrt(array $real): array |
|
|
|
|
2142
|
|
|
{ |
2143
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2144
|
|
|
} |
2145
|
|
|
|
2146
|
|
|
/** |
2147
|
|
|
* Standard Deviation. |
2148
|
|
|
* |
2149
|
|
|
* @param array $real Array of real values. |
2150
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2151
|
|
|
* @param float $nbDev Number of deviations |
2152
|
|
|
* |
2153
|
|
|
* @return array Returns an array with calculated data. |
2154
|
|
|
*/ |
2155
|
|
|
public function stddev(array $real, int $timePeriod = 5, float $nbDev = 1.0): array |
|
|
|
|
2156
|
|
|
{ |
2157
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2158
|
|
|
} |
2159
|
|
|
|
2160
|
|
|
/** |
2161
|
|
|
* Stochastic. |
2162
|
|
|
* |
2163
|
|
|
* @param array $high High price, array of real values. |
2164
|
|
|
* @param array $low Low price, array of real values. |
2165
|
|
|
* @param array $close Time period for building the Fast-K line. Valid range from 1 to 100000. |
2166
|
|
|
* @param int $fastK_Period Time period for building the Fast-K line. Valid range from 1 to 100000. |
2167
|
|
|
* @param int $slowK_Period Smoothing for making the Slow-K line. Valid range from 1 to 100000, usually set to 3. |
2168
|
|
|
* @param int $slowK_MAType Type of Moving Average for Slow-K. MA_TYPE_* series of constants should be used. |
2169
|
|
|
* @param int $slowD_Period Smoothing for making the Slow-D line. Valid range from 1 to 100000. |
2170
|
|
|
* @param int $slowD_MAType Type of Moving Average for Slow-D. MA_TYPE_* series of constants should be used. |
2171
|
|
|
* |
2172
|
|
|
* @return array Returns an array with calculated data. |
2173
|
|
|
*/ |
2174
|
|
|
public function stoch( |
2175
|
|
|
array $high, |
|
|
|
|
2176
|
|
|
array $low, |
|
|
|
|
2177
|
|
|
array $close, |
|
|
|
|
2178
|
|
|
int $fastK_Period = 5, |
|
|
|
|
2179
|
|
|
int $slowK_Period = 3, |
|
|
|
|
2180
|
|
|
int $slowK_MAType = 0, |
|
|
|
|
2181
|
|
|
int $slowD_Period = 3, |
|
|
|
|
2182
|
|
|
int $slowD_MAType = 0 |
|
|
|
|
2183
|
|
|
): array { |
2184
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2185
|
|
|
} |
2186
|
|
|
|
2187
|
|
|
/** |
2188
|
|
|
* Stochastic Fast. |
2189
|
|
|
* |
2190
|
|
|
* @param array $high High price, array of real values. |
2191
|
|
|
* @param array $low Low price, array of real values. |
2192
|
|
|
* @param array $close Time period for building the Fast-K line. Valid range from 1 to 100000. |
2193
|
|
|
* @param int $fastK_Period Time period for building the Fast-K line. Valid range from 1 to 100000. |
2194
|
|
|
* @param int $fastD_Period Smoothing for making the Fast-D line. Valid range from 1 to 100000, usually set to 3. |
2195
|
|
|
* @param int $fastD_MAType Type of Moving Average for Fast-D. MA_TYPE_* series of constants should be used. |
2196
|
|
|
* |
2197
|
|
|
* @return array Returns an array with calculated data. |
2198
|
|
|
*/ |
2199
|
|
|
public function stochf( |
2200
|
|
|
array $high, |
|
|
|
|
2201
|
|
|
array $low, |
|
|
|
|
2202
|
|
|
array $close, |
|
|
|
|
2203
|
|
|
int $fastK_Period = 5, |
|
|
|
|
2204
|
|
|
int $fastD_Period = 3, |
|
|
|
|
2205
|
|
|
int $fastD_MAType = 0 |
|
|
|
|
2206
|
|
|
): array { |
2207
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2208
|
|
|
} |
2209
|
|
|
|
2210
|
|
|
/** |
2211
|
|
|
* Stochastic Relative Strength Index. |
2212
|
|
|
* |
2213
|
|
|
* @param array $real Array of real values. |
2214
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2215
|
|
|
* @param int $fastK_Period Time period for building the Fast-K line. Valid range from 1 to 100000. |
2216
|
|
|
* @param int $fastD_Period Smoothing for making the Fast-D line. Valid range from 1 to 100000, usually set to 3. |
2217
|
|
|
* @param int $fastD_MAType Type of Moving Average for Fast-D. MA_TYPE_* series of constants should be used. |
2218
|
|
|
* |
2219
|
|
|
* @return array Returns an array with calculated data. |
2220
|
|
|
*/ |
2221
|
|
|
public function stochrsi( |
2222
|
|
|
array $real, |
|
|
|
|
2223
|
|
|
int $timePeriod = 14, |
|
|
|
|
2224
|
|
|
int $fastK_Period = 5, |
|
|
|
|
2225
|
|
|
int $fastD_Period = 3, |
|
|
|
|
2226
|
|
|
int $fastD_MAType = 0 |
|
|
|
|
2227
|
|
|
): array { |
2228
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2229
|
|
|
} |
2230
|
|
|
|
2231
|
|
|
/** |
2232
|
|
|
* Vector Arithmetic Subtraction. |
2233
|
|
|
* |
2234
|
|
|
* Calculates the vector subtraction of real1 from real0 and returns the resulting vector. |
2235
|
|
|
* |
2236
|
|
|
* @param array $real0 Array of real values. |
2237
|
|
|
* @param array $real1 Array of real values. |
2238
|
|
|
* |
2239
|
|
|
* @return array Returns an array with calculated data. |
2240
|
|
|
*/ |
2241
|
|
|
public function sub(array $real0, array $real1): array |
|
|
|
|
2242
|
|
|
{ |
2243
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2244
|
|
|
} |
2245
|
|
|
|
2246
|
|
|
/** |
2247
|
|
|
* Summation. |
2248
|
|
|
* |
2249
|
|
|
* @param array $real Array of real values. |
2250
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2251
|
|
|
* |
2252
|
|
|
* @return array Returns an array with calculated data. |
2253
|
|
|
*/ |
2254
|
|
|
public function sum(array $real, int $timePeriod = 30): array |
|
|
|
|
2255
|
|
|
{ |
2256
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2257
|
|
|
} |
2258
|
|
|
|
2259
|
|
|
/** |
2260
|
|
|
* Triple Exponential Moving Average (T3). |
2261
|
|
|
* |
2262
|
|
|
* @param array $real Array of real values. |
2263
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2264
|
|
|
* @param float $vFactor Volume Factor. Valid range from 1 to 0. |
2265
|
|
|
* |
2266
|
|
|
* @return array Returns an array with calculated data. |
2267
|
|
|
*/ |
2268
|
|
|
public function t3(array $real, int $timePeriod = 5, float $vFactor = 0.7): array |
|
|
|
|
2269
|
|
|
{ |
2270
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2271
|
|
|
} |
2272
|
|
|
|
2273
|
|
|
/** |
2274
|
|
|
* Vector Trigonometric Tan. |
2275
|
|
|
* |
2276
|
|
|
* Calculates the tangent for each value in real and returns the resulting array. |
2277
|
|
|
* |
2278
|
|
|
* @param array $real Array of real values. |
2279
|
|
|
* |
2280
|
|
|
* @return array Returns an array with calculated data. |
2281
|
|
|
*/ |
2282
|
|
|
public function tan(array $real): array |
|
|
|
|
2283
|
|
|
{ |
2284
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2285
|
|
|
} |
2286
|
|
|
|
2287
|
|
|
/** |
2288
|
|
|
* Vector Trigonometric Tanh. |
2289
|
|
|
* |
2290
|
|
|
* Calculates the hyperbolic tangent for each value in real and returns the resulting array. |
2291
|
|
|
* |
2292
|
|
|
* @param array $real Array of real values. |
2293
|
|
|
* |
2294
|
|
|
* @return array Returns an array with calculated data. |
2295
|
|
|
*/ |
2296
|
|
|
public function tanh(array $real): array |
|
|
|
|
2297
|
|
|
{ |
2298
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2299
|
|
|
} |
2300
|
|
|
|
2301
|
|
|
/** |
2302
|
|
|
* Triple Exponential Moving Average. |
2303
|
|
|
* |
2304
|
|
|
* @param array $real Array of real values. |
2305
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2306
|
|
|
* |
2307
|
|
|
* @return array Returns an array with calculated data. |
2308
|
|
|
*/ |
2309
|
|
|
public function tema(array $real, int $timePeriod = 30): array |
|
|
|
|
2310
|
|
|
{ |
2311
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2312
|
|
|
} |
2313
|
|
|
|
2314
|
|
|
/** |
2315
|
|
|
* True Range. |
2316
|
|
|
* |
2317
|
|
|
* @param array $high High price, array of real values. |
2318
|
|
|
* @param array $low Low price, array of real values. |
2319
|
|
|
* @param array $close Closing price, array of real values. |
2320
|
|
|
* |
2321
|
|
|
* @return array Returns an array with calculated data. |
2322
|
|
|
*/ |
2323
|
|
|
public function trange(array $high, array $low, array $close): array |
|
|
|
|
2324
|
|
|
{ |
2325
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2326
|
|
|
} |
2327
|
|
|
|
2328
|
|
|
/** |
2329
|
|
|
* Triangular Moving Average. |
2330
|
|
|
* |
2331
|
|
|
* @param array $real Array of real values. |
2332
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2333
|
|
|
* |
2334
|
|
|
* @return array Returns an array with calculated data. |
2335
|
|
|
*/ |
2336
|
|
|
public function trima(array $real, int $timePeriod = 30): array |
|
|
|
|
2337
|
|
|
{ |
2338
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2339
|
|
|
} |
2340
|
|
|
|
2341
|
|
|
/** |
2342
|
|
|
* 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA. |
2343
|
|
|
* |
2344
|
|
|
* @param array $real Array of real values. |
2345
|
|
|
* @param int $timePeriod [OPTIONAL] [DEFAULT 30] Number of period. Valid range from 2 to 100000. |
2346
|
|
|
* |
2347
|
|
|
* @return array Returns an array with calculated data. |
2348
|
|
|
*/ |
2349
|
|
|
public function trix(array $real, int $timePeriod = 30): array |
|
|
|
|
2350
|
|
|
{ |
2351
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2352
|
|
|
} |
2353
|
|
|
|
2354
|
|
|
/** |
2355
|
|
|
* Time Series Forecast. |
2356
|
|
|
* |
2357
|
|
|
* @param array $real Array of real values. |
2358
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2359
|
|
|
* |
2360
|
|
|
* @return array Returns an array with calculated data. |
2361
|
|
|
*/ |
2362
|
|
|
public function tsf(array $real, int $timePeriod = 14): array |
|
|
|
|
2363
|
|
|
{ |
2364
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2365
|
|
|
} |
2366
|
|
|
|
2367
|
|
|
/** |
2368
|
|
|
* Typical Price. |
2369
|
|
|
* |
2370
|
|
|
* @param array $high High price, array of real values. |
2371
|
|
|
* @param array $low Low price, array of real values. |
2372
|
|
|
* @param array $close Closing price, array of real values. |
2373
|
|
|
* |
2374
|
|
|
* @return array Returns an array with calculated data. |
2375
|
|
|
*/ |
2376
|
|
|
public function typprice(array $high, array $low, array $close): array |
|
|
|
|
2377
|
|
|
{ |
2378
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2379
|
|
|
} |
2380
|
|
|
|
2381
|
|
|
/** |
2382
|
|
|
* Ultimate Oscillator. |
2383
|
|
|
* |
2384
|
|
|
* @param array $high High price, array of real values. |
2385
|
|
|
* @param array $low Low price, array of real values. |
2386
|
|
|
* @param array $close Closing price, array of real values. |
2387
|
|
|
* @param int $timePeriod1 Number of bars for 1st period. Valid range from 1 to 100000. |
2388
|
|
|
* @param int $timePeriod2 Number of bars for 2nd period. Valid range from 1 to 100000. |
2389
|
|
|
* @param int $timePeriod3 Number of bars for 3rd period. Valid range from 1 to 100000. |
2390
|
|
|
* |
2391
|
|
|
* @return array Returns an array with calculated data. |
2392
|
|
|
*/ |
2393
|
|
|
public function ultosc( |
2394
|
|
|
array $high, |
|
|
|
|
2395
|
|
|
array $low, |
|
|
|
|
2396
|
|
|
array $close, |
|
|
|
|
2397
|
|
|
int $timePeriod1 = 7, |
|
|
|
|
2398
|
|
|
int $timePeriod2 = 14, |
|
|
|
|
2399
|
|
|
int $timePeriod3 = 28 |
|
|
|
|
2400
|
|
|
): array { |
2401
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2402
|
|
|
} |
2403
|
|
|
|
2404
|
|
|
/** |
2405
|
|
|
* Variance. |
2406
|
|
|
* |
2407
|
|
|
* @param array $real Array of real values. |
2408
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2409
|
|
|
* @param float $nbDev Number of deviations |
2410
|
|
|
* |
2411
|
|
|
* @return array Returns an array with calculated data. |
2412
|
|
|
*/ |
2413
|
|
|
public function var(array $real, int $timePeriod = 5, float $nbDev = 1.0): array |
|
|
|
|
2414
|
|
|
{ |
2415
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2416
|
|
|
} |
2417
|
|
|
|
2418
|
|
|
/** |
2419
|
|
|
* Weighted Close Price. |
2420
|
|
|
* |
2421
|
|
|
* @param array $high High price, array of real values. |
2422
|
|
|
* @param array $low Low price, array of real values. |
2423
|
|
|
* @param array $close Closing price, array of real values. |
2424
|
|
|
* |
2425
|
|
|
* @return array Returns an array with calculated data. |
2426
|
|
|
*/ |
2427
|
|
|
public function wclprice(array $high, array $low, array $close): array |
|
|
|
|
2428
|
|
|
{ |
2429
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2430
|
|
|
} |
2431
|
|
|
|
2432
|
|
|
/** |
2433
|
|
|
* Williams' %R. |
2434
|
|
|
* |
2435
|
|
|
* @param array $high High price, array of real values. |
2436
|
|
|
* @param array $low Low price, array of real values. |
2437
|
|
|
* @param array $close Closing price, array of real values. |
2438
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2439
|
|
|
* |
2440
|
|
|
* @return array Returns an array with calculated data. |
2441
|
|
|
*/ |
2442
|
|
|
public function willr(array $high, array $low, array $close, int $timePeriod = 14): array |
|
|
|
|
2443
|
|
|
{ |
2444
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2445
|
|
|
} |
2446
|
|
|
|
2447
|
|
|
/** |
2448
|
|
|
* Weighted Moving Average. |
2449
|
|
|
* |
2450
|
|
|
* @param array $real Array of real values. |
2451
|
|
|
* @param int $timePeriod Number of period. Valid range from 2 to 100000. |
2452
|
|
|
* |
2453
|
|
|
* @return array Returns an array with calculated data. |
2454
|
|
|
*/ |
2455
|
|
|
public function wma(array $real, int $timePeriod = 30): array |
|
|
|
|
2456
|
|
|
{ |
2457
|
|
|
return $this->__call(__FUNCTION__, func_get_args()); |
2458
|
|
|
} |
2459
|
|
|
|
2460
|
|
|
/** |
2461
|
|
|
* @param $name |
2462
|
|
|
* @param $arguments |
2463
|
|
|
* |
2464
|
|
|
* @return mixed |
2465
|
|
|
*/ |
2466
|
|
|
abstract public function __call($name, $arguments); |
2467
|
|
|
} |
2468
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.