@gbozee/ultimate 0.0.2-211 → 0.0.2-213
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.
- package/dist/frontend-index.d.ts +1 -0
- package/dist/frontend-index.js +11 -8
- package/dist/index.cjs +11 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -8
- package/dist/mcp-server.cjs +11 -8
- package/dist/mcp-server.js +11 -8
- package/package.json +2 -2
package/dist/frontend-index.d.ts
CHANGED
package/dist/frontend-index.js
CHANGED
|
@@ -83,7 +83,7 @@ function getEntries(params) {
|
|
|
83
83
|
risk_reward,
|
|
84
84
|
kind,
|
|
85
85
|
price_places,
|
|
86
|
-
percent_change: distribution_params
|
|
86
|
+
percent_change: distribution_params?.curveFactor
|
|
87
87
|
});
|
|
88
88
|
break;
|
|
89
89
|
case "geometric":
|
|
@@ -92,7 +92,7 @@ function getEntries(params) {
|
|
|
92
92
|
risk_reward,
|
|
93
93
|
kind,
|
|
94
94
|
price_places,
|
|
95
|
-
percent_change: distribution_params
|
|
95
|
+
percent_change: distribution_params?.curveFactor
|
|
96
96
|
});
|
|
97
97
|
break;
|
|
98
98
|
case "normal":
|
|
@@ -101,7 +101,7 @@ function getEntries(params) {
|
|
|
101
101
|
risk_reward,
|
|
102
102
|
kind,
|
|
103
103
|
price_places,
|
|
104
|
-
stdDevFactor: distribution_params
|
|
104
|
+
stdDevFactor: distribution_params?.stdDevFactor
|
|
105
105
|
});
|
|
106
106
|
break;
|
|
107
107
|
case "exponential":
|
|
@@ -110,7 +110,7 @@ function getEntries(params) {
|
|
|
110
110
|
risk_reward,
|
|
111
111
|
kind,
|
|
112
112
|
price_places,
|
|
113
|
-
lambda: distribution_params
|
|
113
|
+
lambda: distribution_params?.lambda
|
|
114
114
|
});
|
|
115
115
|
break;
|
|
116
116
|
case "inverse-exponential":
|
|
@@ -119,7 +119,7 @@ function getEntries(params) {
|
|
|
119
119
|
risk_reward,
|
|
120
120
|
kind,
|
|
121
121
|
price_places,
|
|
122
|
-
curveFactor: distribution_params
|
|
122
|
+
curveFactor: distribution_params?.curveFactor
|
|
123
123
|
});
|
|
124
124
|
break;
|
|
125
125
|
default:
|
|
@@ -3399,7 +3399,8 @@ function buildTrades(payload) {
|
|
|
3399
3399
|
kelly_minimum_risk: kelly_config?.kelly_minimum_risk,
|
|
3400
3400
|
kelly_prediction_model: kelly_config?.kelly_prediction_model,
|
|
3401
3401
|
kelly_func: kelly_config?.kelly_func,
|
|
3402
|
-
distribution: settings.distribution
|
|
3402
|
+
distribution: settings.distribution,
|
|
3403
|
+
distribution_params: settings.distribution_params
|
|
3403
3404
|
};
|
|
3404
3405
|
if (kind === "long" && entryNum <= stopNum) {
|
|
3405
3406
|
return [];
|
|
@@ -3449,7 +3450,8 @@ function helperFuncToBuildTrades({
|
|
|
3449
3450
|
global_config: symbol_config,
|
|
3450
3451
|
force_exact_risk,
|
|
3451
3452
|
target_loss: custom_b_config.risk * (custom_b_config.risk_factor || 1),
|
|
3452
|
-
distribution: custom_b_config.distribution
|
|
3453
|
+
distribution: custom_b_config.distribution,
|
|
3454
|
+
distribution_params: custom_b_config.distribution_params
|
|
3453
3455
|
});
|
|
3454
3456
|
if (!force_exact_risk) {
|
|
3455
3457
|
result = {
|
|
@@ -3465,7 +3467,8 @@ function helperFuncToBuildTrades({
|
|
|
3465
3467
|
stop: custom_b_config.stop,
|
|
3466
3468
|
risk: result.risk || custom_b_config.risk,
|
|
3467
3469
|
risk_reward: result.risk_reward,
|
|
3468
|
-
distribution: custom_b_config.distribution
|
|
3470
|
+
distribution: custom_b_config.distribution,
|
|
3471
|
+
distribution_params: custom_b_config.distribution_params
|
|
3469
3472
|
}
|
|
3470
3473
|
}) : [];
|
|
3471
3474
|
const summary = trades.length > 0 ? generateSummary({ trades }) : {};
|
package/dist/index.cjs
CHANGED
|
@@ -55580,7 +55580,7 @@ function getEntries(params) {
|
|
|
55580
55580
|
risk_reward,
|
|
55581
55581
|
kind,
|
|
55582
55582
|
price_places,
|
|
55583
|
-
percent_change: distribution_params
|
|
55583
|
+
percent_change: distribution_params?.curveFactor
|
|
55584
55584
|
});
|
|
55585
55585
|
break;
|
|
55586
55586
|
case "geometric":
|
|
@@ -55589,7 +55589,7 @@ function getEntries(params) {
|
|
|
55589
55589
|
risk_reward,
|
|
55590
55590
|
kind,
|
|
55591
55591
|
price_places,
|
|
55592
|
-
percent_change: distribution_params
|
|
55592
|
+
percent_change: distribution_params?.curveFactor
|
|
55593
55593
|
});
|
|
55594
55594
|
break;
|
|
55595
55595
|
case "normal":
|
|
@@ -55598,7 +55598,7 @@ function getEntries(params) {
|
|
|
55598
55598
|
risk_reward,
|
|
55599
55599
|
kind,
|
|
55600
55600
|
price_places,
|
|
55601
|
-
stdDevFactor: distribution_params
|
|
55601
|
+
stdDevFactor: distribution_params?.stdDevFactor
|
|
55602
55602
|
});
|
|
55603
55603
|
break;
|
|
55604
55604
|
case "exponential":
|
|
@@ -55607,7 +55607,7 @@ function getEntries(params) {
|
|
|
55607
55607
|
risk_reward,
|
|
55608
55608
|
kind,
|
|
55609
55609
|
price_places,
|
|
55610
|
-
lambda: distribution_params
|
|
55610
|
+
lambda: distribution_params?.lambda
|
|
55611
55611
|
});
|
|
55612
55612
|
break;
|
|
55613
55613
|
case "inverse-exponential":
|
|
@@ -55616,7 +55616,7 @@ function getEntries(params) {
|
|
|
55616
55616
|
risk_reward,
|
|
55617
55617
|
kind,
|
|
55618
55618
|
price_places,
|
|
55619
|
-
curveFactor: distribution_params
|
|
55619
|
+
curveFactor: distribution_params?.curveFactor
|
|
55620
55620
|
});
|
|
55621
55621
|
break;
|
|
55622
55622
|
default:
|
|
@@ -58685,7 +58685,8 @@ function buildTrades(payload) {
|
|
|
58685
58685
|
kelly_minimum_risk: kelly_config?.kelly_minimum_risk,
|
|
58686
58686
|
kelly_prediction_model: kelly_config?.kelly_prediction_model,
|
|
58687
58687
|
kelly_func: kelly_config?.kelly_func,
|
|
58688
|
-
distribution: settings.distribution
|
|
58688
|
+
distribution: settings.distribution,
|
|
58689
|
+
distribution_params: settings.distribution_params
|
|
58689
58690
|
};
|
|
58690
58691
|
if (kind === "long" && entryNum <= stopNum) {
|
|
58691
58692
|
return [];
|
|
@@ -58735,7 +58736,8 @@ function helperFuncToBuildTrades({
|
|
|
58735
58736
|
global_config: symbol_config,
|
|
58736
58737
|
force_exact_risk,
|
|
58737
58738
|
target_loss: custom_b_config.risk * (custom_b_config.risk_factor || 1),
|
|
58738
|
-
distribution: custom_b_config.distribution
|
|
58739
|
+
distribution: custom_b_config.distribution,
|
|
58740
|
+
distribution_params: custom_b_config.distribution_params
|
|
58739
58741
|
});
|
|
58740
58742
|
if (!force_exact_risk) {
|
|
58741
58743
|
result = {
|
|
@@ -58751,7 +58753,8 @@ function helperFuncToBuildTrades({
|
|
|
58751
58753
|
stop: custom_b_config.stop,
|
|
58752
58754
|
risk: result.risk || custom_b_config.risk,
|
|
58753
58755
|
risk_reward: result.risk_reward,
|
|
58754
|
-
distribution: custom_b_config.distribution
|
|
58756
|
+
distribution: custom_b_config.distribution,
|
|
58757
|
+
distribution_params: custom_b_config.distribution_params
|
|
58755
58758
|
}
|
|
58756
58759
|
}) : [];
|
|
58757
58760
|
const summary = trades.length > 0 ? generateSummary({ trades }) : {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -55517,7 +55517,7 @@ function getEntries(params) {
|
|
|
55517
55517
|
risk_reward,
|
|
55518
55518
|
kind,
|
|
55519
55519
|
price_places,
|
|
55520
|
-
percent_change: distribution_params
|
|
55520
|
+
percent_change: distribution_params?.curveFactor
|
|
55521
55521
|
});
|
|
55522
55522
|
break;
|
|
55523
55523
|
case "geometric":
|
|
@@ -55526,7 +55526,7 @@ function getEntries(params) {
|
|
|
55526
55526
|
risk_reward,
|
|
55527
55527
|
kind,
|
|
55528
55528
|
price_places,
|
|
55529
|
-
percent_change: distribution_params
|
|
55529
|
+
percent_change: distribution_params?.curveFactor
|
|
55530
55530
|
});
|
|
55531
55531
|
break;
|
|
55532
55532
|
case "normal":
|
|
@@ -55535,7 +55535,7 @@ function getEntries(params) {
|
|
|
55535
55535
|
risk_reward,
|
|
55536
55536
|
kind,
|
|
55537
55537
|
price_places,
|
|
55538
|
-
stdDevFactor: distribution_params
|
|
55538
|
+
stdDevFactor: distribution_params?.stdDevFactor
|
|
55539
55539
|
});
|
|
55540
55540
|
break;
|
|
55541
55541
|
case "exponential":
|
|
@@ -55544,7 +55544,7 @@ function getEntries(params) {
|
|
|
55544
55544
|
risk_reward,
|
|
55545
55545
|
kind,
|
|
55546
55546
|
price_places,
|
|
55547
|
-
lambda: distribution_params
|
|
55547
|
+
lambda: distribution_params?.lambda
|
|
55548
55548
|
});
|
|
55549
55549
|
break;
|
|
55550
55550
|
case "inverse-exponential":
|
|
@@ -55553,7 +55553,7 @@ function getEntries(params) {
|
|
|
55553
55553
|
risk_reward,
|
|
55554
55554
|
kind,
|
|
55555
55555
|
price_places,
|
|
55556
|
-
curveFactor: distribution_params
|
|
55556
|
+
curveFactor: distribution_params?.curveFactor
|
|
55557
55557
|
});
|
|
55558
55558
|
break;
|
|
55559
55559
|
default:
|
|
@@ -58622,7 +58622,8 @@ function buildTrades(payload) {
|
|
|
58622
58622
|
kelly_minimum_risk: kelly_config?.kelly_minimum_risk,
|
|
58623
58623
|
kelly_prediction_model: kelly_config?.kelly_prediction_model,
|
|
58624
58624
|
kelly_func: kelly_config?.kelly_func,
|
|
58625
|
-
distribution: settings.distribution
|
|
58625
|
+
distribution: settings.distribution,
|
|
58626
|
+
distribution_params: settings.distribution_params
|
|
58626
58627
|
};
|
|
58627
58628
|
if (kind === "long" && entryNum <= stopNum) {
|
|
58628
58629
|
return [];
|
|
@@ -58672,7 +58673,8 @@ function helperFuncToBuildTrades({
|
|
|
58672
58673
|
global_config: symbol_config,
|
|
58673
58674
|
force_exact_risk,
|
|
58674
58675
|
target_loss: custom_b_config.risk * (custom_b_config.risk_factor || 1),
|
|
58675
|
-
distribution: custom_b_config.distribution
|
|
58676
|
+
distribution: custom_b_config.distribution,
|
|
58677
|
+
distribution_params: custom_b_config.distribution_params
|
|
58676
58678
|
});
|
|
58677
58679
|
if (!force_exact_risk) {
|
|
58678
58680
|
result = {
|
|
@@ -58688,7 +58690,8 @@ function helperFuncToBuildTrades({
|
|
|
58688
58690
|
stop: custom_b_config.stop,
|
|
58689
58691
|
risk: result.risk || custom_b_config.risk,
|
|
58690
58692
|
risk_reward: result.risk_reward,
|
|
58691
|
-
distribution: custom_b_config.distribution
|
|
58693
|
+
distribution: custom_b_config.distribution,
|
|
58694
|
+
distribution_params: custom_b_config.distribution_params
|
|
58692
58695
|
}
|
|
58693
58696
|
}) : [];
|
|
58694
58697
|
const summary = trades.length > 0 ? generateSummary({ trades }) : {};
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -62266,7 +62266,7 @@ function getEntries(params) {
|
|
|
62266
62266
|
risk_reward,
|
|
62267
62267
|
kind,
|
|
62268
62268
|
price_places,
|
|
62269
|
-
percent_change: distribution_params
|
|
62269
|
+
percent_change: distribution_params?.curveFactor
|
|
62270
62270
|
});
|
|
62271
62271
|
break;
|
|
62272
62272
|
case "geometric":
|
|
@@ -62275,7 +62275,7 @@ function getEntries(params) {
|
|
|
62275
62275
|
risk_reward,
|
|
62276
62276
|
kind,
|
|
62277
62277
|
price_places,
|
|
62278
|
-
percent_change: distribution_params
|
|
62278
|
+
percent_change: distribution_params?.curveFactor
|
|
62279
62279
|
});
|
|
62280
62280
|
break;
|
|
62281
62281
|
case "normal":
|
|
@@ -62284,7 +62284,7 @@ function getEntries(params) {
|
|
|
62284
62284
|
risk_reward,
|
|
62285
62285
|
kind,
|
|
62286
62286
|
price_places,
|
|
62287
|
-
stdDevFactor: distribution_params
|
|
62287
|
+
stdDevFactor: distribution_params?.stdDevFactor
|
|
62288
62288
|
});
|
|
62289
62289
|
break;
|
|
62290
62290
|
case "exponential":
|
|
@@ -62293,7 +62293,7 @@ function getEntries(params) {
|
|
|
62293
62293
|
risk_reward,
|
|
62294
62294
|
kind,
|
|
62295
62295
|
price_places,
|
|
62296
|
-
lambda: distribution_params
|
|
62296
|
+
lambda: distribution_params?.lambda
|
|
62297
62297
|
});
|
|
62298
62298
|
break;
|
|
62299
62299
|
case "inverse-exponential":
|
|
@@ -62302,7 +62302,7 @@ function getEntries(params) {
|
|
|
62302
62302
|
risk_reward,
|
|
62303
62303
|
kind,
|
|
62304
62304
|
price_places,
|
|
62305
|
-
curveFactor: distribution_params
|
|
62305
|
+
curveFactor: distribution_params?.curveFactor
|
|
62306
62306
|
});
|
|
62307
62307
|
break;
|
|
62308
62308
|
default:
|
|
@@ -65260,7 +65260,8 @@ function buildTrades(payload) {
|
|
|
65260
65260
|
kelly_minimum_risk: kelly_config?.kelly_minimum_risk,
|
|
65261
65261
|
kelly_prediction_model: kelly_config?.kelly_prediction_model,
|
|
65262
65262
|
kelly_func: kelly_config?.kelly_func,
|
|
65263
|
-
distribution: settings.distribution
|
|
65263
|
+
distribution: settings.distribution,
|
|
65264
|
+
distribution_params: settings.distribution_params
|
|
65264
65265
|
};
|
|
65265
65266
|
if (kind === "long" && entryNum <= stopNum) {
|
|
65266
65267
|
return [];
|
|
@@ -65310,7 +65311,8 @@ function helperFuncToBuildTrades({
|
|
|
65310
65311
|
global_config: symbol_config,
|
|
65311
65312
|
force_exact_risk,
|
|
65312
65313
|
target_loss: custom_b_config.risk * (custom_b_config.risk_factor || 1),
|
|
65313
|
-
distribution: custom_b_config.distribution
|
|
65314
|
+
distribution: custom_b_config.distribution,
|
|
65315
|
+
distribution_params: custom_b_config.distribution_params
|
|
65314
65316
|
});
|
|
65315
65317
|
if (!force_exact_risk) {
|
|
65316
65318
|
result = {
|
|
@@ -65326,7 +65328,8 @@ function helperFuncToBuildTrades({
|
|
|
65326
65328
|
stop: custom_b_config.stop,
|
|
65327
65329
|
risk: result.risk || custom_b_config.risk,
|
|
65328
65330
|
risk_reward: result.risk_reward,
|
|
65329
|
-
distribution: custom_b_config.distribution
|
|
65331
|
+
distribution: custom_b_config.distribution,
|
|
65332
|
+
distribution_params: custom_b_config.distribution_params
|
|
65330
65333
|
}
|
|
65331
65334
|
}) : [];
|
|
65332
65335
|
const summary = trades.length > 0 ? generateSummary({ trades }) : {};
|
package/dist/mcp-server.js
CHANGED
|
@@ -62239,7 +62239,7 @@ function getEntries(params) {
|
|
|
62239
62239
|
risk_reward,
|
|
62240
62240
|
kind,
|
|
62241
62241
|
price_places,
|
|
62242
|
-
percent_change: distribution_params
|
|
62242
|
+
percent_change: distribution_params?.curveFactor
|
|
62243
62243
|
});
|
|
62244
62244
|
break;
|
|
62245
62245
|
case "geometric":
|
|
@@ -62248,7 +62248,7 @@ function getEntries(params) {
|
|
|
62248
62248
|
risk_reward,
|
|
62249
62249
|
kind,
|
|
62250
62250
|
price_places,
|
|
62251
|
-
percent_change: distribution_params
|
|
62251
|
+
percent_change: distribution_params?.curveFactor
|
|
62252
62252
|
});
|
|
62253
62253
|
break;
|
|
62254
62254
|
case "normal":
|
|
@@ -62257,7 +62257,7 @@ function getEntries(params) {
|
|
|
62257
62257
|
risk_reward,
|
|
62258
62258
|
kind,
|
|
62259
62259
|
price_places,
|
|
62260
|
-
stdDevFactor: distribution_params
|
|
62260
|
+
stdDevFactor: distribution_params?.stdDevFactor
|
|
62261
62261
|
});
|
|
62262
62262
|
break;
|
|
62263
62263
|
case "exponential":
|
|
@@ -62266,7 +62266,7 @@ function getEntries(params) {
|
|
|
62266
62266
|
risk_reward,
|
|
62267
62267
|
kind,
|
|
62268
62268
|
price_places,
|
|
62269
|
-
lambda: distribution_params
|
|
62269
|
+
lambda: distribution_params?.lambda
|
|
62270
62270
|
});
|
|
62271
62271
|
break;
|
|
62272
62272
|
case "inverse-exponential":
|
|
@@ -62275,7 +62275,7 @@ function getEntries(params) {
|
|
|
62275
62275
|
risk_reward,
|
|
62276
62276
|
kind,
|
|
62277
62277
|
price_places,
|
|
62278
|
-
curveFactor: distribution_params
|
|
62278
|
+
curveFactor: distribution_params?.curveFactor
|
|
62279
62279
|
});
|
|
62280
62280
|
break;
|
|
62281
62281
|
default:
|
|
@@ -65233,7 +65233,8 @@ function buildTrades(payload) {
|
|
|
65233
65233
|
kelly_minimum_risk: kelly_config?.kelly_minimum_risk,
|
|
65234
65234
|
kelly_prediction_model: kelly_config?.kelly_prediction_model,
|
|
65235
65235
|
kelly_func: kelly_config?.kelly_func,
|
|
65236
|
-
distribution: settings.distribution
|
|
65236
|
+
distribution: settings.distribution,
|
|
65237
|
+
distribution_params: settings.distribution_params
|
|
65237
65238
|
};
|
|
65238
65239
|
if (kind === "long" && entryNum <= stopNum) {
|
|
65239
65240
|
return [];
|
|
@@ -65283,7 +65284,8 @@ function helperFuncToBuildTrades({
|
|
|
65283
65284
|
global_config: symbol_config,
|
|
65284
65285
|
force_exact_risk,
|
|
65285
65286
|
target_loss: custom_b_config.risk * (custom_b_config.risk_factor || 1),
|
|
65286
|
-
distribution: custom_b_config.distribution
|
|
65287
|
+
distribution: custom_b_config.distribution,
|
|
65288
|
+
distribution_params: custom_b_config.distribution_params
|
|
65287
65289
|
});
|
|
65288
65290
|
if (!force_exact_risk) {
|
|
65289
65291
|
result = {
|
|
@@ -65299,7 +65301,8 @@ function helperFuncToBuildTrades({
|
|
|
65299
65301
|
stop: custom_b_config.stop,
|
|
65300
65302
|
risk: result.risk || custom_b_config.risk,
|
|
65301
65303
|
risk_reward: result.risk_reward,
|
|
65302
|
-
distribution: custom_b_config.distribution
|
|
65304
|
+
distribution: custom_b_config.distribution,
|
|
65305
|
+
distribution_params: custom_b_config.distribution_params
|
|
65303
65306
|
}
|
|
65304
65307
|
}) : [];
|
|
65305
65308
|
const summary = trades.length > 0 ? generateSummary({ trades }) : {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gbozee/ultimate",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.2-
|
|
4
|
+
"version": "0.0.2-213",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"trigger:deploy": "npx trigger.dev@
|
|
32
|
+
"trigger:deploy": "npx trigger.dev@3.3.17 deploy --self-hosted --push",
|
|
33
33
|
"trigger:dev": "npx trigger.dev@latest dev --profile default",
|
|
34
34
|
"yarn:publish": "yarn publish --prerelease",
|
|
35
35
|
"build": "bun run build.ts",
|