1 parent 87a3217 commit 88fd690Copy full SHA for 88fd690
1 file changed
research/regime-trend-v1/accepted-ratchet-tools.mjs
@@ -0,0 +1,29 @@
1
+import {
2
+ compareTradeWithRatchet5m,
3
+ summarizeCorrectedRatchetCandidate
4
+} from "./target-triggered-ratchet-corrected-tools.mjs";
5
+
6
+export const ACCEPTED_RATCHET = Object.freeze({
7
+ id: "touch-2.00-lock-0.00",
8
+ activationAtr: 2,
9
+ floorAtr: 0
10
+});
11
12
+export function applyAcceptedRatchet5m(
13
+ trade,
14
+ stopUpdates,
15
+ candleByTimestamp,
16
+ costs
17
+) {
18
+ return compareTradeWithRatchet5m(
19
20
21
22
+ ACCEPTED_RATCHET,
23
24
+ );
25
+}
26
27
+export function summarizeAcceptedRatchet(comparisons) {
28
+ return summarizeCorrectedRatchetCandidate(comparisons);
29
0 commit comments