diff --git a/fieldtests/harvest-sweep/hs_1_discovery.ops.json b/fieldtests/harvest-sweep/hs_1_discovery.ops.json new file mode 100644 index 0000000..3873ae1 --- /dev/null +++ b/fieldtests/harvest-sweep/hs_1_discovery.ops.json @@ -0,0 +1,16 @@ +[ + {"op": "doc", "text": "SMA crossover bias with two measurement taps for fold discovery"}, + {"op": "source", "role": "price", "kind": "F64"}, + {"op": "add", "type": "SMA", "name": "fast", "bind": {"length": {"I64": 3}}}, + {"op": "add", "type": "SMA", "name": "slow", "bind": {"length": {"I64": 6}}}, + {"op": "add", "type": "SMA", "name": "px", "bind": {"length": {"I64": 1}}}, + {"op": "feed", "role": "price", "into": ["fast.series", "slow.series", "px.series"]}, + {"op": "add", "type": "Sub", "name": "sub"}, + {"op": "connect", "from": "fast.value", "to": "sub.lhs"}, + {"op": "connect", "from": "slow.value", "to": "sub.rhs"}, + {"op": "add", "type": "Bias", "name": "bias", "bind": {"scale": {"F64": 0.5}}}, + {"op": "connect", "from": "sub.value", "to": "bias.signal"}, + {"op": "tap", "from": "sub.value", "as": "spread"}, + {"op": "tap", "from": "px.value", "as": "price"}, + {"op": "expose", "from": "bias.bias", "as": "bias"} +] diff --git a/fieldtests/harvest-sweep/hs_2_typo_key.ops.json b/fieldtests/harvest-sweep/hs_2_typo_key.ops.json new file mode 100644 index 0000000..d5dfecf --- /dev/null +++ b/fieldtests/harvest-sweep/hs_2_typo_key.ops.json @@ -0,0 +1,12 @@ +[ + {"op": "source", "role": "price", "kind": "F64"}, + {"op": "add", "type": "SMA", "name": "fast", "params": {"length": {"I64": 3}}}, + {"op": "add", "type": "SMA", "name": "slow", "bind": {"length": {"I64": 6}}}, + {"op": "feed", "role": "price", "into": ["fast.series", "slow.series"]}, + {"op": "add", "type": "Sub", "name": "sub"}, + {"op": "connect", "from": "fast.value", "to": "sub.lhs"}, + {"op": "connect", "from": "slow.value", "to": "sub.rhs"}, + {"op": "add", "type": "Bias", "name": "bias"}, + {"op": "connect", "from": "sub.value", "to": "bias.signal"}, + {"op": "expose", "from": "bias.bias", "as": "bias"} +] diff --git a/fieldtests/harvest-sweep/hs_3_three_taps.ops.json b/fieldtests/harvest-sweep/hs_3_three_taps.ops.json new file mode 100644 index 0000000..552fa7d --- /dev/null +++ b/fieldtests/harvest-sweep/hs_3_three_taps.ops.json @@ -0,0 +1,16 @@ +[ + {"op": "doc", "text": "SMA crossover exposing three measurement taps to probe the skipped-tap note"}, + {"op": "source", "role": "price", "kind": "F64"}, + {"op": "add", "type": "SMA", "name": "fast", "bind": {"length": {"I64": 3}}}, + {"op": "add", "type": "SMA", "name": "slow", "bind": {"length": {"I64": 6}}}, + {"op": "feed", "role": "price", "into": ["fast.series", "slow.series"]}, + {"op": "add", "type": "Sub", "name": "sub"}, + {"op": "connect", "from": "fast.value", "to": "sub.lhs"}, + {"op": "connect", "from": "slow.value", "to": "sub.rhs"}, + {"op": "add", "type": "Bias", "name": "bias", "bind": {"scale": {"F64": 1.0}}}, + {"op": "connect", "from": "sub.value", "to": "bias.signal"}, + {"op": "tap", "from": "fast.value", "as": "fast_ma"}, + {"op": "tap", "from": "slow.value", "as": "slow_ma"}, + {"op": "tap", "from": "sub.value", "as": "spread"}, + {"op": "expose", "from": "bias.bias", "as": "bias"} +]