<!-- 1. Include the single lightweight script in your HTML <head> or before </body> -->
<script src="https://api.elitetrading.io/embed/widgets.js" async></script>
<!-- 2. Embed the Pre-Trade Risk Copilot in your order entry drawer -->
<elite-risk-copilot
symbol="EURUSD"
direction="long"
entry-price="1.0850"
stop-loss="1.0846"
take-profit="1.0858"
api-key="elk_live_YOUR_BROKER_KEY"
theme="dark">
</elite-risk-copilot>
<!-- 3. Optional: Listen for risk audit results to block or warn on order submit -->
<script>
window.addEventListener('elite:risk-evaluated', (e) => {
console.log('Trader Risk Score:', e.detail.riskScore);
if (e.detail.verdict === 'ORDER_BLOCKED') {
alert('Order blocked by Broker Risk Copilot: ' + e.detail.violations.join('; '));
}
});
</script>