hedgequantx 2.6.154 → 2.6.156
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/package.json
CHANGED
|
@@ -19,7 +19,7 @@ const readline = require('readline');
|
|
|
19
19
|
|
|
20
20
|
const { connections } = require('../../services');
|
|
21
21
|
const { AlgoUI, renderSessionSummary, renderMultiSymbolSummary } = require('./ui');
|
|
22
|
-
const { displayBanner, drawBoxHeaderContinue, drawBoxFooter, drawBoxRow, getLogoWidth, centerText } = require('../../ui');
|
|
22
|
+
const { displayBanner, drawBoxHeader, drawBoxHeaderContinue, drawBoxFooter, drawBoxRow, getLogoWidth, centerText } = require('../../ui');
|
|
23
23
|
const { prompts } = require('../../utils');
|
|
24
24
|
const { checkMarketHours } = require('../../services/projectx/market');
|
|
25
25
|
const { FAST_SCALPING } = require('../../config/settings');
|
|
@@ -305,12 +305,11 @@ const customStrategyMenu = async (service) => {
|
|
|
305
305
|
|
|
306
306
|
const agentName = agents[0].name || agents[0].provider;
|
|
307
307
|
const boxWidth = Math.max(getLogoWidth(), 98);
|
|
308
|
-
const innerWidth = boxWidth - 2;
|
|
309
308
|
|
|
310
309
|
// Header aligned with main banner
|
|
311
|
-
drawBoxHeaderContinue('CUSTOM STRATEGY - AI GENERATED');
|
|
312
|
-
drawBoxRow(`Agent: ${agentName}`,
|
|
313
|
-
drawBoxFooter();
|
|
310
|
+
drawBoxHeaderContinue('CUSTOM STRATEGY - AI GENERATED', boxWidth);
|
|
311
|
+
drawBoxRow(`Agent: ${agentName}`, boxWidth);
|
|
312
|
+
drawBoxFooter(boxWidth);
|
|
314
313
|
|
|
315
314
|
// Step 1: Get strategy description from user
|
|
316
315
|
console.log(chalk.yellow(' Describe your trading strategy in natural language:'));
|
|
@@ -369,10 +368,11 @@ const customStrategyMenu = async (service) => {
|
|
|
369
368
|
|
|
370
369
|
// Step 4: Show strategy summary and confirm
|
|
371
370
|
console.log('');
|
|
372
|
-
|
|
373
|
-
drawBoxRow(`Name: ${genResult.name}`,
|
|
374
|
-
drawBoxRow(`File: ${filename}`,
|
|
375
|
-
drawBoxFooter();
|
|
371
|
+
drawBoxHeader('STRATEGY READY', boxWidth);
|
|
372
|
+
drawBoxRow(` Name: ${genResult.name}`, boxWidth);
|
|
373
|
+
drawBoxRow(` File: ${filename}`, boxWidth);
|
|
374
|
+
drawBoxFooter(boxWidth);
|
|
375
|
+
console.log('');
|
|
376
376
|
|
|
377
377
|
const confirm = await prompts.textInput(chalk.cyan(' Continue with this strategy? (Y/n): '));
|
|
378
378
|
if (confirm.toLowerCase() === 'n') {
|