@gbozee/ultimate 0.0.2-201 → 0.0.2-202

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.
@@ -697,6 +697,7 @@ export declare function computeRiskReward(payload: {
697
697
  risk_per_trade: number;
698
698
  target_loss?: number;
699
699
  distribution?: GetEntriesParams["distribution"];
700
+ high_range?: number;
700
701
  max_size?: number;
701
702
  }): number | {
702
703
  result: any[];
@@ -719,6 +720,7 @@ export declare function getRiskReward(payload: {
719
720
  max_size?: number;
720
721
  distribution?: GetEntriesParams["distribution"];
721
722
  risk_factor?: number;
723
+ high_range?: number;
722
724
  }): any;
723
725
  export declare function computeProfitDetail(payload: {
724
726
  focus_position: {
@@ -1348,7 +1350,7 @@ declare function constructAppConfig$1({ config, global_config, }: {
1348
1350
  kelly_func?: "theoretical" | "position_based" | "theoretical_fixed";
1349
1351
  };
1350
1352
  };
1351
- declare function buildWithOptimumReward({ config, settings, global_config, }: {
1353
+ declare function buildWithOptimumReward({ config, settings, global_config, force_exact, }: {
1352
1354
  config: TradeConfig;
1353
1355
  global_config: GlobalConfig;
1354
1356
  settings: {
@@ -1359,6 +1361,7 @@ declare function buildWithOptimumReward({ config, settings, global_config, }: {
1359
1361
  risk_reward?: number;
1360
1362
  distribution?: GetEntriesParams["distribution"];
1361
1363
  };
1364
+ force_exact?: boolean;
1362
1365
  }): {
1363
1366
  trades: any[];
1364
1367
  summary: {
@@ -2299,6 +2299,7 @@ function computeRiskReward(payload) {
2299
2299
  risk_per_trade,
2300
2300
  target_loss,
2301
2301
  distribution,
2302
+ high_range,
2302
2303
  max_size
2303
2304
  } = payload;
2304
2305
  const kind = entry > stop ? "long" : "short";
@@ -2310,12 +2311,14 @@ function computeRiskReward(payload) {
2310
2311
  app_config,
2311
2312
  target_loss,
2312
2313
  distribution,
2314
+ high_range,
2313
2315
  max_size
2314
2316
  });
2315
2317
  return result;
2316
2318
  }
2317
2319
  function getRiskReward(payload) {
2318
2320
  const {
2321
+ high_range,
2319
2322
  max_size,
2320
2323
  entry,
2321
2324
  stop,
@@ -2339,6 +2342,7 @@ function getRiskReward(payload) {
2339
2342
  entry,
2340
2343
  stop,
2341
2344
  risk_per_trade: risk,
2345
+ high_range,
2342
2346
  target_loss,
2343
2347
  distribution,
2344
2348
  max_size
@@ -3453,7 +3457,8 @@ function constructAppConfig2({
3453
3457
  function buildWithOptimumReward({
3454
3458
  config,
3455
3459
  settings,
3456
- global_config
3460
+ global_config,
3461
+ force_exact
3457
3462
  }) {
3458
3463
  const kind = config.entry > config.stop ? "long" : "short";
3459
3464
  let stop = settings.stop;
@@ -3475,7 +3480,8 @@ function buildWithOptimumReward({
3475
3480
  custom_b_config,
3476
3481
  app_config_kind: kind,
3477
3482
  appConfig,
3478
- symbol_config: global_config
3483
+ symbol_config: global_config,
3484
+ force_exact_risk: force_exact
3479
3485
  });
3480
3486
  const adjusted_size = summary.quantity;
3481
3487
  const symbol_config = global_config;
package/dist/index.cjs CHANGED
@@ -57585,6 +57585,7 @@ function computeRiskReward(payload) {
57585
57585
  risk_per_trade,
57586
57586
  target_loss,
57587
57587
  distribution,
57588
+ high_range,
57588
57589
  max_size
57589
57590
  } = payload;
57590
57591
  const kind = entry > stop ? "long" : "short";
@@ -57596,12 +57597,14 @@ function computeRiskReward(payload) {
57596
57597
  app_config,
57597
57598
  target_loss,
57598
57599
  distribution,
57600
+ high_range,
57599
57601
  max_size
57600
57602
  });
57601
57603
  return result;
57602
57604
  }
57603
57605
  function getRiskReward(payload) {
57604
57606
  const {
57607
+ high_range,
57605
57608
  max_size,
57606
57609
  entry,
57607
57610
  stop,
@@ -57625,6 +57628,7 @@ function getRiskReward(payload) {
57625
57628
  entry,
57626
57629
  stop,
57627
57630
  risk_per_trade: risk,
57631
+ high_range,
57628
57632
  target_loss,
57629
57633
  distribution,
57630
57634
  max_size
@@ -58739,7 +58743,8 @@ function constructAppConfig2({
58739
58743
  function buildWithOptimumReward({
58740
58744
  config: config2,
58741
58745
  settings,
58742
- global_config
58746
+ global_config,
58747
+ force_exact
58743
58748
  }) {
58744
58749
  const kind = config2.entry > config2.stop ? "long" : "short";
58745
58750
  let stop = settings.stop;
@@ -58761,7 +58766,8 @@ function buildWithOptimumReward({
58761
58766
  custom_b_config,
58762
58767
  app_config_kind: kind,
58763
58768
  appConfig,
58764
- symbol_config: global_config
58769
+ symbol_config: global_config,
58770
+ force_exact_risk: force_exact
58765
58771
  });
58766
58772
  const adjusted_size = summary.quantity;
58767
58773
  const symbol_config = global_config;
package/dist/index.d.ts CHANGED
@@ -1516,6 +1516,7 @@ export declare function computeRiskReward(payload: {
1516
1516
  risk_per_trade: number;
1517
1517
  target_loss?: number;
1518
1518
  distribution?: GetEntriesParams["distribution"];
1519
+ high_range?: number;
1519
1520
  max_size?: number;
1520
1521
  }): number | {
1521
1522
  result: any[];
@@ -1538,6 +1539,7 @@ export declare function getRiskReward(payload: {
1538
1539
  max_size?: number;
1539
1540
  distribution?: GetEntriesParams["distribution"];
1540
1541
  risk_factor?: number;
1542
+ high_range?: number;
1541
1543
  }): any;
1542
1544
  export declare function computeProfitDetail(payload: {
1543
1545
  focus_position: {
@@ -1882,7 +1884,7 @@ declare function constructAppConfig$1({ config, global_config, }: {
1882
1884
  kelly_func?: "theoretical" | "position_based" | "theoretical_fixed";
1883
1885
  };
1884
1886
  };
1885
- declare function buildWithOptimumReward({ config, settings, global_config, }: {
1887
+ declare function buildWithOptimumReward({ config, settings, global_config, force_exact, }: {
1886
1888
  config: TradeConfig;
1887
1889
  global_config: GlobalConfig;
1888
1890
  settings: {
@@ -1893,6 +1895,7 @@ declare function buildWithOptimumReward({ config, settings, global_config, }: {
1893
1895
  risk_reward?: number;
1894
1896
  distribution?: GetEntriesParams["distribution"];
1895
1897
  };
1898
+ force_exact?: boolean;
1896
1899
  }): {
1897
1900
  trades: any[];
1898
1901
  summary: {
package/dist/index.js CHANGED
@@ -57522,6 +57522,7 @@ function computeRiskReward(payload) {
57522
57522
  risk_per_trade,
57523
57523
  target_loss,
57524
57524
  distribution,
57525
+ high_range,
57525
57526
  max_size
57526
57527
  } = payload;
57527
57528
  const kind = entry > stop ? "long" : "short";
@@ -57533,12 +57534,14 @@ function computeRiskReward(payload) {
57533
57534
  app_config,
57534
57535
  target_loss,
57535
57536
  distribution,
57537
+ high_range,
57536
57538
  max_size
57537
57539
  });
57538
57540
  return result;
57539
57541
  }
57540
57542
  function getRiskReward(payload) {
57541
57543
  const {
57544
+ high_range,
57542
57545
  max_size,
57543
57546
  entry,
57544
57547
  stop,
@@ -57562,6 +57565,7 @@ function getRiskReward(payload) {
57562
57565
  entry,
57563
57566
  stop,
57564
57567
  risk_per_trade: risk,
57568
+ high_range,
57565
57569
  target_loss,
57566
57570
  distribution,
57567
57571
  max_size
@@ -58676,7 +58680,8 @@ function constructAppConfig2({
58676
58680
  function buildWithOptimumReward({
58677
58681
  config: config2,
58678
58682
  settings,
58679
- global_config
58683
+ global_config,
58684
+ force_exact
58680
58685
  }) {
58681
58686
  const kind = config2.entry > config2.stop ? "long" : "short";
58682
58687
  let stop = settings.stop;
@@ -58698,7 +58703,8 @@ function buildWithOptimumReward({
58698
58703
  custom_b_config,
58699
58704
  app_config_kind: kind,
58700
58705
  appConfig,
58701
- symbol_config: global_config
58706
+ symbol_config: global_config,
58707
+ force_exact_risk: force_exact
58702
58708
  });
58703
58709
  const adjusted_size = summary.quantity;
58704
58710
  const symbol_config = global_config;
@@ -64258,6 +64258,7 @@ function computeRiskReward(payload) {
64258
64258
  risk_per_trade,
64259
64259
  target_loss,
64260
64260
  distribution,
64261
+ high_range,
64261
64262
  max_size
64262
64263
  } = payload;
64263
64264
  const kind = entry > stop ? "long" : "short";
@@ -64269,12 +64270,14 @@ function computeRiskReward(payload) {
64269
64270
  app_config,
64270
64271
  target_loss,
64271
64272
  distribution,
64273
+ high_range,
64272
64274
  max_size
64273
64275
  });
64274
64276
  return result;
64275
64277
  }
64276
64278
  function getRiskReward(payload) {
64277
64279
  const {
64280
+ high_range,
64278
64281
  max_size,
64279
64282
  entry,
64280
64283
  stop,
@@ -64298,6 +64301,7 @@ function getRiskReward(payload) {
64298
64301
  entry,
64299
64302
  stop,
64300
64303
  risk_per_trade: risk,
64304
+ high_range,
64301
64305
  target_loss,
64302
64306
  distribution,
64303
64307
  max_size
@@ -65314,7 +65318,8 @@ function constructAppConfig2({
65314
65318
  function buildWithOptimumReward({
65315
65319
  config: config2,
65316
65320
  settings,
65317
- global_config
65321
+ global_config,
65322
+ force_exact
65318
65323
  }) {
65319
65324
  const kind = config2.entry > config2.stop ? "long" : "short";
65320
65325
  let stop = settings.stop;
@@ -65336,7 +65341,8 @@ function buildWithOptimumReward({
65336
65341
  custom_b_config,
65337
65342
  app_config_kind: kind,
65338
65343
  appConfig,
65339
- symbol_config: global_config
65344
+ symbol_config: global_config,
65345
+ force_exact_risk: force_exact
65340
65346
  });
65341
65347
  const adjusted_size = summary.quantity;
65342
65348
  const symbol_config = global_config;
@@ -64231,6 +64231,7 @@ function computeRiskReward(payload) {
64231
64231
  risk_per_trade,
64232
64232
  target_loss,
64233
64233
  distribution,
64234
+ high_range,
64234
64235
  max_size
64235
64236
  } = payload;
64236
64237
  const kind = entry > stop ? "long" : "short";
@@ -64242,12 +64243,14 @@ function computeRiskReward(payload) {
64242
64243
  app_config,
64243
64244
  target_loss,
64244
64245
  distribution,
64246
+ high_range,
64245
64247
  max_size
64246
64248
  });
64247
64249
  return result;
64248
64250
  }
64249
64251
  function getRiskReward(payload) {
64250
64252
  const {
64253
+ high_range,
64251
64254
  max_size,
64252
64255
  entry,
64253
64256
  stop,
@@ -64271,6 +64274,7 @@ function getRiskReward(payload) {
64271
64274
  entry,
64272
64275
  stop,
64273
64276
  risk_per_trade: risk,
64277
+ high_range,
64274
64278
  target_loss,
64275
64279
  distribution,
64276
64280
  max_size
@@ -65287,7 +65291,8 @@ function constructAppConfig2({
65287
65291
  function buildWithOptimumReward({
65288
65292
  config: config2,
65289
65293
  settings,
65290
- global_config
65294
+ global_config,
65295
+ force_exact
65291
65296
  }) {
65292
65297
  const kind = config2.entry > config2.stop ? "long" : "short";
65293
65298
  let stop = settings.stop;
@@ -65309,7 +65314,8 @@ function buildWithOptimumReward({
65309
65314
  custom_b_config,
65310
65315
  app_config_kind: kind,
65311
65316
  appConfig,
65312
- symbol_config: global_config
65317
+ symbol_config: global_config,
65318
+ force_exact_risk: force_exact
65313
65319
  });
65314
65320
  const adjusted_size = summary.quantity;
65315
65321
  const symbol_config = global_config;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-201",
4
+ "version": "0.0.2-202",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",