You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -289,7 +289,7 @@ protected static function TA_INT_MACD(
289
289
$outBegIdx = $startIdx;
290
290
$outNBElement = $outNbElement2;
291
291
292
-
return ReturnCode::Success;
292
+
return ReturnCode::Success->value;
293
293
}
294
294
295
295
protectedstaticfunctionTA_INT_EMA(int$startIdx, int$endIdx, $inReal, int$optInTimePeriod, float$optInK_1, int &$outBegIdx, int &$outNBElement, array &$outReal): int
@@ -304,10 +304,10 @@ protected static function TA_INT_EMA(int $startIdx, int $endIdx, $inReal, int $o
304
304
$outBegIdx = 0;
305
305
$outNBElement = 0;
306
306
307
-
return ReturnCode::Success;
307
+
return ReturnCode::Success->value;
308
308
}
309
309
$outBegIdx = $startIdx;
310
-
if ((static::$compatibility) === Compatibility::Default) {
310
+
if ((static::$compatibility) === Compatibility::Default->value) {
311
311
$today = $startIdx - $lookbackTotal;
312
312
$i = $optInTimePeriod;
313
313
$tempReal = 0.0;
@@ -330,7 +330,7 @@ protected static function TA_INT_EMA(int $startIdx, int $endIdx, $inReal, int $o
330
330
}
331
331
$outNBElement = $outIdx;
332
332
333
-
return ReturnCode::Success;
333
+
return ReturnCode::Success->value;
334
334
}
335
335
336
336
protectedstaticfunctionTA_INT_SMA(int$startIdx, int$endIdx, array$inReal, int$optInTimePeriod, int &$outBegIdx, int &$outNBElement, array &$outReal): int
@@ -345,7 +345,7 @@ protected static function TA_INT_SMA(int $startIdx, int $endIdx, array $inReal,
345
345
$outBegIdx = 0;
346
346
$outNBElement = 0;
347
347
348
-
return ReturnCode::Success;
348
+
return ReturnCode::Success->value;
349
349
}
350
350
$periodTotal = 0;
351
351
$trailingIdx = $startIdx - $lookbackTotal;
@@ -365,7 +365,7 @@ protected static function TA_INT_SMA(int $startIdx, int $endIdx, array $inReal,
365
365
$outNBElement = $outIdx;
366
366
$outBegIdx = $startIdx;
367
367
368
-
return ReturnCode::Success;
368
+
return ReturnCode::Success->value;
369
369
}
370
370
371
371
protectedstaticfunctionTA_INT_stddev_using_precalc_ma(array$inReal, array$inMovAvg, int$inMovAvgBegIdx, int$inMovAvgNbElement, int$timePeriod, array &$output): int
protectedstaticfunctionTA_INT_VAR(int$startIdx, int$endIdx, array$inReal, int$optInTimePeriod, int &$outBegIdx, int &$outNBElement, array &$outReal): int
@@ -414,7 +414,7 @@ protected static function TA_INT_VAR(int $startIdx, int $endIdx, array $inReal,
414
414
$outBegIdx = 0;
415
415
$outNBElement = 0;
416
416
417
-
return ReturnCode::Success;
417
+
return ReturnCode::Success->value;
418
418
}
419
419
$periodTotal1 = 0;
420
420
$periodTotal2 = 0;
@@ -445,6 +445,6 @@ protected static function TA_INT_VAR(int $startIdx, int $endIdx, array $inReal,
0 commit comments