@marleena/trb-proto 1.0.55 → 1.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -241,7 +241,8 @@ end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(inclu
241
241
  initialCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
242
242
  commissionPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
243
243
  slippagePct: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
244
- longOnly: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
244
+ longOnly: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
245
+ benchmarkUid: jspb.Message.getFieldWithDefault(msg, 9, "")
245
246
  };
246
247
 
247
248
  if (includeInstance) {
@@ -312,6 +313,10 @@ proto.trb.strategy.v1.BacktestConfig.deserializeBinaryFromReader = function(msg,
312
313
  var value = /** @type {boolean} */ (reader.readBool());
313
314
  msg.setLongOnly(value);
314
315
  break;
316
+ case 9:
317
+ var value = /** @type {string} */ (reader.readString());
318
+ msg.setBenchmarkUid(value);
319
+ break;
315
320
  default:
316
321
  reader.skipField();
317
322
  break;
@@ -399,6 +404,13 @@ proto.trb.strategy.v1.BacktestConfig.serializeBinaryToWriter = function(message,
399
404
  f
400
405
  );
401
406
  }
407
+ f = message.getBenchmarkUid();
408
+ if (f.length > 0) {
409
+ writer.writeString(
410
+ 9,
411
+ f
412
+ );
413
+ }
402
414
  };
403
415
 
404
416
 
@@ -584,6 +596,24 @@ proto.trb.strategy.v1.BacktestConfig.prototype.setLongOnly = function(value) {
584
596
  };
585
597
 
586
598
 
599
+ /**
600
+ * optional string benchmark_uid = 9;
601
+ * @return {string}
602
+ */
603
+ proto.trb.strategy.v1.BacktestConfig.prototype.getBenchmarkUid = function() {
604
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
605
+ };
606
+
607
+
608
+ /**
609
+ * @param {string} value
610
+ * @return {!proto.trb.strategy.v1.BacktestConfig} returns this
611
+ */
612
+ proto.trb.strategy.v1.BacktestConfig.prototype.setBenchmarkUid = function(value) {
613
+ return jspb.Message.setProto3StringField(this, 9, value);
614
+ };
615
+
616
+
587
617
 
588
618
 
589
619
 
@@ -629,6 +659,27 @@ exposure: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
629
659
  finalEquity: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
630
660
  avgTradePct: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
631
661
  expectancy: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
662
+ calmar: jspb.Message.getFloatingPointFieldWithDefault(msg, 21, 0.0),
663
+ omega: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
664
+ tailRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 23, 0.0),
665
+ valueAtRisk: jspb.Message.getFloatingPointFieldWithDefault(msg, 24, 0.0),
666
+ conditionalValueAtRisk: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0),
667
+ skew: jspb.Message.getFloatingPointFieldWithDefault(msg, 26, 0.0),
668
+ kurtosis: jspb.Message.getFloatingPointFieldWithDefault(msg, 27, 0.0),
669
+ kellyCriterion: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
670
+ riskOfRuin: jspb.Message.getFloatingPointFieldWithDefault(msg, 29, 0.0),
671
+ recoveryFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 30, 0.0),
672
+ payoffRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 31, 0.0),
673
+ gainToPainRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 32, 0.0),
674
+ outlierWinRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 33, 0.0),
675
+ outlierLossRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 34, 0.0),
676
+ commonSenseRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 35, 0.0),
677
+ ulcerIndex: jspb.Message.getFloatingPointFieldWithDefault(msg, 36, 0.0),
678
+ serenityIndex: jspb.Message.getFloatingPointFieldWithDefault(msg, 37, 0.0),
679
+ alpha: jspb.Message.getFloatingPointFieldWithDefault(msg, 38, 0.0),
680
+ beta: jspb.Message.getFloatingPointFieldWithDefault(msg, 39, 0.0),
681
+ informationRatio: jspb.Message.getFloatingPointFieldWithDefault(msg, 40, 0.0),
682
+ rSquared: jspb.Message.getFloatingPointFieldWithDefault(msg, 41, 0.0),
632
683
  extraMap: (f = msg.getExtraMap()) ? f.toObject(includeInstance, undefined) : []
633
684
  };
634
685
 
