@tradejs/strategies 1.0.5 → 1.0.6

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.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Interval, TrendLineOptions, StrategyAiAdapter, StrategyMlAdapter, StrategyRegistryEntry } from '@tradejs/types';
2
2
 
3
- declare const config: {
3
+ declare const config$1: {
4
4
  readonly ENV: "BACKTEST";
5
5
  readonly INTERVAL: Interval;
6
6
  readonly MAKE_ORDERS: true;
@@ -12,7 +12,6 @@ declare const config: {
12
12
  readonly MIN_AI_QUALITY: 3;
13
13
  readonly FEE_PERCENT: 0.005;
14
14
  readonly MAX_LOSS_VALUE: 10;
15
- readonly MAX_CORRELATION: 0.45;
16
15
  readonly MA_FAST: 14;
17
16
  readonly MA_MEDIUM: 49;
18
17
  readonly MA_SLOW: 50;
@@ -44,6 +43,45 @@ declare const config: {
44
43
  };
45
44
  };
46
45
 
46
+ declare const config: {
47
+ readonly ENV: "BACKTEST";
48
+ readonly INTERVAL: Interval;
49
+ readonly MAKE_ORDERS: true;
50
+ readonly CLOSE_OPPOSITE_POSITIONS: false;
51
+ readonly BACKTEST_PRICE_MODE: "mid";
52
+ readonly AI_ENABLED: false;
53
+ readonly MIN_AI_QUALITY: 3;
54
+ readonly FEE_PERCENT: 0.005;
55
+ readonly MAX_LOSS_VALUE: 10;
56
+ readonly MA_FAST: 14;
57
+ readonly MA_MEDIUM: 49;
58
+ readonly MA_SLOW: 50;
59
+ readonly OBV_SMA: 10;
60
+ readonly ATR: 14;
61
+ readonly ATR_PCT_SHORT: 7;
62
+ readonly ATR_PCT_LONG: 30;
63
+ readonly BB: 20;
64
+ readonly BB_STD: 2;
65
+ readonly MACD_FAST: 12;
66
+ readonly MACD_SLOW: 26;
67
+ readonly MACD_SIGNAL: 9;
68
+ readonly TRENDLINE: Partial<TrendLineOptions>;
69
+ readonly HIGHS: {
70
+ readonly enable: true;
71
+ readonly direction: "SHORT";
72
+ readonly TP: 3.2;
73
+ readonly SL: 1.1;
74
+ readonly minRiskRatio: 1.6;
75
+ };
76
+ readonly LOWS: {
77
+ readonly enable: true;
78
+ readonly direction: "LONG";
79
+ readonly TP: 3.2;
80
+ readonly SL: 1.1;
81
+ readonly minRiskRatio: 1.6;
82
+ };
83
+ };
84
+
47
85
  declare const adaptiveMomentumRibbonAiAdapter: StrategyAiAdapter;
48
86
 
49
87
  declare const adaptiveMomentumRibbonMlAdapter: StrategyMlAdapter;
@@ -52,6 +90,8 @@ declare const maStrategyAiAdapter: StrategyAiAdapter;
52
90
 
53
91
  declare const maStrategyMlAdapter: StrategyMlAdapter;
54
92
 
93
+ declare const reverseTrendLineAiAdapter: StrategyAiAdapter;
94
+
55
95
  declare const volumeDivergenceAiAdapter: StrategyAiAdapter;
56
96
 
57
97
  declare const volumeDivergenceMlAdapter: StrategyMlAdapter;
@@ -62,4 +102,4 @@ declare const _default: {
62
102
  strategyEntries: StrategyRegistryEntry[];
63
103
  };
64
104
 
65
- export { adaptiveMomentumRibbonAiAdapter, adaptiveMomentumRibbonMlAdapter, _default as default, maStrategyAiAdapter, maStrategyMlAdapter, strategyEntries, config as trendLineDefaultConfig, volumeDivergenceAiAdapter, volumeDivergenceMlAdapter };
105
+ export { adaptiveMomentumRibbonAiAdapter, adaptiveMomentumRibbonMlAdapter, _default as default, maStrategyAiAdapter, maStrategyMlAdapter, reverseTrendLineAiAdapter, config as reverseTrendLineDefaultConfig, strategyEntries, config$1 as trendLineDefaultConfig, volumeDivergenceAiAdapter, volumeDivergenceMlAdapter };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Interval, TrendLineOptions, StrategyAiAdapter, StrategyMlAdapter, StrategyRegistryEntry } from '@tradejs/types';
2
2
 
3
- declare const config: {
3
+ declare const config$1: {
4
4
  readonly ENV: "BACKTEST";
5
5
  readonly INTERVAL: Interval;
6
6
  readonly MAKE_ORDERS: true;
@@ -12,7 +12,6 @@ declare const config: {
12
12
  readonly MIN_AI_QUALITY: 3;
13
13
  readonly FEE_PERCENT: 0.005;
14
14
  readonly MAX_LOSS_VALUE: 10;
15
- readonly MAX_CORRELATION: 0.45;
16
15
  readonly MA_FAST: 14;
17
16
  readonly MA_MEDIUM: 49;
18
17
  readonly MA_SLOW: 50;
@@ -44,6 +43,45 @@ declare const config: {
44
43
  };
45
44
  };
46
45
 
46
+ declare const config: {
47
+ readonly ENV: "BACKTEST";
48
+ readonly INTERVAL: Interval;
49
+ readonly MAKE_ORDERS: true;
50
+ readonly CLOSE_OPPOSITE_POSITIONS: false;
51
+ readonly BACKTEST_PRICE_MODE: "mid";
52
+ readonly AI_ENABLED: false;
53
+ readonly MIN_AI_QUALITY: 3;
54
+ readonly FEE_PERCENT: 0.005;
55
+ readonly MAX_LOSS_VALUE: 10;
56
+ readonly MA_FAST: 14;
57
+ readonly MA_MEDIUM: 49;
58
+ readonly MA_SLOW: 50;
59
+ readonly OBV_SMA: 10;
60
+ readonly ATR: 14;
61
+ readonly ATR_PCT_SHORT: 7;
62
+ readonly ATR_PCT_LONG: 30;
63
+ readonly BB: 20;
64
+ readonly BB_STD: 2;
65
+ readonly MACD_FAST: 12;
66
+ readonly MACD_SLOW: 26;
67
+ readonly MACD_SIGNAL: 9;
68
+ readonly TRENDLINE: Partial<TrendLineOptions>;
69
+ readonly HIGHS: {
70
+ readonly enable: true;
71
+ readonly direction: "SHORT";
72
+ readonly TP: 3.2;
73
+ readonly SL: 1.1;
74
+ readonly minRiskRatio: 1.6;
75
+ };
76
+ readonly LOWS: {
77
+ readonly enable: true;
78
+ readonly direction: "LONG";
79
+ readonly TP: 3.2;
80
+ readonly SL: 1.1;
81
+ readonly minRiskRatio: 1.6;
82
+ };
83
+ };
84
+
47
85
  declare const adaptiveMomentumRibbonAiAdapter: StrategyAiAdapter;
48
86
 
49
87
  declare const adaptiveMomentumRibbonMlAdapter: StrategyMlAdapter;
@@ -52,6 +90,8 @@ declare const maStrategyAiAdapter: StrategyAiAdapter;
52
90
 
53
91
  declare const maStrategyMlAdapter: StrategyMlAdapter;
54
92
 
93
+ declare const reverseTrendLineAiAdapter: StrategyAiAdapter;
94
+
55
95
  declare const volumeDivergenceAiAdapter: StrategyAiAdapter;
56
96
 
57
97
  declare const volumeDivergenceMlAdapter: StrategyMlAdapter;
@@ -62,4 +102,4 @@ declare const _default: {
62
102
  strategyEntries: StrategyRegistryEntry[];
63
103
  };
64
104
 
65
- export { adaptiveMomentumRibbonAiAdapter, adaptiveMomentumRibbonMlAdapter, _default as default, maStrategyAiAdapter, maStrategyMlAdapter, strategyEntries, config as trendLineDefaultConfig, volumeDivergenceAiAdapter, volumeDivergenceMlAdapter };
105
+ export { adaptiveMomentumRibbonAiAdapter, adaptiveMomentumRibbonMlAdapter, _default as default, maStrategyAiAdapter, maStrategyMlAdapter, reverseTrendLineAiAdapter, config as reverseTrendLineDefaultConfig, strategyEntries, config$1 as trendLineDefaultConfig, volumeDivergenceAiAdapter, volumeDivergenceMlAdapter };