QMT 支持通过 Python 自定义风控指标。示例:
python运行
def custom_risk_control(account_data):
"""自定义风控指标:持仓数量超过 10 只时暂停交易"""
position_count = len(account_data['positions'])
if position_count > 10:
return False # 触发风控,暂停交易
return True # 通过风控,允许交易
还有疑问?看看专业认证经理怎么说
18名擅长【风控指标解读】的认证经理当前在线>



分享
注册
1分钟入驻>
问一问
秒答
从业认证
电话咨询
+微信
18630917047