@@ -718,6 +769,90 @@ proto.trb.strategy.v1.BacktestMetrics.deserializeBinaryFromReader = function(msg
718
769
  var value = /** @type {number} */ (reader.readDouble());
719
770
  msg.setExpectancy(value);
720
771
  break;
772
+ case 21:
773
+ var value = /** @type {number} */ (reader.readDouble());
774
+ msg.setCalmar(value);
775
+ break;
776
+ case 22:
777
+ var value = /** @type {number} */ (reader.readDouble());
778
+ msg.setOmega(value);
779
+ break;
780
+ case 23:
781
+ var value = /** @type {number} */ (reader.readDouble());
782
+ msg.setTailRatio(value);
783
+ break;
784
+ case 24:
785
+ var value = /** @type {number} */ (reader.readDouble());
786
+ msg.setValueAtRisk(value);
787
+ break;
788
+ case 25:
789
+ var value = /** @type {number} */ (reader.readDouble());
790
+ msg.setConditionalValueAtRisk(value);
791
+ break;
792
+ case 26:
793
+ var value = /** @type {number} */ (reader.readDouble());
794
+ msg.setSkew(value);
795
+ break;
796
+ case 27:
797
+ var value = /** @type {number} */ (reader.readDouble());
798
+ msg.setKurtosis(value);
799
+ break;
800
+ case 28:
801
+ var value = /** @type {number} */ (reader.readDouble());
802
+ msg.setKellyCriterion(value);
803
+ break;
804
+ case 29:
805
+ var value = /** @type {number} */ (reader.readDouble());
806
+ msg.setRiskOfRuin(value);
807
+ break;
808
+ case 30:
809
+ var value = /** @type {number} */ (reader.readDouble());
810
+ msg.setRecoveryFactor(value);
811
+ break;
812
+ case 31:
813
+ var value = /** @type {number} */ (reader.readDouble());
814
+ msg.setPayoffRatio(value);
815
+ break;
816
+ case 32:
817
+ var value = /** @type {number} */ (reader.readDouble());
818
+ msg.setGainToPainRatio(value);
819
+ break;
820
+ case 33:
821
+ var value = /** @type {number} */ (reader.readDouble());
822
+ msg.setOutlierWinRatio(value);
823
+ break;
824
+ case 34:
825
+ var value = /** @type {number} */ (reader.readDouble());
826
+ msg.setOutlierLossRatio(value);
827
+ break;
828
+ case 35:
829
+ var value = /** @type {number} */ (reader.readDouble());
830
+ msg.setCommonSenseRatio(value);
831
+ break;
832
+ case 36:
833
+ var value = /** @type {number} */ (reader.readDouble());
834
+ msg.setUlcerIndex(value);
835
+ break;
836
+ case 37:
837
+ var value = /** @type {number} */ (reader.readDouble());
838
+ msg.setSerenityIndex(value);
839
+ break;
840
+ case 38:
841
+ var value = /** @type {number} */ (reader.readDouble());
842
+ msg.setAlpha(value);
843
+ break;
844
+ case 39:
845
+ var value = /** @type {number} */ (reader.readDouble());
846
+ msg.setBeta(value);
847
+ break;
848
+ case 40:
849
+ var value = /** @type {number} */ (reader.readDouble());
850
+ msg.setInformationRatio(value);
851
+ break;
852
+ case 41:
853
+ var value = /** @type {number} */ (reader.readDouble());
854
+ msg.setRSquared(value);
855
+ break;
721
856
  case 20:
722
857
  var value = msg.getExtraMap();
723
858
  reader.readMessage(value, function(message, reader) {
@@ -844,6 +979,153 @@ proto.trb.strategy.v1.BacktestMetrics.serializeBinaryToWriter = function(message
844
979
  f
845
980
  );
846
981
  }
982
+ f = message.getCalmar();
983
+ if (f !== 0.0) {
984
+ writer.writeDouble(
985
+ 21,
986
+ f
987
+ );
988
+ }
989
+ f = message.getOmega();
990
+ if (f !== 0.0) {
991
+ writer.writeDouble(
992
+ 22,
993
+ f
994
+ );
995
+ }
996
+ f = message.getTailRatio();
997
+ if (f !== 0.0) {
998
+ writer.writeDouble(
999
+ 23,
1000
+ f
1001
+ );
1002
+ }
1003
+ f = message.getValueAtRisk();
1004
+ if (f !== 0.0) {
1005
+ writer.writeDouble(
1006
+ 24,
1007
+ f
1008
+ );
1009
+ }
1010
+ f = message.getConditionalValueAtRisk();
1011
+ if (f !== 0.0) {
1012
+ writer.writeDouble(
1013
+ 25,
1014
+ f
1015
+ );
1016
+ }
1017
+ f = message.getSkew();
1018
+ if (f !== 0.0) {
1019
+ writer.writeDouble(
1020
+ 26,
1021
+ f
1022
+ );
1023
+ }
1024
+ f = message.getKurtosis();
1025
+ if (f !== 0.0) {
1026
+ writer.writeDouble(
1027
+ 27,
1028
+ f
1029
+ );
1030
+ }
1031
+ f = message.getKellyCriterion();
1032
+ if (f !== 0.0) {
1033
+ writer.writeDouble(
1034
+ 28,
1035
+ f
1036
+ );
1037
+ }
1038
+ f = message.getRiskOfRuin();
1039
+ if (f !== 0.0) {
1040
+ writer.writeDouble(
1041
+ 29,
1042
+ f
1043
+ );
1044
+ }
1045
+ f = message.getRecoveryFactor();
1046
+ if (f !== 0.0) {
1047
+ writer.writeDouble(
1048
+ 30,
1049
+ f
1050
+ );
1051
+ }
1052
+ f = message.getPayoffRatio();
1053
+ if (f !== 0.0) {
1054
+ writer.writeDouble(
1055
+ 31,
1056
+ f
1057
+ );
1058
+ }
1059
+ f = message.getGainToPainRatio();
1060
+ if (f !== 0.0) {
1061
+ writer.writeDouble(
1062
+ 32,
1063
+ f
1064
+ );
1065
+ }
1066
+ f = message.getOutlierWinRatio();
1067
+ if (f !== 0.0) {
1068
+ writer.writeDouble(
1069
+ 33,
1070
+ f
1071
+ );
1072
+ }
1073
+ f = message.getOutlierLossRatio();
1074
+ if (f !== 0.0) {
1075
+ writer.writeDouble(
1076
+ 34,
1077
+ f
1078
+ );
1079
+ }
1080
+ f = message.getCommonSenseRatio();
1081
+ if (f !== 0.0) {
1082
+ writer.writeDouble(
1083
+ 35,
1084
+ f
1085
+ );
1086
+ }
1087
+ f = message.getUlcerIndex();
1088
+ if (f !== 0.0) {
1089
+ writer.writeDouble(
1090
+ 36,
1091
+ f
1092
+ );
1093
+ }
1094
+ f = message.getSerenityIndex();
1095
+ if (f !== 0.0) {
1096
+ writer.writeDouble(
1097
+ 37,
1098
+ f
1099
+ );
1100
+ }
1101
+ f = message.getAlpha();
1102
+ if (f !== 0.0) {
1103
+ writer.writeDouble(
1104
+ 38,
1105
+ f
1106
+ );
1107
+ }
1108
+ f = message.getBeta();
1109
+ if (f !== 0.0) {
1110
+ writer.writeDouble(
1111
+ 39,
1112
+ f
1113
+ );
1114
+ }
1115
+ f = message.getInformationRatio();
1116
+ if (f !== 0.0) {
1117
+ writer.writeDouble(
1118
+ 40,
1119
+ f
1120
+ );
1121
+ }
1122
+ f = message.getRSquared();
1123
+ if (f !== 0.0) {
1124
+ writer.writeDouble(
1125
+ 41,
1126
+ f
1127
+ );
1128
+ }
847
1129
  f = message.getExtraMap(true);
848
1130
  if (f && f.getLength() > 0) {
849
1131
  f.serializeBinary(20, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
@@ -1085,6 +1367,384 @@ proto.trb.strategy.v1.BacktestMetrics.prototype.setExpectancy = function(value)
1085
1367
  };
1086
1368
 
1087
1369
 
1370
+ /**
1371
+ * optional double calmar = 21;
1372
+ * @return {number}
1373
+ */
1374
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getCalmar = function() {
1375
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 21, 0.0));
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * @param {number} value
1381
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1382
+ */
1383
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setCalmar = function(value) {
1384
+ return jspb.Message.setProto3FloatField(this, 21, value);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * optional double omega = 22;
1390
+ * @return {number}
1391
+ */
1392
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getOmega = function() {
1393
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 22, 0.0));
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * @param {number} value
1399
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1400
+ */
1401
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setOmega = function(value) {
1402
+ return jspb.Message.setProto3FloatField(this, 22, value);
1403
+ };
1404
+
1405
+
1406
+ /**
1407
+ * optional double tail_ratio = 23;
1408
+ * @return {number}
1409
+ */
1410
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getTailRatio = function() {
1411
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 23, 0.0));
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * @param {number} value
1417
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1418
+ */
1419
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setTailRatio = function(value) {
1420
+ return jspb.Message.setProto3FloatField(this, 23, value);
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * optional double value_at_risk = 24;
1426
+ * @return {number}
1427
+ */
1428
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getValueAtRisk = function() {
1429
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 24, 0.0));
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * @param {number} value
1435
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1436
+ */
1437
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setValueAtRisk = function(value) {
1438
+ return jspb.Message.setProto3FloatField(this, 24, value);
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * optional double conditional_value_at_risk = 25;
1444
+ * @return {number}
1445
+ */
1446
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getConditionalValueAtRisk = function() {
1447
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 25, 0.0));
1448
+ };
1449
+
1450
+
1451
+ /**
1452
+ * @param {number} value
1453
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1454
+ */
1455
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setConditionalValueAtRisk = function(value) {
1456
+ return jspb.Message.setProto3FloatField(this, 25, value);
1457
+ };
1458
+
1459
+
1460
+ /**
1461
+ * optional double skew = 26;
1462
+ * @return {number}
1463
+ */
1464
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getSkew = function() {
1465
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 26, 0.0));
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * @param {number} value
1471
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1472
+ */
1473
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setSkew = function(value) {
1474
+ return jspb.Message.setProto3FloatField(this, 26, value);
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * optional double kurtosis = 27;
1480
+ * @return {number}
1481
+ */
1482
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getKurtosis = function() {
1483
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 27, 0.0));
1484
+ };
1485
+
1486
+
1487
+ /**
1488
+ * @param {number} value
1489
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1490
+ */
1491
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setKurtosis = function(value) {
1492
+ return jspb.Message.setProto3FloatField(this, 27, value);
1493
+ };
1494
+
1495
+
1496
+ /**
1497
+ * optional double kelly_criterion = 28;
1498
+ * @return {number}
1499
+ */
1500
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getKellyCriterion = function() {
1501
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 28, 0.0));
1502
+ };
1503
+
1504
+
1505
+ /**
1506
+ * @param {number} value
1507
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1508
+ */
1509
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setKellyCriterion = function(value) {
1510
+ return jspb.Message.setProto3FloatField(this, 28, value);
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * optional double risk_of_ruin = 29;
1516
+ * @return {number}
1517
+ */
1518
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getRiskOfRuin = function() {
1519
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 29, 0.0));
1520
+ };
1521
+
1522
+
1523
+ /**
1524
+ * @param {number} value
1525
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1526
+ */
1527
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setRiskOfRuin = function(value) {
1528
+ return jspb.Message.setProto3FloatField(this, 29, value);
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * optional double recovery_factor = 30;
1534
+ * @return {number}
1535
+ */
1536
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getRecoveryFactor = function() {
1537
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 30, 0.0));
1538
+ };
1539
+
1540
+
1541
+ /**
1542
+ * @param {number} value
1543
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1544
+ */
1545
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setRecoveryFactor = function(value) {
1546
+ return jspb.Message.setProto3FloatField(this, 30, value);
1547
+ };
1548
+
1549
+
1550
+ /**
1551
+ * optional double payoff_ratio = 31;
1552
+ * @return {number}
1553
+ */
1554
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getPayoffRatio = function() {
1555
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 31, 0.0));
1556
+ };
1557
+
1558
+
1559
+ /**
1560
+ * @param {number} value
1561
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1562
+ */
1563
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setPayoffRatio = function(value) {
1564
+ return jspb.Message.setProto3FloatField(this, 31, value);
1565
+ };
1566
+
1567
+
1568
+ /**
1569
+ * optional double gain_to_pain_ratio = 32;
1570
+ * @return {number}
1571
+ */
1572
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getGainToPainRatio = function() {
1573
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 32, 0.0));
1574
+ };
1575
+
1576
+
1577
+ /**
1578
+ * @param {number} value
1579
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1580
+ */
1581
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setGainToPainRatio = function(value) {
1582
+ return jspb.Message.setProto3FloatField(this, 32, value);
1583
+ };
1584
+
1585
+
1586
+ /**
1587
+ * optional double outlier_win_ratio = 33;
1588
+ * @return {number}
1589
+ */
1590
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getOutlierWinRatio = function() {
1591
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 33, 0.0));
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * @param {number} value
1597
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1598
+ */
1599
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setOutlierWinRatio = function(value) {
1600
+ return jspb.Message.setProto3FloatField(this, 33, value);
1601
+ };
1602
+
1603
+
1604
+ /**
1605
+ * optional double outlier_loss_ratio = 34;
1606
+ * @return {number}
1607
+ */
1608
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getOutlierLossRatio = function() {
1609
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 34, 0.0));
1610
+ };
1611
+
1612
+
1613
+ /**
1614
+ * @param {number} value
1615
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1616
+ */
1617
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setOutlierLossRatio = function(value) {
1618
+ return jspb.Message.setProto3FloatField(this, 34, value);
1619
+ };
1620
+
1621
+
1622
+ /**
1623
+ * optional double common_sense_ratio = 35;
1624
+ * @return {number}
1625
+ */
1626
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getCommonSenseRatio = function() {
1627
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 35, 0.0));
1628
+ };
1629
+
1630
+
1631
+ /**
1632
+ * @param {number} value
1633
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1634
+ */
1635
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setCommonSenseRatio = function(value) {
1636
+ return jspb.Message.setProto3FloatField(this, 35, value);
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * optional double ulcer_index = 36;
1642
+ * @return {number}
1643
+ */
1644
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getUlcerIndex = function() {
1645
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 36, 0.0));
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * @param {number} value
1651
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1652
+ */
1653
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setUlcerIndex = function(value) {
1654
+ return jspb.Message.setProto3FloatField(this, 36, value);
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * optional double serenity_index = 37;
1660
+ * @return {number}
1661
+ */
1662
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getSerenityIndex = function() {
1663
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 37, 0.0));
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * @param {number} value
1669
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1670
+ */
1671
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setSerenityIndex = function(value) {
1672
+ return jspb.Message.setProto3FloatField(this, 37, value);
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * optional double alpha = 38;
1678
+ * @return {number}
1679
+ */
1680
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getAlpha = function() {
1681
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 38, 0.0));
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * @param {number} value
1687
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1688
+ */
1689
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setAlpha = function(value) {
1690
+ return jspb.Message.setProto3FloatField(this, 38, value);
1691
+ };
1692
+
1693
+
1694
+ /**
1695
+ * optional double beta = 39;
1696
+ * @return {number}
1697
+ */
1698
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getBeta = function() {
1699
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 39, 0.0));
1700
+ };
1701
+
1702
+
1703
+ /**
1704
+ * @param {number} value
1705
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1706
+ */
1707
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setBeta = function(value) {
1708
+ return jspb.Message.setProto3FloatField(this, 39, value);
1709
+ };
1710
+
1711
+
1712
+ /**
1713
+ * optional double information_ratio = 40;
1714
+ * @return {number}
1715
+ */
1716
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getInformationRatio = function() {
1717
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 40, 0.0));
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * @param {number} value
1723
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1724
+ */
1725
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setInformationRatio = function(value) {
1726
+ return jspb.Message.setProto3FloatField(this, 40, value);
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * optional double r_squared = 41;
1732
+ * @return {number}
1733
+ */
1734
+ proto.trb.strategy.v1.BacktestMetrics.prototype.getRSquared = function() {
1735
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 41, 0.0));
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * @param {number} value
1741
+ * @return {!proto.trb.strategy.v1.BacktestMetrics} returns this
1742
+ */
1743
+ proto.trb.strategy.v1.BacktestMetrics.prototype.setRSquared = function(value) {
1744
+ return jspb.Message.setProto3FloatField(this, 41, value);
1745
+ };
1746
+
1747
+
1088
1748
  /**
1089
1749
  * map<string, double> extra = 20;
1090
1750
  * @param {boolean=} opt_noLazyCreate Do not create the map if