@gbozee/ultimate 0.0.2-72 → 0.0.2-73
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 +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1687 -1707
- package/dist/mcp-client.cjs +8870 -0
- package/dist/mcp-client.js +55 -81
- package/dist/mcp-server.cjs +65859 -0
- package/dist/mcp-server.js +1675 -1688
- package/package.json +4 -1
package/dist/frontend-index.d.ts
CHANGED
package/dist/frontend-index.js
CHANGED
|
@@ -2040,8 +2040,8 @@ class Strategy {
|
|
|
2040
2040
|
return result;
|
|
2041
2041
|
}
|
|
2042
2042
|
generateOppositeTrades(payload) {
|
|
2043
|
-
const { kind, risk_factor = 0.5 } = payload;
|
|
2044
|
-
const entry = this.position[kind].entry;
|
|
2043
|
+
const { kind, risk_factor = 0.5, avg_entry } = payload;
|
|
2044
|
+
const entry = avg_entry || this.position[kind].entry;
|
|
2045
2045
|
const stop = this.tp(kind);
|
|
2046
2046
|
const risk = this.pnl(kind) * risk_factor;
|
|
2047
2047
|
const risk_reward = getRiskReward({
|
package/dist/index.cjs
CHANGED
|
@@ -54100,8 +54100,8 @@ class Strategy {
|
|
|
54100
54100
|
return result;
|
|
54101
54101
|
}
|
|
54102
54102
|
generateOppositeTrades(payload) {
|
|
54103
|
-
const { kind, risk_factor = 0.5 } = payload;
|
|
54104
|
-
const entry = this.position[kind].entry;
|
|
54103
|
+
const { kind, risk_factor = 0.5, avg_entry } = payload;
|
|
54104
|
+
const entry = avg_entry || this.position[kind].entry;
|
|
54105
54105
|
const stop = this.tp(kind);
|
|
54106
54106
|
const risk = this.pnl(kind) * risk_factor;
|
|
54107
54107
|
const risk_reward = getRiskReward({
|