prab-cli 1.2.6 → 1.2.7

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/index.js CHANGED
@@ -214,6 +214,18 @@ program
214
214
  : "1h";
215
215
  await (0, crypto_1.runICTStrategy)(crypto, interval);
216
216
  });
217
+ // Smart Trend Confluence Strategy (High Probability)
218
+ program
219
+ .command("smart <crypto>")
220
+ .description("Smart Trend Confluence - High probability strategy with multi-TF analysis")
221
+ .option("-h, --htf <interval>", "Higher timeframe (4h, 1d)", "4h")
222
+ .option("-l, --ltf <interval>", "Lower timeframe (15m, 1h)", "1h")
223
+ .action(async (crypto, options) => {
224
+ const validIntervals = ["15m", "1h", "4h", "1d"];
225
+ const htf = validIntervals.includes(options.htf) ? options.htf : "4h";
226
+ const ltf = validIntervals.includes(options.ltf) ? options.ltf : "1h";
227
+ await (0, crypto_1.runSmartStrategy)(crypto, htf, ltf);
228
+ });
217
229
  // Model management commands
218
230
  program
219
231
  .command("model")
@@ -550,6 +562,35 @@ program.action(async () => {
550
562
  await (0, crypto_1.runICTStrategy)(ictSymbol, ictIntervalChoice);
551
563
  break;
552
564
  }
565
+ case "smart": {
566
+ // Prompt for crypto symbol
567
+ const { smartSymbol } = await inquirer_1.default.prompt([
568
+ {
569
+ type: "input",
570
+ name: "smartSymbol",
571
+ message: "Enter cryptocurrency symbol (e.g., btc, eth, sol):",
572
+ default: "btc",
573
+ },
574
+ ]);
575
+ // Prompt for higher timeframe
576
+ const htfChoice = await (0, select_1.default)({
577
+ message: "Select HIGHER timeframe (for trend direction):",
578
+ choices: [
579
+ { name: "4 Hours (Recommended)", value: "4h" },
580
+ { name: "1 Day (Longer-term trend)", value: "1d" },
581
+ ],
582
+ });
583
+ // Prompt for lower timeframe
584
+ const ltfChoice = await (0, select_1.default)({
585
+ message: "Select LOWER timeframe (for entry timing):",
586
+ choices: [
587
+ { name: "1 Hour (Recommended)", value: "1h" },
588
+ { name: "15 Minutes (Faster entries)", value: "15m" },
589
+ ],
590
+ });
591
+ await (0, crypto_1.runSmartStrategy)(smartSymbol, htfChoice, ltfChoice);
592
+ break;
593
+ }
553
594
  case "model": {
554
595
  // Fetch models from Groq API if not cached
555
596
  if (cachedModels.length === 0) {