@one_deploy/sdk 1.2.4 → 1.2.5
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/hooks/index.js +31 -31
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +31 -31
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -31
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.js +31 -31
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +31 -31
- package/dist/react-native.mjs.map +1 -1
- package/dist/services/index.js +31 -31
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +31 -31
- package/dist/services/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/services/forex/BotSimulationEngine.ts +33 -33
package/dist/index.mjs
CHANGED
|
@@ -1129,8 +1129,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1129
1129
|
name: "Stable Yield",
|
|
1130
1130
|
shortName: "STB",
|
|
1131
1131
|
color: "#6B7280",
|
|
1132
|
-
scanIntervalMin:
|
|
1133
|
-
scanIntervalMax:
|
|
1132
|
+
scanIntervalMin: 12e4,
|
|
1133
|
+
scanIntervalMax: 18e4,
|
|
1134
1134
|
tradeFrequency: 0.15,
|
|
1135
1135
|
positionSizeMin: 5,
|
|
1136
1136
|
positionSizeMax: 15,
|
|
@@ -1151,8 +1151,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1151
1151
|
name: "Conservative Shield",
|
|
1152
1152
|
shortName: "CON",
|
|
1153
1153
|
color: "#10B981",
|
|
1154
|
-
scanIntervalMin:
|
|
1155
|
-
scanIntervalMax:
|
|
1154
|
+
scanIntervalMin: 9e4,
|
|
1155
|
+
scanIntervalMax: 15e4,
|
|
1156
1156
|
tradeFrequency: 0.25,
|
|
1157
1157
|
positionSizeMin: 10,
|
|
1158
1158
|
positionSizeMax: 20,
|
|
@@ -1176,8 +1176,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1176
1176
|
name: "Balanced Alpha",
|
|
1177
1177
|
shortName: "BAL",
|
|
1178
1178
|
color: "#3B82F6",
|
|
1179
|
-
scanIntervalMin:
|
|
1180
|
-
scanIntervalMax:
|
|
1179
|
+
scanIntervalMin: 75e3,
|
|
1180
|
+
scanIntervalMax: 12e4,
|
|
1181
1181
|
tradeFrequency: 0.4,
|
|
1182
1182
|
positionSizeMin: 15,
|
|
1183
1183
|
positionSizeMax: 35,
|
|
@@ -1198,8 +1198,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1198
1198
|
name: "Smart Rebalance",
|
|
1199
1199
|
shortName: "SRB",
|
|
1200
1200
|
color: "#06B6D4",
|
|
1201
|
-
scanIntervalMin:
|
|
1202
|
-
scanIntervalMax:
|
|
1201
|
+
scanIntervalMin: 8e4,
|
|
1202
|
+
scanIntervalMax: 13e4,
|
|
1203
1203
|
tradeFrequency: 0.35,
|
|
1204
1204
|
positionSizeMin: 12,
|
|
1205
1205
|
positionSizeMax: 30,
|
|
@@ -1223,8 +1223,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1223
1223
|
name: "Growth Momentum",
|
|
1224
1224
|
shortName: "GRO",
|
|
1225
1225
|
color: "#8B5CF6",
|
|
1226
|
-
scanIntervalMin:
|
|
1227
|
-
scanIntervalMax:
|
|
1226
|
+
scanIntervalMin: 7e4,
|
|
1227
|
+
scanIntervalMax: 11e4,
|
|
1228
1228
|
tradeFrequency: 0.45,
|
|
1229
1229
|
positionSizeMin: 20,
|
|
1230
1230
|
positionSizeMax: 40,
|
|
@@ -1245,8 +1245,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1245
1245
|
name: "Trend Hunter",
|
|
1246
1246
|
shortName: "TRH",
|
|
1247
1247
|
color: "#EC4899",
|
|
1248
|
-
scanIntervalMin:
|
|
1249
|
-
scanIntervalMax:
|
|
1248
|
+
scanIntervalMin: 65e3,
|
|
1249
|
+
scanIntervalMax: 1e5,
|
|
1250
1250
|
tradeFrequency: 0.48,
|
|
1251
1251
|
positionSizeMin: 22,
|
|
1252
1252
|
positionSizeMax: 42,
|
|
@@ -1270,8 +1270,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1270
1270
|
name: "Aggressive Momentum",
|
|
1271
1271
|
shortName: "AGG",
|
|
1272
1272
|
color: "#EF4444",
|
|
1273
|
-
scanIntervalMin:
|
|
1274
|
-
scanIntervalMax:
|
|
1273
|
+
scanIntervalMin: 6e4,
|
|
1274
|
+
scanIntervalMax: 1e5,
|
|
1275
1275
|
tradeFrequency: 0.5,
|
|
1276
1276
|
positionSizeMin: 25,
|
|
1277
1277
|
positionSizeMax: 50,
|
|
@@ -1292,8 +1292,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1292
1292
|
name: "Leverage Maximizer",
|
|
1293
1293
|
shortName: "LEV",
|
|
1294
1294
|
color: "#F97316",
|
|
1295
|
-
scanIntervalMin:
|
|
1296
|
-
scanIntervalMax:
|
|
1295
|
+
scanIntervalMin: 55e3,
|
|
1296
|
+
scanIntervalMax: 9e4,
|
|
1297
1297
|
tradeFrequency: 0.55,
|
|
1298
1298
|
positionSizeMin: 30,
|
|
1299
1299
|
positionSizeMax: 55,
|
|
@@ -1317,8 +1317,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1317
1317
|
name: "AI Quant Alpha",
|
|
1318
1318
|
shortName: "AQA",
|
|
1319
1319
|
color: "#A855F7",
|
|
1320
|
-
scanIntervalMin:
|
|
1321
|
-
scanIntervalMax:
|
|
1320
|
+
scanIntervalMin: 7e4,
|
|
1321
|
+
scanIntervalMax: 11e4,
|
|
1322
1322
|
tradeFrequency: 0.42,
|
|
1323
1323
|
positionSizeMin: 18,
|
|
1324
1324
|
positionSizeMax: 38,
|
|
@@ -1339,8 +1339,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1339
1339
|
name: "Neural Trader",
|
|
1340
1340
|
shortName: "NRT",
|
|
1341
1341
|
color: "#14B8A6",
|
|
1342
|
-
scanIntervalMin:
|
|
1343
|
-
scanIntervalMax:
|
|
1342
|
+
scanIntervalMin: 7e4,
|
|
1343
|
+
scanIntervalMax: 105e3,
|
|
1344
1344
|
tradeFrequency: 0.44,
|
|
1345
1345
|
positionSizeMin: 20,
|
|
1346
1346
|
positionSizeMax: 40,
|
|
@@ -1361,8 +1361,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1361
1361
|
name: "Quantum Edge",
|
|
1362
1362
|
shortName: "QTE",
|
|
1363
1363
|
color: "#6366F1",
|
|
1364
|
-
scanIntervalMin:
|
|
1365
|
-
scanIntervalMax:
|
|
1364
|
+
scanIntervalMin: 6e4,
|
|
1365
|
+
scanIntervalMax: 1e5,
|
|
1366
1366
|
tradeFrequency: 0.5,
|
|
1367
1367
|
positionSizeMin: 25,
|
|
1368
1368
|
positionSizeMax: 50,
|
|
@@ -1597,7 +1597,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1597
1597
|
},
|
|
1598
1598
|
delay
|
|
1599
1599
|
});
|
|
1600
|
-
delay += rand3(
|
|
1600
|
+
delay += rand3(4e3, 6e3);
|
|
1601
1601
|
const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
|
|
1602
1602
|
for (const thinking of thinkingMessages) {
|
|
1603
1603
|
entries.push({
|
|
@@ -1610,7 +1610,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1610
1610
|
},
|
|
1611
1611
|
delay
|
|
1612
1612
|
});
|
|
1613
|
-
delay += rand3(
|
|
1613
|
+
delay += rand3(3e3, 5e3);
|
|
1614
1614
|
}
|
|
1615
1615
|
const indicatorParts = [];
|
|
1616
1616
|
if (strategy.primaryIndicators.includes("RSI") || strategy.primaryIndicators.includes("MACD")) {
|
|
@@ -1642,8 +1642,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1642
1642
|
},
|
|
1643
1643
|
delay
|
|
1644
1644
|
});
|
|
1645
|
-
delay += rand3(
|
|
1646
|
-
if (Math.random() < 0.
|
|
1645
|
+
delay += rand3(4e3, 6e3);
|
|
1646
|
+
if (Math.random() < 0.08) {
|
|
1647
1647
|
const sentiment = Math.random() > 0.4 ? "Bullish" : "Bearish";
|
|
1648
1648
|
entries.push({
|
|
1649
1649
|
entry: {
|
|
@@ -1655,9 +1655,9 @@ var init_BotSimulationEngine = __esm({
|
|
|
1655
1655
|
},
|
|
1656
1656
|
delay
|
|
1657
1657
|
});
|
|
1658
|
-
delay += rand3(
|
|
1658
|
+
delay += rand3(5e3, 8e3);
|
|
1659
1659
|
}
|
|
1660
|
-
if (Math.random() < 0.
|
|
1660
|
+
if (Math.random() < 0.3) {
|
|
1661
1661
|
const analysis = this.generateAnalysis(strategy, indicators, pair);
|
|
1662
1662
|
entries.push({
|
|
1663
1663
|
entry: {
|
|
@@ -1669,7 +1669,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1669
1669
|
},
|
|
1670
1670
|
delay
|
|
1671
1671
|
});
|
|
1672
|
-
delay += rand3(
|
|
1672
|
+
delay += rand3(5e3, 8e3);
|
|
1673
1673
|
}
|
|
1674
1674
|
const signal = this.evaluateSignal(strategy, indicators);
|
|
1675
1675
|
state.lastSignal = signal.direction;
|
|
@@ -1693,7 +1693,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1693
1693
|
},
|
|
1694
1694
|
delay
|
|
1695
1695
|
});
|
|
1696
|
-
delay += rand3(
|
|
1696
|
+
delay += rand3(5e3, 8e3);
|
|
1697
1697
|
entries.push({
|
|
1698
1698
|
entry: {
|
|
1699
1699
|
strategyId: strategy.id,
|
|
@@ -1705,7 +1705,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1705
1705
|
},
|
|
1706
1706
|
delay
|
|
1707
1707
|
});
|
|
1708
|
-
delay += rand3(
|
|
1708
|
+
delay += rand3(5e3, 7e3);
|
|
1709
1709
|
const decision = this.makeTradeDecision(strategy, signal, state);
|
|
1710
1710
|
if (decision.execute) {
|
|
1711
1711
|
entries.push({
|