{ "rules": [ { "condition": { "op": "and", "args": [ { "op": "gt", "args": [ { "kind": "indicator", "name": "atr", "params": [ 14 ] }, { "kind": "literal", "value": 0.02 } ] }, { "op": "gt", "args": [ { "kind": "indicator", "name": "realized_vol", "params": [ 20 ] }, { "kind": "literal", "value": 0.03 } ] }, { "op": "gt", "args": [ { "kind": "indicator", "name": "sma", "params": [ 50 ] }, { "kind": "indicator", "name": "sma", "params": [ 200 ] } ] } ] }, "action": "entry-long" }, { "condition": { "op": "and", "args": [ { "op": "lt", "args": [ { "kind": "indicator", "name": "atr", "params": [ 14 ] }, { "kind": "literal", "value": 0.01 } ] }, { "op": "lt", "args": [ { "kind": "indicator", "name": "realized_vol", "params": [ 20 ] }, { "kind": "literal", "value": 0.02 } ] }, { "op": "lt", "args": [ { "kind": "indicator", "name": "sma", "params": [ 50 ] }, { "kind": "indicator", "name": "sma", "params": [ 200 ] } ] } ] }, "action": "entry-short" }, { "condition": { "op": "or", "args": [ { "op": "crossover", "args": [ { "kind": "indicator", "name": "rsi", "params": [ 14 ] }, { "kind": "literal", "value": 70.0 } ] }, { "op": "crossunder", "args": [ { "kind": "indicator", "name": "rsi", "params": [ 14 ] }, { "kind": "literal", "value": 30.0 } ] } ] }, "action": "exit" } ] }