REG Regulatory Frameworks
The rules of the game — Basel, MiFID, and prop firm compliance
Learning Objectives
- •Know the key financial regulations affecting algorithmic trading
- •Understand the difference between institutional and prop firm requirements
- •See how compliance shapes system design
- •Map prop firm phases to system parameters
Explain Like I'm 5
There are rules for trading. Some are laws (jail time). Some are exchange rules (you get banned). Some are prop firm rules (you lose your account). Understanding the rules isn't optional — it's the framework within which everything operates.
Think of It This Way
Traffic laws. You can drive without following them, but eventually you crash or get pulled over. The best race drivers know every rule and push right to the limit. Same with trading.
1Institutional Regulations — The Big Picture
2Prop Firm Phase Requirements
3Phase Requirements Compared
Prop Firm Phase Requirements
4How Rules Shape System Design
5Time to Pass Each Phase
Months to Pass vs Monthly Return
Key Formulas
Time to Target
Months to reach profit target. At 4% monthly return: Challenge (10%) ≈ 2.5 months, Verification (5%) ≈ 1.25 months. Simple division, but assumes consistent returns.
Hands-On Code
Challenge Phase Simulator
import numpy as np
def simulate_challenge(monthly_r, monthly_std, n_sims=10000):
"""Simulate prop firm challenge outcomes."""
daily_r = monthly_r / 22
daily_std = monthly_std / np.sqrt(22)
results = {'pass': 0, 'breach': 0, 'timeout': 0}
for _ in range(n_sims):
balance = 1.0
for day in range(66): # 3 months max
ret = np.random.normal(daily_r, daily_std)
balance *= (1 + ret)
if ret < -0.05: # daily limit
results['breach'] += 1; break
if balance < 0.90: # total limit
results['breach'] += 1; break
if balance >= 1.10: # target reached
results['pass'] += 1; break
else:
results['timeout'] += 1
for k, v in results.items():
print(f" {k}: {v/n_sims:.1%}")
simulate_challenge(0.04, 0.02)A well-tuned system should show > 90% pass rate with < 5% breach rate. If those numbers don't look right, adjust risk per trade until they do.
Knowledge Check
Q1.During a funded account, what's the daily loss limit?
Assignment
Simulate 10,000 challenge attempts with your strategy's expected return and volatility. What's the pass rate? Breach rate? Adjust risk per trade and find the level that maximizes pass rate while keeping breach rate below 5%.