Created
June 24, 2026 01:29
-
-
Save quantra-go-algo/558942d8946a0db8da14bbcbfc5a2428 to your computer and use it in GitHub Desktop.
guardrailed-llm-agent — Step 6: From Policy to Position: Sizing with Volatility Targeting (snippet 3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mom_tilt(base, m): | |
| if pd.isna(m): return base | |
| tilt = 1.15 if float(m) >= 0 else 0.85 | |
| return base * tilt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment