# Compiler messages: units and risk

> AlgoBarsX compiler messages about units and risk, with what each code means and the real message where there is one: AS0301, AS0302, AS0303, AS0304, AS0305, AS0306.

Source: https://algobarsx.com/docs/diag-units-and-risk/

###  AS0301 `r_outside_trade`

###  AS0302 `bare_number` warning

stop 25 has no unit. Did you mean 25 pips?

**Quick fix** Use 25 pips · Use 25 points

###  AS0303 `r_without_stop` error

2R needs a stop to measure from. Add a stop to this trade, such as stop: 20 pips.

###  AS0304 `risk_without_stop` error

Risk-based size needs a stop to measure risk from. Add a stop, such as stop: 20 pips.

###  AS0305 `percent_base` error

1% of what? A percentage needs a base here, such as 1% of 20 pips.

**Quick fix** Use 1% of 20 pips

###  AS0306 `incompatible_units`
