diff --git a/src/multi_swarm/agents/hypothesis.py b/src/multi_swarm/agents/hypothesis.py index e8ebeb3..00f5474 100644 --- a/src/multi_swarm/agents/hypothesis.py +++ b/src/multi_swarm/agents/hypothesis.py @@ -84,6 +84,22 @@ Leaf - indicatori (calcolati su close): Leaf - feature OHLCV: {{"kind": "feature", "name": "open|high|low|close|volume"}} +Leaf - feature TEMPORALI (sempre accessibili, UTC): + {{"kind": "feature", "name": "hour"}} // range 0-23 + {{"kind": "feature", "name": "dow"}} // range 0-6 (lun=0, dom=6) + {{"kind": "feature", "name": "is_weekend"}} // 0 o 1 + {{"kind": "feature", "name": "minute_of_hour"}} // range 0-59 + +Esempi di gating temporale: + // Solo durante la sessione US (14:00-22:00 UTC) + {{"op": "and", "args": [ + {{"op": "gt", "args": [{{"kind": "feature", "name": "hour"}}, {{"kind": "literal", "value": 14}}]}}, + {{"op": "lt", "args": [{{"kind": "feature", "name": "hour"}}, {{"kind": "literal", "value": 22}}]}} + ]}} + + // Solo nel weekend (sab+dom) + {{"op": "eq", "args": [{{"kind": "feature", "name": "is_weekend"}}, {{"kind": "literal", "value": 1}}]}} + Leaf - letterale numerico: {{"kind": "literal", "value": 70.0}}