diff --git a/src/strategy_crypto/strategy_crypto/strategies/archive/btc_fb63e851.json b/src/strategy_crypto/strategy_crypto/strategies/archive/btc_fb63e851.json new file mode 100644 index 0000000..3f79cb7 --- /dev/null +++ b/src/strategy_crypto/strategy_crypto/strategies/archive/btc_fb63e851.json @@ -0,0 +1,142 @@ +{ + "rules": [ + { + "condition": { + "op": "and", + "args": [ + { + "op": "gt", + "args": [ + { + "kind": "indicator", + "name": "rsi", + "params": [ + 14 + ] + }, + { + "kind": "literal", + "value": 70.0 + } + ] + }, + { + "op": "gt", + "args": [ + { + "kind": "indicator", + "name": "atr", + "params": [ + 14 + ] + }, + { + "kind": "indicator", + "name": "sma", + "params": [ + 14 + ] + } + ] + }, + { + "op": "gt", + "args": [ + { + "kind": "feature", + "name": "hour" + }, + { + "kind": "literal", + "value": 9 + } + ] + }, + { + "op": "lt", + "args": [ + { + "kind": "feature", + "name": "hour" + }, + { + "kind": "literal", + "value": 17 + } + ] + } + ] + }, + "action": "entry-short" + }, + { + "condition": { + "op": "and", + "args": [ + { + "op": "lt", + "args": [ + { + "kind": "indicator", + "name": "rsi", + "params": [ + 14 + ] + }, + { + "kind": "literal", + "value": 30.0 + } + ] + }, + { + "op": "lt", + "args": [ + { + "kind": "indicator", + "name": "atr", + "params": [ + 14 + ] + }, + { + "kind": "indicator", + "name": "sma", + "params": [ + 14 + ] + } + ] + }, + { + "op": "gt", + "args": [ + { + "kind": "feature", + "name": "hour" + }, + { + "kind": "literal", + "value": 9 + } + ] + }, + { + "op": "lt", + "args": [ + { + "kind": "feature", + "name": "hour" + }, + { + "kind": "literal", + "value": 17 + } + ] + } + ] + }, + "action": "entry-long" + } + ] +} \ No newline at end of file diff --git a/src/strategy_crypto/strategy_crypto/strategies/btc_9cf506b8.json b/src/strategy_crypto/strategy_crypto/strategies/btc_9cf506b8.json new file mode 100644 index 0000000..a1aea64 --- /dev/null +++ b/src/strategy_crypto/strategy_crypto/strategies/btc_9cf506b8.json @@ -0,0 +1,140 @@ +{ + "rules": [ + { + "condition": { + "op": "and", + "args": [ + { + "op": "gt", + "args": [ + { + "kind": "indicator", + "name": "realized_vol", + "params": [150] + }, + { + "kind": "literal", + "value": 0.01 + } + ] + }, + { + "op": "lt", + "args": [ + { + "kind": "indicator", + "name": "atr_pct", + "params": [150] + }, + { + "kind": "literal", + "value": 0.02 + } + ] + }, + { + "op": "gt", + "args": [ + { + "kind": "indicator", + "name": "sma_pct", + "params": [150] + }, + { + "kind": "literal", + "value": 0.05 + } + ] + } + ] + }, + "action": "entry-long" + }, + { + "condition": { + "op": "and", + "args": [ + { + "op": "lt", + "args": [ + { + "kind": "indicator", + "name": "realized_vol", + "params": [150] + }, + { + "kind": "literal", + "value": 0.005 + } + ] + }, + { + "op": "gt", + "args": [ + { + "kind": "indicator", + "name": "atr_pct", + "params": [150] + }, + { + "kind": "literal", + "value": 0.03 + } + ] + }, + { + "op": "lt", + "args": [ + { + "kind": "indicator", + "name": "sma_pct", + "params": [150] + }, + { + "kind": "literal", + "value": -0.05 + } + ] + } + ] + }, + "action": "entry-short" + }, + { + "condition": { + "op": "or", + "args": [ + { + "op": "eq", + "args": [ + { + "kind": "indicator", + "name": "sma_pct", + "params": [150] + }, + { + "kind": "literal", + "value": 0.0 + } + ] + }, + { + "op": "lt", + "args": [ + { + "kind": "indicator", + "name": "realized_vol", + "params": [150] + }, + { + "kind": "literal", + "value": 0.001 + } + ] + } + ] + }, + "action": "exit" + } + ] +}