@backtest-kit/cli 9.8.0 → 9.8.2

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.
@@ -1,22 +1,22 @@
1
- **🛡️ Trailing Stop**
2
-
3
- **Symbol:** `{{symbol}}` ({{position}})
4
-
5
- **Current:** `{{currentPrice}}`
6
- **Entry:** `{{priceOpen}}`
7
- **Orig Entry:** `{{originalPriceOpen}}`
8
- **Take Profit:** `{{priceTakeProfit}}`
9
- **Orig TP:** `{{originalPriceTakeProfit}}`
10
- **Old Stop Loss:** `{{originalPriceStopLoss}}`
11
- **New Stop Loss:** `{{priceStopLoss}}` ({{percentShift}}%)
12
- **DCA Entries:** `{{totalEntries}}`
13
- **Partials Done:** `{{totalPartials}}`
14
- **PnL:** {{pnl.pnlPercentage}}% ({{pnl.pnlCost}} / {{pnl.pnlEntries}})
15
- **Peak Profit:** {{peakProfit.pnlPercentage}}% ({{peakProfit.pnlCost}} / {{peakProfit.pnlEntries}})
16
- **Max Drawdown:** {{maxDrawdown.pnlPercentage}}% ({{maxDrawdown.pnlCost}} / {{maxDrawdown.pnlEntries}})
17
- **Signal ID:** `{{signalId}}`
18
- **Time:** `{{timestamp}}`
19
-
20
- {{#backtest}}
21
- _🧪 Backtest_
1
+ **🛡️ Trailing Stop**
2
+
3
+ **Symbol:** `{{symbol}}` ({{position}})
4
+
5
+ **Current:** `{{currentPrice}}`
6
+ **Entry:** `{{priceOpen}}`
7
+ **Orig Entry:** `{{originalPriceOpen}}`
8
+ **Take Profit:** `{{priceTakeProfit}}`
9
+ **Orig TP:** `{{originalPriceTakeProfit}}`
10
+ **Old Stop Loss:** `{{originalPriceStopLoss}}`
11
+ **New Stop Loss:** `{{priceStopLoss}}` ({{percentShift}}%)
12
+ **DCA Entries:** `{{totalEntries}}`
13
+ **Partials Done:** `{{totalPartials}}`
14
+ **PnL:** {{pnl.pnlPercentage}}% ({{pnl.pnlCost}} / {{pnl.pnlEntries}})
15
+ **Peak Profit:** {{peakProfit.pnlPercentage}}% ({{peakProfit.pnlCost}} / {{peakProfit.pnlEntries}})
16
+ **Max Drawdown:** {{maxDrawdown.pnlPercentage}}% ({{maxDrawdown.pnlCost}} / {{maxDrawdown.pnlEntries}})
17
+ **Signal ID:** `{{signalId}}`
18
+ **Time:** `{{timestamp}}`
19
+
20
+ {{#backtest}}
21
+ _🧪 Backtest_
22
22
  {{/backtest}}
@@ -1,22 +1,22 @@
1
- **🎯 Trailing Take**
2
-
3
- **Symbol:** `{{symbol}}` ({{position}})
4
-
5
- **Current:** `{{currentPrice}}`
6
- **Entry:** `{{priceOpen}}`
7
- **Orig Entry:** `{{originalPriceOpen}}`
8
- **Old Take Profit:** `{{originalPriceTakeProfit}}`
9
- **New Take Profit:** `{{priceTakeProfit}}` ({{percentShift}}%)
10
- **Stop Loss:** `{{priceStopLoss}}`
11
- **Orig SL:** `{{originalPriceStopLoss}}`
12
- **DCA Entries:** `{{totalEntries}}`
13
- **Partials Done:** `{{totalPartials}}`
14
- **PnL:** {{pnl.pnlPercentage}}% ({{pnl.pnlCost}} / {{pnl.pnlEntries}})
15
- **Peak Profit:** {{peakProfit.pnlPercentage}}% ({{peakProfit.pnlCost}} / {{peakProfit.pnlEntries}})
16
- **Max Drawdown:** {{maxDrawdown.pnlPercentage}}% ({{maxDrawdown.pnlCost}} / {{maxDrawdown.pnlEntries}})
17
- **Signal ID:** `{{signalId}}`
18
- **Time:** `{{timestamp}}`
19
-
20
- {{#backtest}}
21
- _🧪 Backtest_
1
+ **🎯 Trailing Take**
2
+
3
+ **Symbol:** `{{symbol}}` ({{position}})
4
+
5
+ **Current:** `{{currentPrice}}`
6
+ **Entry:** `{{priceOpen}}`
7
+ **Orig Entry:** `{{originalPriceOpen}}`
8
+ **Old Take Profit:** `{{originalPriceTakeProfit}}`
9
+ **New Take Profit:** `{{priceTakeProfit}}` ({{percentShift}}%)
10
+ **Stop Loss:** `{{priceStopLoss}}`
11
+ **Orig SL:** `{{originalPriceStopLoss}}`
12
+ **DCA Entries:** `{{totalEntries}}`
13
+ **Partials Done:** `{{totalPartials}}`
14
+ **PnL:** {{pnl.pnlPercentage}}% ({{pnl.pnlCost}} / {{pnl.pnlEntries}})
15
+ **Peak Profit:** {{peakProfit.pnlPercentage}}% ({{peakProfit.pnlCost}} / {{peakProfit.pnlEntries}})
16
+ **Max Drawdown:** {{maxDrawdown.pnlPercentage}}% ({{maxDrawdown.pnlCost}} / {{maxDrawdown.pnlEntries}})
17
+ **Signal ID:** `{{signalId}}`
18
+ **Time:** `{{timestamp}}`
19
+
20
+ {{#backtest}}
21
+ _🧪 Backtest_
22
22
  {{/backtest}}
package/types.d.ts CHANGED
@@ -225,8 +225,8 @@ declare class ResolveService implements IResolve {
225
225
  getIsLaunched: () => boolean;
226
226
  attachPine: (pinePath: string) => Promise<string>;
227
227
  attachStrategy: (jsPath: string) => Promise<void>;
228
- attachJavascript: (jsPath: string) => Promise<void>;
229
- attachEntry: (jsPath: string) => Promise<void>;
228
+ attachJavascript: (jsPath: string) => Promise<string>;
229
+ attachEntry: (jsPath: string) => Promise<string>;
230
230
  }
231
231
 
232
232
  declare class ErrorService {