You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a trade decision agent node. The agent uses LLM to synthesize indicator, pattern, and trend reports
10
10
and outputs a final trade decision (LONG or SHORT) with justification and risk-reward ratio.
11
11
"""
12
+
12
13
deftrade_decision_node(state) ->dict:
13
14
indicator_report=state["indicator_report"]
14
-
pattern_report=state['pattern_report']
15
-
trend_report=state['trend_report']
16
-
time_frame=state['time_frame']
17
-
stock_name=state['stock_name']
15
+
pattern_report=state["pattern_report"]
16
+
trend_report=state["trend_report"]
17
+
time_frame=state["time_frame"]
18
+
stock_name=state["stock_name"]
18
19
19
20
# --- System prompt for LLM ---
20
21
prompt=f"""You are a high-frequency quantitative trading (HFT) analyst operating on the current {time_frame} K-line chart for {stock_name}. Your task is to issue an **immediate execution order**: **LONG** or **SHORT**. ⚠️ HOLD is prohibited due to HFT constraints.
0 commit comments