w-trade-backtest 1.0.6 → 1.0.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/w-trade-backtest.umd.js +1 -1
- package/docs/buildKLinesTpSl.mjs.html +1 -1
- package/docs/calcOrders.mjs.html +1 -1
- package/docs/calcOrdersRatio.mjs.html +1 -1
- package/docs/calcOrdersSummary.mjs.html +1 -1
- package/docs/calcOrdersSummarySimple.mjs.html +1 -1
- package/docs/calcSummary.mjs.html +1 -1
- package/docs/closeAndSummaryOrders.mjs.html +1 -1
- package/docs/genKLinesTpSl.mjs.html +1 -1
- package/docs/genReport.mjs.html +1 -1
- package/docs/genReportCore.mjs.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/docs/loadKLinesTpSl.mjs.html +1 -1
- package/docs/runStrategies.mjs.html +1 -1
- package/docs/runStrategiesAndBacktest.mjs.html +1 -1
- package/docs/runStrategy.mjs.html +1 -1
- package/package.json +3 -4
- package/test/unit-ott.test.mjs +0 -20
|
@@ -205,7 +205,7 @@ export default buildKLinesTpSl
|
|
|
205
205
|
<br class="clear">
|
|
206
206
|
|
|
207
207
|
<footer>
|
|
208
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
208
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
209
209
|
</footer>
|
|
210
210
|
|
|
211
211
|
<script>prettyPrint();</script>
|
package/docs/calcOrders.mjs.html
CHANGED
|
@@ -265,7 +265,7 @@ export default calcOrders
|
|
|
265
265
|
<br class="clear">
|
|
266
266
|
|
|
267
267
|
<footer>
|
|
268
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
268
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
269
269
|
</footer>
|
|
270
270
|
|
|
271
271
|
<script>prettyPrint();</script>
|
|
@@ -133,7 +133,7 @@ export default calcOrdersRatio
|
|
|
133
133
|
<br class="clear">
|
|
134
134
|
|
|
135
135
|
<footer>
|
|
136
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
136
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
137
137
|
</footer>
|
|
138
138
|
|
|
139
139
|
<script>prettyPrint();</script>
|
|
@@ -493,7 +493,7 @@ export default calcOrdersSummary
|
|
|
493
493
|
<br class="clear">
|
|
494
494
|
|
|
495
495
|
<footer>
|
|
496
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
496
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
497
497
|
</footer>
|
|
498
498
|
|
|
499
499
|
<script>prettyPrint();</script>
|
|
@@ -194,7 +194,7 @@ export default calcOrdersSummarySimple
|
|
|
194
194
|
<br class="clear">
|
|
195
195
|
|
|
196
196
|
<footer>
|
|
197
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
197
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
198
198
|
</footer>
|
|
199
199
|
|
|
200
200
|
<script>prettyPrint();</script>
|
|
@@ -188,7 +188,7 @@ export default calcSummary
|
|
|
188
188
|
<br class="clear">
|
|
189
189
|
|
|
190
190
|
<footer>
|
|
191
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
191
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
192
192
|
</footer>
|
|
193
193
|
|
|
194
194
|
<script>prettyPrint();</script>
|
|
@@ -252,7 +252,7 @@ export default closeAndSummaryOrders
|
|
|
252
252
|
<br class="clear">
|
|
253
253
|
|
|
254
254
|
<footer>
|
|
255
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
255
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
256
256
|
</footer>
|
|
257
257
|
|
|
258
258
|
<script>prettyPrint();</script>
|
|
@@ -141,7 +141,7 @@ export default genKLinesTpSl
|
|
|
141
141
|
<br class="clear">
|
|
142
142
|
|
|
143
143
|
<footer>
|
|
144
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
144
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
145
145
|
</footer>
|
|
146
146
|
|
|
147
147
|
<script>prettyPrint();</script>
|
package/docs/genReport.mjs.html
CHANGED
|
@@ -190,7 +190,7 @@ export default genReport
|
|
|
190
190
|
<br class="clear">
|
|
191
191
|
|
|
192
192
|
<footer>
|
|
193
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
193
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
194
194
|
</footer>
|
|
195
195
|
|
|
196
196
|
<script>prettyPrint();</script>
|
|
@@ -115,7 +115,7 @@ export default genReportCore
|
|
|
115
115
|
<br class="clear">
|
|
116
116
|
|
|
117
117
|
<footer>
|
|
118
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
118
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
119
119
|
</footer>
|
|
120
120
|
|
|
121
121
|
<script>prettyPrint();</script>
|
package/docs/global.html
CHANGED
|
@@ -5916,7 +5916,7 @@ console.log(r.summary.numTrade, r.summary.rWin, r.summary.uEquityFinal)
|
|
|
5916
5916
|
<br class="clear">
|
|
5917
5917
|
|
|
5918
5918
|
<footer>
|
|
5919
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
5919
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
5920
5920
|
</footer>
|
|
5921
5921
|
|
|
5922
5922
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<br class="clear">
|
|
72
72
|
|
|
73
73
|
<footer>
|
|
74
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
75
75
|
</footer>
|
|
76
76
|
|
|
77
77
|
<script>prettyPrint();</script>
|
|
@@ -176,7 +176,7 @@ export default loadKLinesTpSl
|
|
|
176
176
|
<br class="clear">
|
|
177
177
|
|
|
178
178
|
<footer>
|
|
179
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
179
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
180
180
|
</footer>
|
|
181
181
|
|
|
182
182
|
<script>prettyPrint();</script>
|
|
@@ -231,7 +231,7 @@ export default runStrategies
|
|
|
231
231
|
<br class="clear">
|
|
232
232
|
|
|
233
233
|
<footer>
|
|
234
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
234
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
235
235
|
</footer>
|
|
236
236
|
|
|
237
237
|
<script>prettyPrint();</script>
|
|
@@ -211,7 +211,7 @@ export default runStrategiesAndBacktest
|
|
|
211
211
|
<br class="clear">
|
|
212
212
|
|
|
213
213
|
<footer>
|
|
214
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
214
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
215
215
|
</footer>
|
|
216
216
|
|
|
217
217
|
<script>prettyPrint();</script>
|
|
@@ -442,7 +442,7 @@ export default runStrategy
|
|
|
442
442
|
<br class="clear">
|
|
443
443
|
|
|
444
444
|
<footer>
|
|
445
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
445
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 00:22:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
446
446
|
</footer>
|
|
447
447
|
|
|
448
448
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-trade-backtest",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"main": "dist/w-trade-backtest.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"wsemi": "^1.8.67"
|
|
6
|
+
"w-data-tdprovide": "^1.0.5",
|
|
7
|
+
"wsemi": "^1.8.68"
|
|
9
8
|
},
|
|
10
9
|
"devDependencies": {
|
|
11
10
|
"w-package-tools": "^1.1.12"
|
package/test/unit-ott.test.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import assert from 'assert'
|
|
2
|
-
import ott, { nowTpeStr } from '../src/ott.mjs'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//規格來源: src/ott.mjs
|
|
6
|
-
// ott(input): 以dayjs解析秒時間字串為台北時區時間物件, nowTpeStr(): 回傳當下台北時區秒時間字串
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
describe('ott', function() {
|
|
10
|
-
|
|
11
|
-
it('解析秒時間字串並可format與diff', function() {
|
|
12
|
-
assert.strictEqual(ott('2020-01-01T00:00:00').format('YYYY-MM-DD'), '2020-01-01')
|
|
13
|
-
assert.strictEqual(ott('2020-01-03T04:00:00').diff(ott('2020-01-01T20:00:00'), 'day'), 1)
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
it('nowTpeStr回傳台北時區秒時間字串', function() {
|
|
17
|
-
assert.ok(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+08:00$/.test(nowTpeStr()))
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
})
|