hedgequantx 2.9.41 → 2.9.43
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
package/src/lib/m/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const path = require('path');
|
|
|
14
14
|
const STRATEGIES = {
|
|
15
15
|
'ultra-scalping': {
|
|
16
16
|
id: 'ultra-scalping',
|
|
17
|
-
name: 'HQX
|
|
17
|
+
name: 'HQX Scalping',
|
|
18
18
|
description: '6 Mathematical Models (Z-Score, VPIN, Kyle, Kalman, Vol, OFI)',
|
|
19
19
|
version: '2.0',
|
|
20
20
|
backtest: {
|
|
@@ -207,7 +207,6 @@ const selectStrategy = async () => {
|
|
|
207
207
|
// Show strategy details
|
|
208
208
|
for (const s of strategies) {
|
|
209
209
|
console.log(chalk.white(` ${s.name}`));
|
|
210
|
-
console.log(chalk.gray(` ${s.description}`));
|
|
211
210
|
console.log(chalk.gray(` Backtest: ${s.backtest.pnl} | ${s.backtest.winRate} WR | ${s.backtest.trades} trades`));
|
|
212
211
|
console.log(chalk.gray(` Stop: ${s.params.stopTicks} ticks | Target: ${s.params.targetTicks} ticks | R:R ${s.params.riskReward}`));
|
|
213
212
|
console.log();
|
|
@@ -229,10 +228,10 @@ const configureAlgo = async (account, contract, strategy) => {
|
|
|
229
228
|
const contracts = await prompts.numberInput('Number of contracts:', 1, 1, 10);
|
|
230
229
|
if (contracts === null) return null;
|
|
231
230
|
|
|
232
|
-
const dailyTarget = await prompts.numberInput('Daily target ($):',
|
|
231
|
+
const dailyTarget = await prompts.numberInput('Daily target ($):', 1000, 1, 10000);
|
|
233
232
|
if (dailyTarget === null) return null;
|
|
234
233
|
|
|
235
|
-
const maxRisk = await prompts.numberInput('Max risk ($):',
|
|
234
|
+
const maxRisk = await prompts.numberInput('Max risk ($):', 500, 1, 5000);
|
|
236
235
|
if (maxRisk === null) return null;
|
|
237
236
|
|
|
238
237
|
const showName = await prompts.confirmPrompt('Show account name?', false);
|