Control Risk from Indicator

Hi,

I’m exploring the possibility of implementing risk control logic directly from an indicator, not a strategy or Add-On (at least for now).

Is it technically possible for an indicator to block trading activity on a specific account if certain risk conditions are met (like daily PnL loss, % drawdown, etc.)?

For example, if the daily loss limit is hit, the indicator would prevent further trades from being executed on that account for the rest of the session.

I know this is likely more suitable for a strategy or Add-On, but my question is:

  • Can this be done from an indicator at all?
  • And if yes, what are the main limitations or issues of trying to enforce risk control this way?

Thanks in advance!
Fz

I don’t think so. You probably want to look at the OnOrderUpdate and just filter that to cancel any orders.